Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.7
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
I'm using javadoc-1.7 from CVS and the javadoc:warning tag fails in many of our projects. Here is an example:
maven-javadoc-plugin:report:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package com.cpqd.util.fileconnector...
[javadoc] Loading source files for package com.cpqd.util.fileconnector.conne
ctor...
[javadoc] Loading source files for package XXXX
[javadoc] Constructing Javadoc information...
[javadoc] Copying file C:\Documents and Settings\t_fl01\.maven\cache\maven-javadoc-plugin-1.7-SNAPSHOT\plugin-resources\stylesheet.css to file S:\components\components\fileconnector\target\docs\apidocs\stylesheet.css...
[javadoc] Building tree for all the packages and classes...
[javadoc] Building index for all the packages and classes...
[javadoc] javadoc: warning - getUserName: @return tag has no arguments.
[javadoc] Building index for all classes...
[javadoc] Generating S:\components\components\fileconnector\target\docs\apidocs\help-doc.html...
[javadoc] 1 warning
BUILD FAILED
File...... C:\Documents and Settings\t_fl01\.maven\cache\maven-javadoc-plugin-1.7-SNAPSHOT\plugin.jelly
Element... javadoc:javadocwarnings
Line...... 483
Column.... 11
String index out of range: -1
Total time: 13 seconds
Finished at: Wed Sep 01 17:42:13 BRT 2004
I will see if I can narrow down the issue and realize what's going on.
I guess the javadoc is generating some output in an unexpected format that crashes the parser (i.e, the JavadocWarningsTextToXml.java) - if that's the case, I think it would be safer to ignore such exceptions, at least while this new feature is not stable yet (as we might face some similar issues in the future as the users uses other JDKs or javadoclets to generate the output).
Attachments
Issue Links
| This issue is depended upon by: | ||||
| MPJAVADOC-35 | Add javadoc warning report formatted similar to Checkstyle report |
|
|
|
+1 for me Felipe. The plugin mustn't fail if there's a problem with the warnings report.