如何从其他存储库下载源和javadoc工件与Maven Eclipse插件? [英] How to download sources and javadoc artifacts with Maven Eclipse plugin from other repository?
问题描述
我添加到 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,我也检查了选项下载Artifact Sources / Javadoc
在设置中。
当我运行 mvn eclipse:eclipse
,它不显示任何警告。但是没有下载javadoc .jar
文件。
goto Windows->首选项 - > Maven ,然后您可以使用下载源选中该框,也可以下载javadoc 。这应该是诀窍。
I have spring framework dependencies in my Maven project. I want to attach the Javadoc for spring framework dependencies.
I added to pom.xml
following lines
<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>
I have installed m2eclipse and I also checked option Download Artifact Sources/Javadoc
in settings.
When I run mvn eclipse:eclipse
, it doesn't show any warnings. But javadoc .jar
files aren't downloaded.
In Eclipse goto Windows->preferences->Maven and there you check the box with download sources and may be download javadoc as well. That should do the trick.
这篇关于如何从其他存储库下载源和javadoc工件与Maven Eclipse插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!