部署工件时,我从Maven javadoc插件中得到了这个奇怪的错误
C:\Users\oomsa\dev\eclipse\chemspot\src\main\java\org\u_compare\shared\label\penn\function\text\TTL_Type.java:60: warning - @generated is an unknown tag.
C:\Users\oomsa\dev\eclipse\chemspot\src\main\java\org\u_compare\shared\label\penn\function\text\TTL_Type.java:24: warning - @generated is an unknown tag.
javadoc: error - Exception processing overview.
javadoc: error - java.lang.IllegalArgumentException: Comparison method violates its general contract!
Command line was: "C:\Program Files\Java\jdk1.7.0_65\jre\..\bin\javadoc.exe" @options @argfile
Refer to the generated Javadoc files in 'C:\Users\oomsa\dev\eclipse\chemspot\target\apidocs' dir.
at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeJavadocCommandLine(AbstractJavadocMojo.java:5043)
at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:1990)
at org.apache.maven.plugin.javadoc.JavadocJar.execute(JavadocJar.java:181)
... 21 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
它只针对特定项目而不是其他项目。什么可能出错?
答案 0 :(得分:0)
看起来你是从基础源生成javadoc,而不是那些在其中生成某种生成代码存根的javadoc。
在失败之前,您有@generated
标记未知的错误。我打赌你缺少一些重要的信息(比如一些,如果不是所有的源代码)来编译你的javadoc因为源代码丢失了。
您是否打开了相关文件并查看了它们?这是一个很好的起点。