eclipse下载源码配置

[size=large][size=large][color=blue]以下三种方案,自己任选一种即可

1.更改maven的setting.xml配置文件,增加如下代码
 <profile>
        <id>downloadSources</id>
        <properties>
            <downloadSources>true</downloadSources>
            <downloadJavadocs>true</downloadJavadocs>           
        </properties>
    </profile>
  <activeProfiles>
    <activeProfile>downloadSources</activeProfile> 
  </activeProfiles>



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

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

猜你喜欢

转载自934268568.iteye.com/blog/2375463
今日推荐