Create a pom-expansion.xml in the root of your source base repository (repository containing your application model).

Mojo Configuration

Add the following configuration to your pom.


Trigger a mojo goal from command line:

# expand
mvn -f pom-expansion.xml expanders:expand

# harvest
mvn -f pom-expansion.xml expanders:harvest


If you want to clean up previous expansion during maven’s clean phase (mvn clean).

In the pom, directory should point to expansionSettings.xml’s expansionDirectory.

NOTE: Both paths (directory and expansionDirectory) are relative to their respective files.

E.g. for


settings in conf/expansionSettings.xml


add this to your pom.xml