I would like to find or write a maven plugin which once declared in the
company's parent pom, all the builds descending from that, will print out on
the console some information about the packaged and attached artifacts. Here
are some sample patterns.
For JAR:
HERE_YOU_CAN_FIND: /home/me/Sample/target/Sample-1.0.0-SNAPSHOT.jar
THE_PACKAGED_ARTIFACT: org.somegroupid.Sample
For EJB:
HERE_YOU_CAN_FIND: /home/me/SampleEJB/target/SampleEJB-1.0.0-SNAPSHOT.jar
THE_PACKAGED_ARTIFACT: org.somegroupid.SampleEJB.ejb
HERE_YOU_CAN_FIND:
/home/me/SampleEJB/target/SampleEJB-1.0.0-SNAPSHOT-client.jar
THE_PACKAGED_ARTIFACT: org.somegroupid.SampleEJB.ejb-client
For WebApp:
HERE_YOU_CAN_FIND: /home/me/SampleWeb/target/SampleWeb-1.0.0-SNAPSHOT.war
THE_PACKAGED_ARTIFACT: org.somegroupid.SampleWeb.war
Unfortunately I couldn't find a simple pattern which can be easily expressed
within an ant-run plugin, because:
- the ${project.build.directory}/${project.build.finalName} also needs a
file extension too which is not always the same as ${project.packaging}
- in case of attached artifacts (ex: ejb-client) I need an enumeration with
multiple lines which will append the ".ejb-client" type to the
${project.groupId}.${project.artifactId}
Somebody knows how to enlist all the packaged and attached artifacts within
a Mojo?