You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by br...@jpmorgan.com on 2006/02/02 16:54:19 UTC
Re: [m2] how do I make the modules use the same version as the parent pom?
Does the release plugin update both the parent's version number and the
child's reference to the parent's version number?
From
Brett Porter <br...@gmail.com>
Subject
Re: [m2] how do I make the modules use the same version as the parent pom?
Date
Fri, 23 Dec 2005 00:09:00 GMT
We're working on a cohesive solution in Maven 2.1 that balances out
the principle of least surprise, reproducibility and ease of use.
However, you can use the release plugin with 2.0 to aid in updating
the version after each release.
- Brett
On 12/23/05, Mick Knutson <mi...@hotmail.com> wrote:
> OK, but I still have the version declared in the following tags in each
> module:
>
> <parent>
> <groupId>com.wamu</groupId>
> <artifactId>projects</artifactId>
> <version>1.0</version>
> </parent>
>
> I want to not have to update each module when I increment the version.
>
> This worked fine:
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.wamu</groupId>
> <!--<version>1.0</version>-->
> <artifactId>projects</artifactId>
>
>
>
--------------------------------------------------------------------------------
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: mickknutson@hotmail.com
>
--------------------------------------------------------------------------------
>
> ----- Original Message -----
> From: "Rinku" <ra...@gmail.com>
> To: "Maven Users List" <us...@maven.apache.org>; "Mick Knutson"
> <mi...@hotmail.com>
> Sent: Thursday, December 22, 2005 11:20 AM
> Subject: Re: [m2] how do I make the modules use the same version as the
> parent pom?
>
>
> >
> > You can drop the <version> tag for your module specific pom but you
will
> > need to have a <parent> setup for your modules but note that you will
need
> > to specify a <version> there, something like this :
> >
> > <parent>
> > <artifactId>maven-plugin-parent</artifactId>
> > <groupId>org.apache.maven.plugins</groupId>
> > <version>2.0.1</version>
> > </parent>
> >
> > You module should then pick up the version off it if its there's none
> > provided.
> >
> > HTH,
> >
> > Rahul
> >
> >
> > ----- Original Message -----
> > From: "Mick Knutson" <mi...@hotmail.com>
> > To: "Maven Users List" <us...@maven.apache.org>
> > Sent: Friday, December 23, 2005 8:11 AM
> > Subject: [m2] how do I make the modules use the same version as the
parent
> > pom?
> >
> >
> > how do I make the modules use the same version as the parent pom?
> >
> >
> >
--------------------------------------------------------------------------------
> > Thanks
> > Mick Knutson
> >
> > http://www.BASELogic.com
> > http://www.MickKnutson.com
> >
> > MSN Messenger: mickknutson@hotmail.com
> >
--------------------------------------------------------------------------------
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Thanks,
Brian Yoffe
This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates