Maven Snapshot in pom.xml

André

There are a easy way to make Maven put "-SNAPSHOT" on my versions? We have a project with many POMs.

We usualy create branchs from TAGs that haven't SNAPSHOTs.

blackbuild

Use the release plugin:

mvn --batch-mode release:update-versions -DdevelopmentVersion=1.2.0-SNAPSHOT

You can use the versions-plugin to do that:

mvn versions:set -DnewVersion=1.2.0-SNAPSHOT

Alternatively, you could use release:branch to even create the branch as well (provided the scm settings in your pom are correct):

(check out tag)
mvn release:branch -DbranchName=my-branch -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false -DreleaseVersion=1.0.1-SNAPSHOT

Yes, the property is named releaseVersion, although it is really the version for the branch. (see: http://maven.apache.org/maven-release/maven-release-plugin/examples/branch.html for details)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Meaning of "SNAPSHOT" version in Maven pom.xml

From Dev

maven pom xml variables

From Dev

What are the difference between pom.xml and effective pom in Apache Maven?

From Dev

Maven Enforce some rules on pom.xml

From Dev

Error in pom.xml, maven issue

From Dev

Error in pom.xml Maven build

From Dev

jBPM Maven dependencies not showing in pom.xml

From Dev

Repositories specified in pom.xml are not used by maven?

From Dev

Maven pom.xml error in eclipse

From Dev

maven pom.xml error with configuration in IntelliJ

From Dev

maven plugin dependency scope in pom.xml

From Dev

JDBC Maven Dependency in pom.xml

From Dev

Dependency version in maven pom.xml

From Dev

Maven not recognising 'configuration' tag in pom.xml

From Dev

Upload maven pom.xml to Git repository?

From Dev

Spring Maven project structure pom.xml

From Dev

Maven testResource filtering is not working in pom.xml

From Dev

Maven: If sentences in pom.xml in the property tag

From Dev

how to configure dependencies in maven pom.xml?

From Dev

Using maven pom to export values in xml file

From Dev

Dependency version in maven pom.xml

From Dev

jBPM Maven dependencies not showing in pom.xml

From Dev

Maven pom.xml <version></version>

From Dev

Maven not recognising 'configuration' tag in pom.xml

From Dev

Findbugs plugin configuration in maven pom.xml

From Dev

Trying to add plugin in pom.xml in maven

From Dev

Maven pom.xml adding another project

From Dev

Maven pom.xml in META-INF vs pom.xml in Maven repository

From Dev

What is use of enabled(snapshot, releases) tag in maven pom's repository element?