Re: The maven-assembly-plugin and a large complex project.

2011-04-07 Thread Wendy Smoak
On Thu, Apr 7, 2011 at 5:30 AM, Adam Gibbons wrote: > Alex, that's perfect! Exactly the kind of thing I'm trying to do myself. > Would you mind posting your reactor, war, jar and parent poms please? I'd > really like to see a working example of this in action. There are lots of open source projec

Re: The maven-assembly-plugin and a large complex project.

2011-04-07 Thread Alex Lopez
BTW the "mvn install" or "mvn deploy" is done in our case on the top directory, the reactor one, and it gets propagated to the others in appropriate order by the reactor module. Em 07-04-2011 11:16, Alex Lopez escreveu: I don't think I can post the full thing, but I'll post some cut down versi

Re: The maven-assembly-plugin and a large complex project.

2011-04-07 Thread Alex Lopez
This is an example multi-module project with separate war, reactor and parent poms Em 07-04-2011 11:16, Alex Lopez escreveu: I don't think I can post the full thing, but I'll post some cut down version so you can make an idea. BTW, I got the idea from the documentation on sonatype site, look i

Re: The maven-assembly-plugin and a large complex project.

2011-04-07 Thread Alex Lopez
I don't think I can post the full thing, but I'll post some cut down version so you can make an idea. BTW, I got the idea from the documentation on sonatype site, look into maven reference and maven by example books, available for free. They include links to sample projects configured more or

Re: The maven-assembly-plugin and a large complex project.

2011-04-07 Thread Adam Gibbons
Alex, that's perfect! Exactly the kind of thing I'm trying to do myself. Would you mind posting your reactor, war, jar and parent poms please? I'd really like to see a working example of this in action. Cheers, Adam On 7 April 2011 09:51, Alex Lopez wrote: > Here we have a similar setup, we man

Re: The maven-assembly-plugin and a large complex project.

2011-04-07 Thread Alex Lopez
Here we have a similar setup, we manage to build everything into a WAR including dependent jars using reactor/assembly project: BTW, we use separate poms for parent (inheritance) and reactor (multi-module), which I think makes sense as all sub-modules have the parent as parent but not one sub-

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 11:07 AM, Wendy Smoak wrote: > That's out of scope for Maven command line if you are *just* building > the war from its subdirectory.  As I mentioned, it's something your > IDE might handle for you. Hmm, well... maybe not. The output of "mvn --help" includes: -amd,--also

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 11:06 AM, Adam Gibbons wrote: > Yes, > >  +-- pom.xml >  +-- m1 (j1, j2) >  +-- m2 (j3) >  +-- m3 (j1, j3) >  +-- m4 >  +-- m5 >  +-- j1 >  +-- j2 >  +-- j3 >  +-- war1 (m1,m2,m3) >  +-- war2 (m4) >  +-- war3 (m5) > > This setup is effectively what I have so far. > However I

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 10:56 AM, Adam Gibbons wrote: > for example let's say i build my pdf-creation.war file. this depends on a > tree-like structure of sub modules and some in-house jar files. It seems > that when I build the war the sub module tree is pulled in and the in-house > dependencies/

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Adam Gibbons
d here: > https://github.com/khmarbaise/supose/ > you can enhance this by adding supplemental war-modules with appropriate > dependencies. > > Kind regards > Karl Heinz Marbaise > > ----- > Kind regards > Karl Heinz Marbaise > > http://www.soebes.de > http

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Adam Gibbons
Hi Wendy, Thank you for the helpful reply! I've never used Maven on this scale before and it's a steep learning curve! I've been trying to convert a massive multi module project from ant to maven these past two weeks, it all compiles and runs unit tests now, but i've had no end of problems getting

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Karl Heinz Marbaise
war-modules with appropriate dependencies. Kind regards Karl Heinz Marbaise - Kind regards Karl Heinz Marbaise http://www.soebes.de http://www.skmwiki.de http://supose.org/wiki/supose -- View this message in context: http://maven.40175.n5.nabble.com/The-maven-assembly-plugin-and-a-large-

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 10:44 AM, Adam Gibbons wrote: > Also I refer you to: > http://maven.apache.org/plugins/maven-assembly-plugin/which states > that it can create distributions in the war format. It *can* but you generally only need it if the war plugin is not doing what you need. When buildi

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 10:37 AM, Adam Gibbons wrote: > At the moment I don't think the jar modules get compiled/deployed > when i build the war. What makes you say that? What exactly are you doing and what happens vs. what you expected to happen? Guessing, I'd say you are in one of the war sub

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Adam Gibbons
Also I refer you to: http://maven.apache.org/plugins/maven-assembly-plugin/which states that it can create distributions in the war format. On 6 April 2011 15:27, Karl Heinz Marbaise wrote: > Hi Adam, > > > What I would like is a top level pom which upon doing mvn package it will > > produce my

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Adam Gibbons
Hi Karl, That is effectively what I have so far. Except there are also some jar projects in the structure too which more than 1 module will reference. (This is to avoid sub-child modules being added to the reactor list more than once.) At the moment I don't think the jar modules get compiled/deplo

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Karl Heinz Marbaise
Hi Adam, > What I would like is a top level pom which upon doing mvn package it will > produce my 4 WAR files by compiling all child modules AND jars. > Each WAR file is comprised of a number of modules and some of the multiple > modules have a dependency on in-house compiled jars. Ideally when bu

The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Adam Gibbons
Hello all, I'm working on a large aggregate project that I'm trying to build 4 WAR files for. What I would like is a top level pom which upon doing mvn package it will produce my 4 WAR files by compiling all child modules AND jars. Each WAR file is comprised of a number of modules and some of the