How to deploy SNAPSHOT with sources and JavaDoc?

后端 未结 3 1569
有刺的猬
有刺的猬 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

    Just to add an alternative that doesn't require you to muck with plugin configuration:

    mvn -DperformRelease=true [goals]
    

    Credit goes to mcbeelen from http://sea36.blogspot.com/2009/02/attaching-javadocs-and-sources-to-maven.html?showComment=1314177874102#c6853460758692768998

提交回复
热议问题