Eclipse中修改
window下的maven
在本地maven的安裝目錄下的conf目錄下的setting文件中加入:
<!--這一段寫在profiles標籤中-->
<profile>
<id>downloadSources</id>
<properties>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
</properties>
</profile>
<!--這一段寫在profiles標籤外-->
<activeProfiles>
<activeProfile>downloadSources</activeProfile>
</activeProfiles>