简体   繁体   中英

How to install java library with its source code and javadoc to local repository by using maven

I have generated binary jar, source code jar and javadoc jar, but the "mvn install" only install the binary java, is there any easy way to also install source code jar and javadoc jar ? Thanks

The simplest way to achieve it is by using the performRelease flag

mvn -DperformRelease=true clean install 

It will add sources and javadocs to the installed artifact

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM