Maven release plugin fails : source artifacts getting deployed twice

后端 未结 12 1771
故里飘歌
故里飘歌 2020-11-28 22:04

We are using the maven release plugin on hudson and trying to automate the release process. The release:prepare works fine. When we try to do the release:perform , it fails

12条回答
  •  臣服心动
    2020-11-28 22:14

    I faced similar issue. Artifacts were getting deployed twice and the resultant build was failing.

    Checked and found that the issue was in Jenkins Script. The settings.xml was called twice. Like:

    sh "mvn -s settings.xml clean deploy -s settings.xml deploy -U .....

    which caused the issue. Updated this line and it worked like a charm:

    sh "mvn clean deploy -s settings.xml -U .....

提交回复
热议问题