Fork me on GitHub



The package goal supports filtering (i.e. placeholder replacement) similar to the maven-resources-plugin in arbitrary package source files.

As filtering may destroy binary files you should make sure that filtering is only applied to textual files.


You need to set plugin parameter enableJcrRootFiltering and/or enableMetaInfFiltering to true to enable filtering at all.

There are several other parameters which allow to further tweak the filtering behavior.

An example configuration which enables filtering on all .content.xml files in the jcr root source folder looks like this:

      <!-- default execution id for primary artifact: -->
        <enableJcrRootFiltering>true</enableJcrRootFiltering><!--only enable filtering on jcr root source files-->
          <!-- additional properties file specifying keys and values -->
        <!-- only enable filtering on .content xml files -->