使用maven命令:mvn dependency:sources 下载依赖包的源代码。
或者
mvn dependency:sources -DdownloadSources=true -DdownloadJavadocs=true
或者
eclipse窗口->首选项->maven->勾选download artifact sources
还有一种应该也行:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
</configuration>
</plugin>
Maven 获取依赖包源码和api文档
猜你喜欢
转载自robert-wei.iteye.com/blog/2044250
今日推荐
周排行