Maven deploy + source classifiers

前端 未结 3 873
余生分开走
余生分开走 2021-01-13 12:44

I\'m trying to deploy a Maven artifact with a classifier. Since I need both the sources and the JAR (I\'m using it from GWT), I would like to get artifact-version-clas

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-13 13:49

    A bit more of an updated answer, using sources and javadoc

    3.0.1
    3.0.1
    
    
    
        org.apache.maven.plugins
        maven-source-plugin
        ${maven.source.version}
        
            jre10-sources
        
    
    
    
    
     
        org.apache.maven.plugins
        maven-javadoc-plugin
        ${maven.javadoc.version}
        
            jre10-javadoc
        
    
    

提交回复
热议问题