How to deploy SNAPSHOT with sources and JavaDoc?

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

    
       
        
          maven-source-plugin
          
            
              attach-sources
              deploy
              jar-no-fork 
            
          
        
         
          maven-javadoc-plugin 
           
             
              attach-javadocs
              deploy
              jar 
             
           
        
         
          
          maven-deploy-plugin 
           
             
              deploy
              deploy
              deploy 
             
           
        
       
    
    

    See Sonatype's OSS parent POM for a complete example.

提交回复
热议问题