使用maven下载jar包的source和javadoc


使用maven菜单下载sources和javadocs没什么反应,还是命令给力。

 

使用参数下载源码包与doc包:
-DdownloadSources=true 下载源代码jar
-DdownloadJavadocs=true 下载javadoc包
mvn dependency:sources -DdownloadSources=true -DdownloadJavadocs=true

--亲测可用,下载完成之后jar的属性中的source和doc都自动关联上了(jar包属性上设置路径)。
mvn dependency:sources -DdownloadSources=true -DdownloadJavadocs=true

 

===========跳过测试==============
clean install -Dmaven.test.skip=true
or
clean install -DskipTests=true


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM