Maven作为项目管理的包,同时也能方便的将source-jar下载的本地,省去了每次到网上分别下载的问题。
Maven下载Jar包同时下载源文件和文档
示例,在maven生成的工程里面:
mvn
eclipse:eclipse -DdownloadSources
-DdownloadJavadocs
参考:
http://stackoverflow.com/questions/310720/get-source-jar-files-attached-to-eclipse-for-maven-managed-dependencies
http://piotrga.wordpress.com/2009/06/25/how-to-download-javadocs-or-sources-in-maven-2/
mvn dependency:sources
mvn dependency:resolve
-Dclassifier=javadoc
第一个命令去取所有在POM中的的source code,第二个去取Javadocs
http://stackoverflow.com/questions/2059431/get-source-jars-from-maven-repository
Maven source jar get,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/jason0529/p/3755142.html