Maven release plugin fails : source artifacts getting deployed twice

后端 未结 12 1772
故里飘歌
故里飘歌 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:33

    This was happening to me when running

    mvn install deploy
    

    I avoided the problem by instead running

    mvn deploy
    

    (which implies install). In my case only one artifact was being attempted to be uploaded twice, and that was a secondary artifact (maven-jar-plugin was setup to build a secondary jar in addition to the one built by the default-jar execution).

提交回复
热议问题