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/plugins/maven-release-plugin/prepare-mojo.html#autoVersionSubmodules
Martin On 24.5.2010 19:18, 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 number in 10 different locations: - in the parent pom.xml, to denote the project version - in each module, to denote the module version - in each module's reference to the parent - in each module's reference to a sibling Any suggestions for reducing the number of locations (preferably to 1) ?
