maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathias Brökelmann (JIRA) <j...@codehaus.org>
Subject [jira] Updated: (MJAVADOC-72) Aggregating javadocs doesn't work
Date Sun, 20 Aug 2006 08:41:50 GMT
     [ http://jira.codehaus.org/browse/MJAVADOC-72?page=all ]

Mathias Brökelmann updated MJAVADOC-72:
---------------------------------------

    Attachment: MJAVADOC-72.patch

This patch should fix the problem.

The problem was that the compile artifacts of the modules in the reactor where not initialized.

The solution in this patch is now to resolve the artifacts of each reactor project and add
the compile artifacts to the classpath for javadoc generation. I've tested it with a large
project structure (spring-rich) with multiple nested projects and it was working perfectly.

> Aggregating javadocs doesn't work
> ---------------------------------
>
>                 Key: MJAVADOC-72
>                 URL: http://jira.codehaus.org/browse/MJAVADOC-72
>             Project: Maven 2.x Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: WinXP SP2
> cygwin 1.5.19
> maven 2.0.4
> jdk 1.5.0_06
> javadoc-plugin 2.0 final
> latest released plugins
>            Reporter: Bugittaa Pahasti
>         Attachments: MJAVADOC-72.patch
>
>
> When I define <aggregate>true</aggregate> to javadoc plugin configuration
in parent pom, javadoc generation doesn't work from the parent (all other configuration options
are default). If run under individual components, javadoc is generated without problems. It
seems that the child dependencies aren't resolved:
> Embedded error: Exit code: 1 - c:/code/apps/project/common/src/main/java/com/company/AbstractLogEnabled.java:3:
package org.apache.log4j does not exist
> import org.apache.log4j.Logger;
> c:/code/apps/component/common-test/src/main/java/com/company/unittest/AbstractDatasourceEnabledTestCase.java:11:
package org.apache.commons.dbcp does not exist
> import org.apache.commons.dbcp.BasicDataSource;
> And lot more similar errors.
> Additionally, there are a huge number of ClassCastExceptions from javadoc.
> java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl
> 	at com.sun.tools.javadoc.AnnotationDescImpl.annotationType(AnnotationDescImpl.java:46)
> 	at com.sun.tools.doclets.internal.toolkit.util.Util.isDeprecated(Util.java:804)
> 	at com.sun.tools.doclets.formats.html.TagletWriterImpl.deprecatedTagOutput(TagletWriterImpl.java:85)
> 	at com.sun.tools.doclets.internal.toolkit.taglets.DeprecatedTaglet.getTagletOutput(DeprecatedTaglet.java:40)
> 	at com.sun.tools.doclets.formats.html.MethodWriterImpl.writeDeprecated(MethodWriterImpl.java:166)
> 	at com.sun.tools.doclets.internal.toolkit.builders.MethodBuilder.buildDeprecationInfo(MethodBuilder.java:183)
> 	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at com.sun.tools.doclets.internal.toolkit.builders.MethodBuilder.invokeMethod(MethodBuilder.java:109)
> 	at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
> 	at com.sun.tools.doclets.internal.toolkit.builders.AbstractMemberBuilder.build(AbstractMemberBuilder.java:56)
> 	at com.sun.tools.doclets.internal.toolkit.builders.MethodBuilder.buildMethodDoc(MethodBuilder.java:150)
> 	at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at com.sun.tools.doclets.internal.toolkit.builders.MethodBuilder.invokeMethod(MethodBuilder.java:109)
> 	at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
> 	at com.sun.tools.doclets.internal.toolkit.builders.AbstractMemberBuilder.build(AbstractMemberBuilder.java:56)
> 	at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildMethodDetails(ClassBuilder.java:322)
> 	at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.invokeMethod(ClassBuilder.java:101)
> 	at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
> 	at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.buildClassDoc(ClassBuilder.java:124)
> 	at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.invokeMethod(ClassBuilder.java:101)
> 	at com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder.build(AbstractBuilder.java:90)
> 	at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:108)
> 	at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:155)
> 	at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:177)
> 	at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:161)
> 	at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106)
> 	at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)
> 	at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)
> 	at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
> 	at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
> 	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
> 	at com.sun.tools.javadoc.Start.begin(Start.java:128)
> 	at com.sun.tools.javadoc.Main.execute(Main.java:41)
> 	at com.sun.tools.javadoc.Main.main(Main.java:31)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message