I'm try ing to write a Java-based mojo that executes after the normal packaging work has been done and the artifact has created. There are some custom post-processors or validators that might be required to run and I wanted to explore how that might be accomplish thru a custom mojo. Anyway, my mojo is getting handed the maven session, executed project, current project and settings but, to this point, I haven't been able to figure out how to obtain the artifact that was just created. I see printouts from my mojo so I know it is getting called. When the mojo ask the executed project or the current project what the artifact is, they return null. The artifact id comes back as empty-project from both objects. Can anyone offer any advice on how to obtain the full path to the artifact that was just created? My mojo is registered to go off during the package phase ( @phase package) and I see it executing after the EAR/JAR/WARs are created so it appears to be getting called when I want it to. Any help is appreciated.
Thanks, Ron -- View this message in context: http://www.nabble.com/-M2--Java-Mojo-Packaging-Question-tf2356714.html#a6564355 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
