Well building just one is what I really do want, because the project is
one big gnarly mess that I can't really redo.

In maven1 I could change to the particular directory and build there,
but in maven2 I don't think that will work. The driving issue is the
<version> tag in each of these. I want these to be globally set, and the
only way to do this is run from the top. 

In old maven, the <extend>../project.xml</extend> let me derive stuff
from the top level even if from from a subdir. I can't seem to do that
in maven2, and led me to this idea.

> -----Original Message-----
> From: Wayne Fay [mailto:[EMAIL PROTECTED] 
> Sent: Monday, January 14, 2008 12:16 PM
> To: Maven Users List
> Subject: Re: Build one module?
> 
> If you set up <modules> correctly, yes, this should work. It won't
> build *only* the dir1/dir2/pom.xml project, if that's what you want,
> but rather all 3 projects (root, dir1, dir2).
> 
> pom.xml
> <modules><module>dir1</module></modules>
> 
> dir1/pom.xml
> <modules><module>dir2</module></modules>
> 
> You should probably also include <parent> nodes in dir1 and dir2 poms.
> 
> Wayne
> 
> On 1/14/08, Labanca, Rick <[EMAIL PROTECTED]> wrote:
> >
> > I've got a messy maven 1 multiproject setup that I want to 
> avoid tearing
> > apart as I go to maven 2. One thing I can't really do is 
> change do a dir
> > and build because of the way the parent versioning works.
> >
> > That aside, I use module now at the top. Can I mvn and 
> specify building
> > just the one module? Or maybe module is wrong? How would I do this:
> >
> > pom.xml
> > dir1/pom.xml
> > dir1/dir2/pom.xml
> >
> > Can I from the top directory cause dir1/dir2/pom.xml 
> project to build?
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to