You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Fol De Rol (JIRA)" <ji...@codehaus.org> on 2008/05/30 10:10:21 UTC
[jira] Commented: (MJAVADOC-179) Aggregate report ignores
sourcepath customization of subprojects
[ http://jira.codehaus.org/browse/MJAVADOC-179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=136773#action_136773 ]
Fol De Rol commented on MJAVADOC-179:
-------------------------------------
A test case:
fragment of the parent POM:
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.4</version>
<configuration>
<aggregate>true</aggregate>
</configuration>
</plugin>
</plugins>
</reporting>
fragment of the sub-module POM:
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.4</version>
<configuration>
<sourcepath>${basedir}/src/main/java;${basedir}/target/hibernate3/generated-sources</sourcepath>
</configuration>
</plugin>
</plugins>
</reporting>
not any class from target/hibernate3/generated-sources is aggregated into the complete javadoc.
> Aggregate report ignores sourcepath customization of subprojects
> ----------------------------------------------------------------
>
> Key: MJAVADOC-179
> URL: http://jira.codehaus.org/browse/MJAVADOC-179
> Project: Maven 2.x Javadoc Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: Maven 2.0.8, Java 1.5, Windows
> Reporter: Fol De Rol
>
> When using aggregate javadoc reporting with one of subproject being customized to include java sources from alternative directories, only original source directories are passed to javadoc executable.
> For instance, I use POJO's generated by Hibernate3 from HBM files which are documented. The generated files are placed into ${basedir}/target/hibernate3/generated-sources/ directory. My subproject's POM contains the following definition:
> {code:xml}<reporting>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-javadoc-plugin</artifactId>
> <version>2.2</version>
> <configuration>
> <sourcepath>$\{basedir\}/src/main/java;$\{basedir]}/target/hibernate3/generated-sources</sourcepath>
> </configuration>
> </plugin>
> </plugins>
> </reporting>{code}
> and it works correctly if running {{mvn site}} on subproject level. If run from the parent project, as I traced, the custom directory does not passed to the javadoc tool.
--
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