Maven 2.x Javadoc Plugin

destDir not used when generating a site

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

When I run 'mvn site' I want to generate javadocs for my library. Since I have multiple versions of my library, I also want to keep old javadocs, for previous versions of my library, available on the site.
For this I use the destDir configuration parameter, which I set to ${project.build.directory}/site/apidocs-${project.version}. That way the javadocs indeed get generated under, for example, apidocs-1.3-SNAPSHOT, but the generated site still points to the empty apidocs directory.

Issue Links

Activity

Hide
Shinobu Kawai added a comment -

The patch for MJAVADOC-81 will expose outputName, which will override the link to the javadocs. Then, you can set it to "apidocs-${project.version}/index", and the link should be fixed.

Show
Shinobu Kawai added a comment - The patch for MJAVADOC-81 will expose outputName, which will override the link to the javadocs. Then, you can set it to "apidocs-${project.version}/index", and the link should be fixed.
Hide
Vincent Siveton added a comment -

Fixed due MJAVADOC-81.
For more information, refer to alternate-doclet page.

Show
Vincent Siveton added a comment - Fixed due MJAVADOC-81. For more information, refer to alternate-doclet page.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: