mvn release:prepare not committing changes to pom.xml

前端 未结 9 692
攒了一身酷
攒了一身酷 2020-11-28 05:11

I\'m trying to release a Jenkins plugin (stashNotifier) with Maven and face a problem with the release plugin.

mvn clean release:prepare

r

9条回答
  •  广开言路
    2020-11-28 05:24

    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.

提交回复
热议问题