Am Montag, 15. Juni 2015, 01:02:46 schrieb Richard Bywater:
Hi Francis, hi Richard,
thanks for your help.
The maven release plugin (v2,5) seems to be broken somehow.
After inspecting my bash history and the github repo, I found the following:
mvn o.a.m.p:maven-release-plugin:2.5:prepare
-) Tagged the pom with 1.10-SNAPSHOT artifact version as 'cmakebuilder-1.10'
and pushed the tag.
-) Changed artifact version in the pom to 1.10 (release version).
-) Pushed a new revision of the pom with commit message '[maven-release-
plugin] prepare release cmakebuilder-1.10' to master branch.
-) Persisted the tag name in release.properties.
Note that the pom in the freshly tagged revision still has the 1.10-SNAPSHOT
version, whereas the pom on the master branch has a 1.10 artifact version.
After that,
mvn o.a.m.p:maven-release-plugin:2.5:perform
-) Reads the tag name from release.properties.
-) Clones the tagged revision 'cmakebuilder-1.10'
From here on, things go wrong: The cloned revision has the *SNAPSHOT version*
and maven builds that and uploads it to the snapshot repo.
For the records:
My github repo was in the state after the release:prepare as described above.
What I did to fix that:
-) Pulled changes from github.
-) Deleted the tag on the remote repo.
-) Created a new tag for the pom revision with the 1.10 artifact version.
-) Pushed the tag
-) Re-created release.properties with the tag (see
http://stackoverflow.com/a/18943705)
-) Ran 'mvn release:prepare'
Martin