maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manuel Ledesma <manuel.lede...@comcast.net>
Subject Re: [M2] How do I run J2EE compilers?
Date Wed, 11 Oct 2006 16:00:12 GMT
kurron wrote:
> 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
>   
You can use the following expression

//parameter expression="${project.build.directory}/${project.build.finalName}"

base on packaging you can know if it's an ear, war or ejb.

//




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message