Our build system requires us to run vendor-specific J2EE compilers on our EAR
files.  I ran across the Weblogic plugin that can execute the appc program
on an archive but it requires that you specify archive information in the
POMs that create EARs.  What I would really like is to automagically invoke
appc on any EAR that gets built.  To that end, I've been experimenting with
writing a Java mojo that will invoke appc (or any other program we might
need) right after an archive is created.  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 asks 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--How-do-I-run-J2EE-compilers--tf2424323.html#a6759058
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to