I\'m trying to release a Jenkins plugin (stashNotifier) with Maven and face a problem with the release plugin.
mvn clean release:prepare
r
Firstly, the answers from richnou and vasekt solved my problem I thought I'd post this answer just because of newer versions than have been mentioned and I thought it would be good to give an extra example including them.
I was running maven release plugin 2.3.2 with Git 3.3.x without specifying the maven scm dependency version, which was causing the snapshot issue. For me I just upgraded to the latest version at the time for both maven release plugin and the scm dependency which were as follows:
maven-release-plugin
2.5.3
org.apache.maven.scm
maven-scm-provider-gitexe
1.9.5
This worked fine for me, release versions uploaded properly to the release repo and the snapshot worked as expected as well.