我的 Maven 项目中有 spring 框架依赖项。我想附上 Spring 框架依赖项的 Javadoc。
我添加到 pom.xml
以下几行
<repositories>
<repository>
<id>springsource-repo</id>
<name>SpringSource Repository</name>
<url>http://repo.springsource.org/release</url>
</repository>
</repositories>
<build>
<plugins>
...
<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>
</plugins>
</build>
我已经安装了 m2eclipse,并且我还检查了设置中的选项 Download Artifact Sources/Javadoc
。
当我运行 mvn eclipse:eclipse
时,它没有显示任何警告。但是没有下载 javadoc .jar
文件。
最佳答案
在 Eclipse 中转到 Windows->preferences->Maven 并在此处选中带有 download sources 的框,也可能是 download javadoc .这应该可以解决问题。
关于eclipse - 如何使用 Maven Eclipse 插件从其他存储库下载源代码和 javadoc Artifact ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17086272/