Skip to content
Patrick Ziegler edited this page Jan 31, 2022 · 18 revisions

Useful Tips

  • You can output the generated poms with the following option: -Dpolyglot.dump.pom=pom.xml just keep in mind that pom.xml takes precedence over pomless configuration, so maybe choose a different name if you only like to use this for debug purpose!

Overwrite Group and Artifact IDs

The group id of generated poms is inherited from the parent pom, while the artifact id is derived from the directory, in which the polygot file is located. Within a reactor build, this id pair has to be unique.

You can influence this behavior by creating a build.properties in the same directory as the polygot file you want to modify, with the following entries:

pom.model.groupId=my.group.id
pom.model.artifactId=my.custom.artifact.id

Use Case:

  • A project with multiple features or plugins directories.

Example:

project
 +- component A
 |   +- plugins
 |   |   + plugin1
 |   |   + ...
 |   |   + build.properties
 |   |
 |   +- features
 |       + feature1
 |       + ...
 |       + build.properties
 |
 +- component B
 |   +- plugins
 |   |   + ...
 |   |   + build.properties
 |   |
 |   +- features
 |       + ...
 |       + build.properties
 |
 +- releng
 +- products
Clone this wiki locally