简体   繁体   English

如何使用Maven将Java库及其源代码和JavaDoc安装到本地存储库

[英]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 ? 我已经生成了二进制jar,源代码jar和javadoc jar,但是“ mvn install”仅安装二进制java,是否有任何简单的方法也可以安装源代码jar和javadoc jar? Thanks 谢谢

The simplest way to achieve it is by using the performRelease flag 最简单的方法是使用performRelease标志

mvn -DperformRelease=true clean install 

It will add sources and javadocs to the installed artifact 它将源和javadocs添加到已安装的工件中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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