Maven - Error Releasing Code to GitHub (Hangs After Push)

前端 未结 8 1336
悲哀的现实
悲哀的现实 2020-12-02 15:11

I\'m attempting to run the mvn release:prepare goal and it\'s hanging after the push. Any idea what I could be doing wrong?

[INFO] [INFO] -----         


        
8条回答
  •  长情又很酷
    2020-12-02 15:37

    I had faced the same problem, I had tried many ways but got to resolved it with below steps:

    1. you need check git origin

    2. update your pom.xml,find scm section,

     change github ssh address the `:` to '/'
    
      before 
    
       
        scm:git:ssh://git@github.com:xxx/xxxin.git
        scm:git:ssh://git@github.com:xxx/xxxin.git
        https://github.com/xxx/jenkins-xxx-plugin
        HEAD
       
    
    then
    
       
        scm:git:ssh://git@github.com/xxx/xxxin.git
        scm:git:ssh://git@github.com/xxx/xxxin.git
        https://github.com/xxx/jenkins-xxx-plugin
        HEAD
       
    

    3. set ~/.m2/settings.xml

    
     
      
        
            maven.jenkins-ci.org 
            your jenkins username
            your jenkins password
        
    
    

    4. then commit & push your changes

    5. run mvn release:prepare release:perform

提交回复
热议问题