码迷,mamicode.com
首页 > 编程语言 > 详细

maven下载源码和java docs

时间:2014-09-26 01:11:48      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:des   io   java   for   sp   cti   on   c   ad   

方法一:

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

标签:des   io   java   for   sp   cti   on   c   ad   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!