mvn release:prepare not committing changes to pom.xml

前端 未结 9 676
攒了一身酷
攒了一身酷 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:32

    I solved the issue on my side (running maven 3.0.5) by updating the git scm provider dependency, not the release plugin version:

    
      
        
          maven-release-plugin
          2.4.2
          
            
              org.apache.maven.scm
              maven-scm-provider-gitexe
              1.8.1
            
           
          
        
    
    

    The git scm 1.8.1 version correctly makes the git commit (tested with the prepare and rollback goals).

    EDIT: Different versions of maven-release-plugin and maven-scm-provider-gitexe may be required depending on your environment. See the comments for more discussion.

提交回复
热议问题