Maven Release Plugin Does Not Update SNAPSHOTs Depending on Management

I have the parent pom of the whole company with a section <dependencyManagement>that defines the versions of my projects that should be used throughout my application, some of which are SNAPSHOT, something like this:

<dependencyManagement>
  <dependencies>
    ...
    <dependency>
      <groupId>my.group</groupId>
      <artifactId>myArtifact</artifactId>
      <version>1.0-SNAPSHOT</version>
    </dependency>
    ...
  <dependencies>
</dependencyManagement>

When I run release:prepareon the parent pom, these SNAPSHOTs are not deleted. As a result, projects that inherit from the parent cannot use their versions at release. How can I guarantee that the section of the <dependencyManagement>parent pump is updated upon release?

I saw this question: why does the maven release plugin allow the SNAPSHOT version in dependency management? but the tickets mentioned are 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"
+5
2

maven-release-plugin , SNAPSHOT -s <dependencies/>. <dependencies/> , . .

<dependencies/> <dependencyManagement/> , , . , , SNAPSHOT -s , , .

, maven-release- <pluginManagement/>. , , Maven, , <dependencies/>.

- , , / SNAPSHOT, <*Management/>.

, , , POM <properties/>, . , SNAPSHOT -s grep:

grep SNAPSHOT pom.xml
+1

, , , ? relase: , , ? ( , ?).
, , @khmarbaise, SNAPSHOTS, ( , ),

, , , ... !

+1

All Articles