Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-95

Confusing <reportOutputDirectory> and <outputDirectory> configuration options

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.3
    • None
    • None

    Description

      There are two confoguration options, which are a bit confusing:

      • <reportOutputDirectory> used by mvn javadoc:javadoc
      • <outputDirectory> used by mvn javadoc:jar
        Can they get an equal meaning and usage? Please, concider the multiproject configuration example below. The aim is to generate javadoc HTML and jar as follows:
       
      my-project
       +- docs
           +- javadoc
           |   +- my-lib-1.0
           |   |   +- index.html
           |   |   ...
           |   +- my-lib-api-1.0
           |   |   +- index.html
           |   |   ...
           |   +- my-lib-1.0-javadoc.jar
           |   +- my-lib-api-1.0-javadoc.jar
      ... 
      my-lib
       +- src
       |   +- java
       +- target
       |
      ...
      my-lib-api
       +- src
       |   +- java
       +- target
       |
      ...
      

      I am using the following configuration in my-project/pom.xml:

      <build>
        <plugins>
          <plugin>
            <inherited>true</inherited>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <configuration>
              <!-- Confusing: -->
              <reportOutputDirectory>../my-project/docs/javadoc/${project.artifactId}-${project.version}</reportOutputDirectory>
              <outputDirectory>../my-project/docs/javadoc/${project.artifactId}-${project.version}</outputDirectory>
              <jarOutputDirectory>../my-project/docs/javadoc</jarOutputDirectory>
              <source>1.5</source>
              <notimestamp>true</notimestamp>
              <linksourcetab>4</linksourcetab>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <modules>
        <module>../my-lib</module>
        <module>../my-lib-api</module>
      </modules>
      

      Attachments

        Activity

          People

            siveton Siveton Vincent
            dma_k Dmitry Katsubo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: