Maven CQ5 Package Build: Updating Properties.xml

Published on by Dan KlcoPicture of Me Dan Klco

This article describes the process of adding and automatically updating a CQ5 Package properties.xml as a part of a Maven build.

Why do I need a Properties.xml?

Certain CQ5.4 Hotfixes are known to cause issues where packages without a properties.xml will not install properly. If you attempt to install a package into a CQ instance with the affected Hotfix, you will see this error:


Adobe recommends you contact support regarding this issue. You can read more about which hotfixes may be affected in the Knowledge Base.

If you cannot otherwise resolve the issue, the easiest course is to add the properties.xml into the package as part of your build.

Adding the Properties.xml

The first step to adding the properties.xml is to create the file in your META-INF/vault directory. This will be the same directory containing the filter.xml.

By default, the properties.xml contains state information we don’t want persisted into source control, such as what user last installed the package and how many times it has been built. The stripped down properties.xml contains the information needed to install the package, but nothing more:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "">
    <comment>FileVault Package Properties</comment>
    <entry key="name">{PROJECT_NAME}</entry>
    <entry key="version">PROJECT_VERSION</entry>
    <entry key="dependencies" />
    <entry key="packageFormatVersion">2</entry>
    <entry key="group">{PROJECT_GROUP}</entry>

Next, replace the {PROJECT_NAME} and {PROJECT_GROUP} placeholders with the appropriate values for your package. Leave the PROJECT_VERSION placeholder as is.

Updating the Package Version

Since we’re using Maven to build the package automatically, we will need to update the package version automatically. Otherwise, we’d will have to manually keep it in sync with the version in the POM, which leaves plenty of room for errors.

Luckily, there is a Maven plugin called Maven Replacer Plugin for just this purpose. Add the plugin configuration below to have Maven automatically update the package version with every build.


Once you have all of these steps complete you should be able to install your Maven built plugin into systems affected by the Hotfix issues.


comments powered by Disqus