maven 下载源码eclipse的配置

https://www.cnblogs.com/shaoyu19900421/p/3854506.html?utm_source=tuicool

1、在eclipse使用maven 下载源码包需要更改 D:\apache-maven-3.2.1-bin\apache-maven-3.2.1\conf 目录下

的 settings.xml 文件, 在文件中加入:

 

复制代码
<profile>
        <id>downloadSources</id>
        <properties>
            <downloadSources>true</downloadSources>
            <downloadJavadocs>true</downloadJavadocs>           
        </properties>
    </profile>
复制代码
  <activeProfiles>
    <activeProfile>downloadSources</activeProfile> 
  </activeProfiles>

两行配置

2、配置eclipse:

 

Window > Preferences > Maven and checking the "Download Artifact Sources" and "Download Artifact JavaDoc" 选择。

3、pom.xml 文件 右击 RUN AS eclipse:clean eclipse:eclipse -DdownloadSources=true 命令即可。

posted on 2017-11-16 14:10  zhangxiaoyu  阅读(243)  评论(0)    收藏  举报

导航