Maven学习之19设置自动下载sources和Javadocs

来源:互联网 发布:aa制记账软件 编辑:程序博客网 时间:2024/06/05 10:27

在maven 的settings里面加入:

<profiles><profile>    <id>downloadSources</id>    <properties>        <downloadSources>true</downloadSources>        <downloadJavadocs>true</downloadJavadocs>               </properties></profile></profiles><activeProfiles>  <activeProfile>downloadSources</activeProfile></activeProfiles>

eclipse可以这样配置:

Window > Preferences > Maven and checking the "Download Artifact Sources" and "Download Artifact JavaDoc" options

具体请看参考【1】

参考
【1】 http://blog.csdn.net/topwqp/article/details/8902863

0 0