[size=large][size=large][color=blue]以下三种方案,自己任选一种即可
1.更改maven的setting.xml配置文件,增加如下代码
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]
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]