Source and Javadoc jar generation

前端 未结 6 1863
说谎
说谎 2020-12-09 11:38

I think my question is easy. However it is surprising that I couldn\'t find any easy solution.

I\'m developing an open source Java library project on Netbeans and l

6条回答
  •  执念已碎
    2020-12-09 12:27

    This is all the maven config you need to attach source and javadoc automatically to the build:

    
        
            
                org.apache.maven.plugins
                maven-javadoc-plugin
                2.7
                
                    
                        attach-javadoc
                        
                            jar
                        
                    
                
            
            
                org.apache.maven.plugins
                maven-source-plugin
                2.1.2
                
                    
                        attach-source
                        
                            jar
                        
                    
                
            
        
    
    

    That's not too awful, is it?

提交回复
热议问题