Maven only replaces SNAPSHOTS with the latest version

So I am using maven 3.0.5 and am trying to replace all -SNAPSHOTS in the project with the equivalent of the latest LATEST version. Before anyone point me to the maven plugin versions and the matrix:

http://mojo.codehaus.org/versions-maven-plugin/examples/advancing-dependency-versions.html

Let me add that I have looked through it and so far have not been able to get the versions plugin to ignore the SNAPSHOT dependencies. According to the matrix in the link above, the purpose of using the latest versions should be exactly what I want, however when I run:

mvn versions: use-latest-releases

All dependencies, including release versions, are updated to the latest. This is not what I want and I cannot find a way to filter the release versions from the upgrade candidate list.

I also tried to configure plugin versions to include only artifacts with -SNAPSHOT in their versions:

 <plugin>
   <groupId>org.codehaus.mojo</groupId>
   <artifactId>versions-maven-plugin</artifactId>
   <version>2.1</version>
       <configuration>
           <includesList>*:*:*:*:0-SNAPSHOT</includesList>
       </configuration>
 </plugin>

      

Please note that for all snapshots with version "0-SNAPSHOTS" we are implementing a modified version of the release process described at http://axelfontaine.com/blog/maven-releases-steroids.html for our releases.

Also, I would like to do the same with the version numbers stored in properties, basically using:

mvn versions: update-properties

I would like to ignore all release versions and only target -SNAPSHOT versions to upgrade.

+3
maven-3 versions-maven-plugin


source to share


No one has answered this question yet

Check out similar questions:

130
Setting java version in maven - differences between properties and compiler plugin
five
maven versions release candidates and snapshot
3
How do I get the latest version (also SNAPSHOT) of a maven artifact using the ether API?
3
Maven Versions plugin: Versions: use releases does nothing
2
Maven versions plugin - use the latest, preferring snapshots
1
How to update maven-metadata update maven-plugin version - *. Xml before getting the latest artifact versions?
0
maven - remove -SNAPSHOT from tag property in pom.xml
0
How do I upgrade to the latest version?
0
Maven plugin release and versions
0
Maven versions plugin: where version is compared to



All Articles
Loading...
X
Show
Funny
Dev
Pics