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

Skipping Javadoc reportset leaves empty Javadoc link in site

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.6.1, 3.6.2
    • None

    Description

      I am trying to skip a reportset that is inherited from a parent pom

      This is what the report plugin looks like in the parent pom

                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-javadoc-plugin</artifactId>
                      <reportSets>
                          <reportSet>
                              <id>javadoc-no-fork</id>
                              <reports>
                                  <report>javadoc-no-fork</report>
                              </reports>
                          </reportSet>
                          <reportSet>
                              <id>test-javadoc-no-fork</id>
                              <reports>
                                  <report>test-javadoc-no-fork</report>
                              </reports>
                              <configuration>
                                  <show>package</show>
                              </configuration>
                          </reportSet>
                      </reportSets>
                  </plugin>

      I don't want the test-javadoc-no-fork report in my project

       

      If I do this in my pom

      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-javadoc-plugin</artifactId>
          <reportSets>
                   <reportSet>
                           <id>test-javadoc-no-fork</id>
                            <configuration>
                                 <skip>true</skip>
                            </configuration>
                   </reportSet>
          </reportSets>

      </plugin>

       

      It will skip the Javadoc generation but still adds a link to site and when you click on the link you get a 404 since the test Javadoc wasn't inherited.

      I logged this as a defect because I would think skip would prevent the Javadoc generation and NOT add a link to the site for a report set that wasn't generated.

       

       

      Attachments

        1. sampleproject.zip
          120 kB
          Joshua
        2. image-2022-04-15-17-47-49-771.png
          2 kB
          Joshua

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              jdavis4452 Joshua
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: