[
http://jira.codehaus.org/browse/MJAVADOC-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163987#action_163987
]
Todd Thiessen commented on MJAVADOC-225:
----------------------------------------
You can jar the aggregated javadocs yourself. In your parent POM, declare the
following descriptor file:
<assembly>
<id>aggregated-javadoc</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<includeSubModules>false</includeSubModules>
</moduleSet>
</moduleSets>
<fileSets>
<fileSet>
<directory>target/site/apidocs</directory>
</fileSet>
</fileSets>
</assembly>
I saved this in src/assemble/assembleAggregatedJavadoc.xml
Then add the assembly plugin to your POM with this configuration:
<plugin>
<inherited>false</inherited>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-3</version>
<executions>
<execution>
<id>jar-aggregated-javadoc</id>
<phase>package</phase>
<configuration>
<descriptors>
<descriptor>src/assemble/assembleAggregatedJavadoc.xml</descriptor>
</descriptors>
</configuration>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
> The plugin should be able to generate a jar of the aggregated javadoc
> ---------------------------------------------------------------------
>
> Key: MJAVADOC-225
> URL: http://jira.codehaus.org/browse/MJAVADOC-225
> Project: Maven 2.x Javadoc Plugin
> Issue Type: Improvement
> Affects Versions: 2.5
> Environment: Windows
> Reporter: Todd Thiessen
> Priority: Minor
>
> The javadoc:jar goal does not jar the aggregated java in a multi-module
> project. It would be really nice if it did.
--
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