Re: Sharing a version among different modules

2010-05-25 Thread Ernst de Haan
Users List Cc: Maven Users List Subject: Re: Sharing a version among different modules Thanks, Nicola. Interesting alternative! So if I understand you correctly, you have version numbers on the aggregator and on modules below that, but you just keep those to a fixed vale (say "0") and use the

Re: Sharing a version among different modules

2010-05-25 Thread Nicola Musatti
Ernst de Haan wrote: Thanks, Nicola. Interesting alternative! So if I understand you correctly, you have version numbers on the aggregator and on modules below that, but you just keep those to a fixed vale (say "0") and use the root parent version to the outside world? No, once version number

RE: Sharing a version among different modules

2010-05-25 Thread Thiessen, Todd (Todd)
y, May 25, 2010 8:58 AM > To: Maven Users List > Cc: Maven Users List > Subject: Re: Sharing a version among different modules > > Thanks, Nicola. Interesting alternative! > > So if I understand you correctly, you have version numbers on > the aggregator and on modu

Re: Sharing a version among different modules

2010-05-25 Thread Ernst de Haan
Thanks, Nicola. Interesting alternative! So if I understand you correctly, you have version numbers on the aggregator and on modules below that, but you just keep those to a fixed vale (say "0") and use the root parent version to the outside world? Cheers, Ernst de Haan Op 25 mei 2010

Re: Sharing a version among different modules

2010-05-25 Thread Nicola Musatti
I keep all version numbers in the dependencyManagement section of my parent POM, which is different from my aggregator POM and is parent to the aggregator and all its modules. In this way I specify each version exactly once. Something like: bouncycastle bcprov-jdk13 140 dependencyManagem

Re: Sharing a version among different modules

2010-05-24 Thread Ernst de Haan
>> How do I share one version number across multiple module (subprojects)? >> >> Any suggestions for reducing the number of locations (preferably to 1) ? > > There's also the versions-maven-plugin... Cheers, Wayne, the more options the better. I'll look at that as well. Regards, Ernst -- tryi

Re: Sharing a version among different modules

2010-05-24 Thread Wayne Fay
> How do I share one version number across multiple module (subprojects)? > > Any suggestions for reducing the number of locations (preferably to 1) ? There's also the versions-maven-plugin... Wayne - To unsubscribe, e-mail: use

Re: Sharing a version among different modules

2010-05-24 Thread Ernst de Haan
> But if you are using release plugin > http://maven.apache.org/plugins/maven-release-plugin/ for releasing versions, > same version numbers in poms are updating automatically. There is no need to > have only one. > > See > http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html

Re: Sharing a version among different modules

2010-05-24 Thread Ernst de Haan
>> - in the parent pom.xml, to denote the project version > you need this > >> - in each module, to denote the module version > just leave out the version and it will inherit it from the parent pom > >> - in each module's reference to the parent > you need this > >> - in each module's reference

Re: Sharing a version among different modules

2010-05-24 Thread Martin Schayna
You can use {$parent.version} variable in modules poms. But if you are using release plugin http://maven.apache.org/plugins/maven-release-plugin/ for releasing versions, same version numbers in poms are updating automatically. There is no need to have only one. See http://maven.apache.org/p

Re: Sharing a version among different modules

2010-05-24 Thread kristian
that is how do it (http://github.com/mkristian/jruby-maven-plugins/) On Mon, May 24, 2010 at 10:48 PM, Ernst de Haan wrote: > How do I share one version number across multiple module (subprojects)? > > I have one parent pom.xml referencing 3 modules and -believe it or not- I've > got the version