Hi Brett,

> the JAR i want to do a "mvn deploy site", and the WAR and EAR modules
> just a "mvn install".

Jenkins lets you write whatever shell you want. So why not a shell script
like:

    # at top level
    mvn install

    # deploy the JAR only
    (cd myJarModule && mvn deploy site)

Would that work for you?

-Curtis


On Thu, Dec 13, 2012 at 3:23 PM, vincentx <[email protected]> wrote:

> I have a Git repository which is an application consisting of an EAR, WAR,
> and JAR project.  Each project has it's own pom.xml and then we have an
> application level pom which just references the 3 modules.  Our Jenkins job
> will clone the git repository and use the high level pom to build the 3
> artifacts in the application.  However, each module will have different
> goals, mainly, the JAR i want to do a "mvn deploy site", and the WAR and
> EAR
> modules just a "mvn install".  Since Jenkins only cares about the parent
> pom
> is there a way to specify in that pom what goals I want run on each module?
> Or is there something I have to do in the module pom files?  Any help or
> suggestions are appreciated.  Thanks!
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Maven-and-Jenkins-question-tp5738064.html
> 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