您的位置:首页 > 编程语言 > Java开发

maven下载源码和java docs

2014-09-25 22:53 471 查看
方法一:

mvn dependency:sources
mvn dependency:resolve -Dclassifier=javadoc

The first command will attempt to download source code for each of the dependencies in your pom file.

The second command will attempt to download the Javadocs.

方法二:

Open your settings.xml file (
~/.m2/settings.xml
). Add a section with the properties added. Then make sure the activeProfiles includes the new profile.

<profiles>
<profile>
<id>downloadSources</id>
<properties>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
</properties>
</profile>
</profiles>

<activeProfiles>
<activeProfile>downloadSources</activeProfile>
</activeProfiles>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: