|
As well as the problems with the acutal javadoc, the error causing the "maven site" to bomb seems to be:
java.util.MissingResourceException: Can't find resource for bundle com.sun.tools .doclets.formats.html.resources.standard, key doclet.malformed_html_link_tag which looks to me like javadoc itself failing to find one of its built-in resource .properties files. The messages output by javadoc seem to all be warnings, so I think if the resource key "doclet.malformed_html_link_tag " could be resolved then the javadoc problems themselves wouldn't be fatal. That's what I meant by it looking like the problem looking like it has something to do with maven plug-in configuration. Hence the fix might best be seen as having two stages: 1) stop "maven site" from bombing in the presence of javadoc problems 2) fix all the javadoc to resolve any existing problems. Hmmmmm...
I think you are right, and that we should fill a Maven JIRA for this problem. Turns out this isn't a Maven problem but a problem in javadoc itself: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5082928
The problem is caused because any "<a" in a javadoc comment which isn't a "<a href="...">...</a> stuffs up javadoc completely, due to a missing resource key, which hasn't been fixed despite being known for years. The problems are strings like: * ... * ... <alpha> ::= ... in org.apache.directory.shared.ldap.util.DNUtils. which need to be replaced by "<alpha> ...". I used the regex "\*.*<[aA][a-zA-Z0-9]" to find problematic strings in shared/ldap but needs to be done over whole project (and as I have local mods I'll need to work off a clean 1.1 build in order to submit a patch). Norval, I think you are right, but it would be very kind of maven not to stop generating the javacdoc for the following files as soon as javadoc program is not happy with one file :)
Here are patches for 1.0 and 1.1 trunk that resolve the javadoc dying issue
Norval Hope made changes - 01/Nov/06 06:27 AM
Thanks for the patches !
I have applied it on 1.0-trunks, and I also fixed all the shared/** javadoc warning. There is a _lot_ of work to do in order to have a correct javadoc ... Fixed, applying Norval patch and fixing waring on trunks.
Emmanuel Lecharny made changes - 01/Nov/06 10:06 PM
Norval Hope made changes - 03/Dec/08 11:14 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
We should try to do a full pass on this issue, and raise it to bug (and not improvment or task), because as ADS is embedable, we must have a working javadoc.
Btw, we badly need to reference library javadoc, thus downloading sources. Working with the library binary jars is not enough.
Somebody want to spend some time fixing this problem ?