Maven maven-deploy-plugin always upload twice

后端 未结 1 694
南方客
南方客 2020-12-14 10:35

I\'ve a problem when publishing component to a Nexus repository, Maven upload the file twice:

  • first time with maven-deploy-plugin groupId/artifactId/version pa
相关标签:
1条回答
  • 2020-12-14 11:26

    The maven-deploy-plugin uploads the file you specify then uploads the all project attached artifacts. The maven-assembly-plugin by default attaches the output file to the project attached artifacts. This makes the upload happen twice for you.

    The fix is to this to your maven-assembly-plugin configuration.

    <attach>false</attach>
    
    0 讨论(0)
提交回复
热议问题