码迷,mamicode.com
首页 > 系统相关 > 详细

maven 下载源码eclipse的配置

时间:2014-07-19 14:29:53      阅读:395      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   java   color   使用   

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:

 bubuko.com,布布扣

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

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

maven 下载源码eclipse的配置,布布扣,bubuko.com

maven 下载源码eclipse的配置

标签:style   blog   http   java   color   使用   

原文地址:http://www.cnblogs.com/shaoyu19900421/p/3854506.html

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