Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 2.3
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Maven 2.0.8, Java 1.5, Windows
-
Testcase included:yes
-
Number of attachments :
Description
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:
<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>
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.
Issue Links
| This issue relates to: | ||||
| MJAVADOC-181 | Javadoc report not generated for multi-module project if run from parent level. |
|
|
|
| This issue is related to: | ||||
| MJAVADOC-168 | Regression: 2.4-SNAPSHOT does not generate docs for generates sources if run outside a build |
|
|
|
I cant reproduce it with 2.4 and 2.5-SNAPSHOT. So, try with these versions and feel free to reopen it if the pb is still there (Think to including a test case...)
Thanks.