有没有办法通过使用maven来获取除二进制jar之外的源jar?
答案 0 :(得分:4)
试试这个:
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
...
</configuration>
</plugin>
</plugins>
</build>
...
</project>
这可以使用Eclipse,否则您可以在命令行上执行此操作:
# mvn dependency:sources
# mvn dependency:resolve -Dclassifier=javadoc
答案 1 :(得分:1)