首页 > 编程语言 > 详细

maven下载源码和java docs

时间:2014-09-26 00:36:19      阅读:464      评论:0      收藏:0      [点我收藏+]

方法一:

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>

 

maven下载源码和java docs

原文:http://www.cnblogs.com/wucg/p/3993889.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!