that is how do it (http://github.com/mkristian/jruby-maven-plugins/)
On Mon, May 24, 2010 at 10:48 PM, Ernst de Haan <[email protected]> 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 number in 10 different locations: > - 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 to a sibling > <dependency> <groupId>${project.parent.groupId}</groupId> <artifactId>sibling-one</artifactId> <version>${project.parent.version}</version> </dependency> regards Kristian > Any suggestions for reducing the number of locations (preferably to 1) ? > > PS. To see the project and the POMs, see http://github.com/znerd/logdoc > > Cheers, > > > Ernst > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Kristian Meier + Saumya Sharma + Sanuka Meier Vadakkethu House, Edayanmula West PO - 689532, Pathanamthitta District, Kerala, INDIA tel: +91 468 2319577 protect your privacy while searching the net: www.ixquick.com _=_ q(-_-)p '_) (_` /__/ \ _(<_ / )_ (__\_\_|_/__) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
