I have a company-wide parent pom with a <dependencyManagement>
section which defines the versions of my projects that should be used throughout my application, some of which are SNAPSHOTs, a bit like this:
<dependencyManagement>
<dependencies>
...
<dependency>
<groupId>my.group</groupId>
<artifactId>myArtifact</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
...
<dependencies>
</dependencyManagement>
When I run release:prepare
on the parent pom, these SNAPSHOTs are not removed. The result is that the projects which inherit from the parent cannot use its versions when being released themselves. How do I ensure that the <dependencyManagement>
section of the parent pom is updated when I release?
I saw this question: why does maven release plugin allow for SNAPSHOT version in dependency managment?, but the tickets mentioned claim to be fixed in earlier versions of the plugin.
Maven Release Plugin 2.3.1
Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"