Reputation: 597
I am working on a very large multi module maven project (200+ modules) which has a complicated directory structure. When trying to familiarise myself around the project and its maven modules I am looking closely at the maven reactor build order. However, it would be nice if I could format the output for the Reactor Build Order to contain a bit more information than just the ${project.name} value. Is this possible?
What I can see:
[INFO] ProjectParent [pom]
[INFO] ProjectSubModuleOne [jar]
[INFO] ProjectSubModuleTwo [jar]
[INFO] ProjectSubParentOne [pom]
[INFO] ProjectSubParentModuleOne [jar]
[INFO] ...
which is effectively
[INFO] ${project.name} [${project.packaging}]
What I would like to see is something like:
[INFO] ${project.name} - {project.artifactId} - ${project.basedir} [${project.packaging}]
which would then resolve to
[INFO] ProjectParent - parent - ./pom.xml [pom]
[INFO] ProjectSubModuleOne - module-one - module-one/pom.xml [jar]
[INFO] ProjectSubModuleTwo - module-two - module-two/pom.xml [jar]
[INFO] ProjectSubParentOne - sub-parent - sub-parent/pom.xml [pom]
[INFO] ProjectSubParentModuleOne - sub-parent-module-one/pom.xml [jar]
[INFO] ...
This will be particularly helpful for me as the project I am working does not have its directory structure matching the module structure. Also directory names do not always match artifact IDs.
Therefore it would be great if I can change the way the Reactor Build Order is printed in build logs.
Upvotes: 0
Views: 79