Details
Description
While running mvn release:prepare on a project with
<version>2.2-SNAPSHOT</version> the goal executes successfully, as expected.
On a project with
<version>2.2</version> the goal fails as expected, because it's not a snapshot.
However, on a project with
<version>...-SNAPshot</version> the goal doesn't fail, i.e. the project is considered a snapshot.
In interactive mode the proposed defaults are:
Actual results:
release version: 2.2-SNAPshot
SCM release tag or label: myproject-2.2-SNAPshot
new development version: myproject-2.2-SNAPshot-SNAPSHOT
Conclusion: the version label is not treated as that of a snapshot project
Expected results:
Either:
a) if SNAPSHOT is not in upper-case the goal treats the project as a release, therefore fails.
b) the proposed defaults becom:
release version: 2.2
SCM release tag or label: myproject-2.2
new development version: myproject-2.2-SNAPSHOT