How to deploy SNAPSHOT with sources and JavaDoc?

后端 未结 3 1633
有刺的猬
有刺的猬 2020-12-07 11:49

I want to deploy sources and javadocs with my snapshots. This means that I want to automize the following command:

mvn clean source:jar javadoc:jar deploy
         


        
3条回答
  •  無奈伤痛
    2020-12-07 12:00

    The article referred to by Dan also mentions another approach that works without modifying poms AND won't go away anytime soon:

    mvn clean javadoc:jar source:jar install

    Which works fine with Maven 3+, along with...

    mvn clean javadoc:jar source:jar deploy

    Which I have tested from Jenkins deploying to Nexus.

    This approach was nice because I only had to modify some Jenkins jobs and didn't need to mess with my poms.

提交回复
热议问题