打开settings.xml文件
~/.m2/settings.xml(如果不存在,请创建它)。添加具有添加的属性的部分。然后确保activeProfiles包括新的配置文件。
<settings> <!-- ... other settings here ... --> <profiles> <profile> <id>downloadSources</id> <properties> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> </properties> </profile> </profiles> <activeProfiles> <activeProfile>downloadSources</activeProfile> </activeProfiles></settings>



