我正在使用Maven多模块项目,但我无法为某些依赖项下载javadoc。我将描述我失败的尝试:
Right click in Dependencies -> Download Javadocs
,一些javadoc被下载,但其他一些没有。mvn eclipse:eclipse
,但结果是一样的(一些javadocs仍然缺失)。我还看到mvn eclipse
插件已被弃用mvn dependency:resolve -Dclassifier=javadoc
,但结果是相同的我在maven-javadoc-plugin
中配置了pom.xml
,但没有任何反应。配置如下:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
我不想使用this option因为意味着手动下载。第三个选项给了我以下输出:
[INFO] The following files have NOT been resolved:
[INFO] dom4j:dom4j:jar:javadoc:1.6.1:test
[INFO] org.jboss:jandex:jar:javadoc:1.1.0.Final:test
[INFO] org.hibernate:hibernate-entitymanager:jar:javadoc:4.3.1.Final:test
[INFO] org.hibernate:hibernate-validator:jar:javadoc:5.2.4.Final:provided
[INFO] xml-apis:xml-apis:jar:javadoc:1.0.b2:test
[INFO] org.hibernate.common:hibernate-commons-annotations:jar:javadoc:4.0.4.Final:test
[INFO] org.hibernate:hibernate-core:jar:javadoc:4.3.1.Final:test
[INFO] antlr:antlr:jar:javadoc:2.7.7:test
[INFO] javax.activation:activation:jar:javadoc:1.1:provided
如果有人告诉我除了手动安装工件之外没有别的选择,也会感激任何帮助。
提前致谢。