Johnson, Jonathan a écrit :
Emmanuel,
I was hoping that Continuum would preserve the parent-child relationship of a
parent and child poms. It would be nice to force a build on either a child or
the parent. Forcing a build on the parent pom would build its child modules.
Building dependant projects is a planned feature.
As it stands now I can use the parent pom.xml to load all the sub-modules in
Continuum, then I can remove the parent project since it is not necessary.
This is confusing. As it stands now if you try to run the parent project it
just reports a success without doing anything. I would expect an error saying
it can't build the sub-modules or it builds the sub-modules.
If you are saying that the parent pom.xml is not needed then shouldn't
Continuum just add the child modules and not the parent.
Why it isn't needed?
You need it for submodule, at least to install it in local repo because
sub-modules depends on it.
Also, What if you add three parent pom.xml to Continuum. The flat list of
modules looses the project groupings.
Perhaps adding a tree or grouping concept for the Continuum Projects list would
be a helpful addition.
Project grouping is a planned features for 1.1
Emmanuel
- Jonathan
-Original Message-
From: Stevenson, Chris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 6:27 AM
To: 'continuum-users@maven.apache.org'
Subject: RE: multi-module maven 2 project
Thanks for your responses gents.
I was under wrong the impression that continuum didn't support multi module
builds. Now I know it does I will definitely be using them more.
Cheers,
Chris
-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: 31 January 2006 08:46
To: continuum-users@maven.apache.org
Subject: Re: multi-module maven 2 project
a command line project is a Shell project.
If you want to build all sub-modules when you build the parent, you have
several solution.
1- You want all projects are independant in Continuum, so you add a Maven
project. The default goal of a maven parent project isclean install with -N
parameter that means that mvn doesn't run recursivly in all modules. You can
remove -N parameter in build definition but all your submodules will be
built twice (with parent pom and with independant project)
2- You don't need independant projects for submodules in Continuum. Add a
Shell project instead of Maven project and set up the command line to run.
Emmanuel
Johnson, Jonathan a écrit :
I submitted the parent pom to continuum. Its very nicely found all the
sub-modules and set those up as well. I did not have to set up a command
line project (not sure what that is either).
One thing that could be enhanced for continuum is a tree structure instead
of a flat list. The tree structure would indicate while module is the
parent module. Currently there is not indicator which is you parent module.
Of course that begs the question of a hierarchical, multi-project tree in
maven and continuum.
The other thing I noticed is forcing a build on the parent module in
continuum does not execute the build on the all children. For me it quickly
executes with a success yet the sub-module builds are not invoked.
This is the build report on the parent module named Java Modules.
[INFO] Scanning for projects...
[INFO]
--
--
[INFO] Building Java Modules
[INFO]task-segment: [clean, install]
[INFO]
--
--
[INFO] [clean:clean]
[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[INFO] [install:install]
[INFO] Installing /home/builder/454/AppJava/modules/66/pom.xml to
/home/builder/.m2/repository/com/fourfivefour/AppJavaModules/1.0/AppJa
vaModules-1.0.pom [INFO]
--
--
[INFO] BUILD SUCCESSFUL
[INFO]
--
--
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Jan 30 14:02:38 EST 2006 [INFO] Final Memory:
2M/5M [INFO]
--
--
-Original Message-
From: Stevenson, Chris [mailto:[EMAIL PROTECTED]
Sent: Monday, January 30, 2006 1:04 PM
To: 'continuum-users@maven.apache.org'
Subject: RE: multi-module maven 2 project
Gents,
Can I just check, did you setup your mvn multi module project by
submitting the parent pom and continuum working it out? Or did you
have to create a command line project?
I remember a while back that continuum couldn't build multi module
projects, except as a command line project. Or am I going nuts..
Chris
-Original Message-
From: Johnson, Jonathan [mailto:[EMAIL PROTECTED]
Sent: 27 January 2006 15:26
To: continuum-users@maven.apache.org
Subject: RE: multi-module