thank you Hervé. To set the version I think there is also versions:set
but I haven't found yet how to read to update the version to the next
minor or patch, without providing any parameter.
I'm just imagining two options illustrate my mind: setPatchVersion and
setVersionSuffix
mvn release:update-version -DsetPatchVersion=1 -DsetVersionSuffix=SNAPSHOT
setPatchVersion: would add a digit to the version number
setVersionSuffix: would add SNAPSHOT to the version
So far I think I need to do that on the command line. That's not very
portable...
something like this: mvn versions:set -DnewVersion=$(mvn help:evaluate
-Dexpression=project.version -q -DforceStdout).0-SNAPSHOT
Le 2022-06-25 à 08:26, herve.bout...@free.fr a écrit :
release plugin has an update-versions goal
https://maven.apache.org/maven-release/maven-release-plugin/update-versions-mojo.html
- Mail original -
De: "Stephane Passignat"
À: "Maven Users List"
Envoyé: Vendredi 24 Juin 2022 21:19:18
Objet: plugin to update version to patch version
Hello,
I actually create a branch (using scm plugin) from a tag (created by
release plugin) to patch a release version of a library. After the
branching I need to change the pom version from minor (ex: 1.0.2) to
patch (ex: 1.0.2.0-SNAPSHOT).
Are there any plugin for that ?
I looked at version plugin but I don't see...
thanks for your help
Stephane
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org