Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
When used in the reporting section of the pom and 'mvn site', output always goes to target/apidocs, even if you specify an outputDir.
Having outputDir work correctly would by useful with alternate doclets, for example sending the output of the UMLGraph doclet to target/uml so that it can be further transformed.
This seems to be the code that's doing it:
if ( !javadocDirectory.getAbsolutePath().equals( getOutputDirectory() ) )
Sorry. No idea where I got 'outputDir'. The title is correct, I'm specifying 'destDir' :
<configuration>
...
<destDir>target/uml</destDir>
</configuration>
and it is ignored when used within the <reporting> section. It works fine in the normal <build><plugins><plugin>... section.
There is a complete example of my configuration in the patch for
MJAVADOC-46.MJAVADOC-46.