I didn't know about that release plugin but it's too much for our
project right now. I'll tell you 1 vs 2...
In maven1 we do have a top level CurrentVersion that all subprojects
use, so they always match when checked out. And each file didn't have to
be changed so the versions matched, so a variable made sense.
I just want to avoid a hardcoded version constant to avoid error
especially with many devs checking in these.
So my thread here and the other are me trying to just get that number
propagated as a variable since I thought it would work.
As to the other thread's question, the
<version>${globalVersion}</version> is the one in the module's pom that
specifies it at the top level.
If I have to include the parent for it to work, I need the parent's
version number, which is what I am trying to avoid.
> -----Original Message-----
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 14, 2008 1:20 PM
> To: Maven Users List
> Subject: Re: Build one module?
>
> On Jan 14, 2008 11:01 AM, Labanca, Rick
> <[EMAIL PROTECTED]> wrote:
>
> > 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.
>
> If the parent pom is not located in the directory just above, you can
> use <parent><relativePath> to point to it.
>
> This is not going to change the fact that you need to specify the
> parent version in every child pom, though. The release plugin is
> designed to help with updating those version numbers.
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> 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]