jira-importer opened a new issue, #1098:
URL: https://github.com/apache/maven-javadoc-plugin/issues/1098

   
**[Joshua](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=jdavis4452)**
 opened 
**[MJAVADOC-713](https://issues.apache.org/jira/browse/MJAVADOC-713?redirect=false)**
 and commented
   
   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.
   
   !image-2022-04-15-17-47-49-771.png!
   
   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.
   
    
   
    
   
   
   ---
   
   **Affects:** 3.3.0
   
   **Attachments:**
   - 
[image-2022-04-15-17-47-49-771.png](https://issues.apache.org/jira/secure/attachment/13042521/image-2022-04-15-17-47-49-771.png)
 (_2.34 kB_)
   - 
[sampleproject.zip](https://issues.apache.org/jira/secure/attachment/13042581/sampleproject.zip)
 (_119.69 kB_)
   
   **Remote Links:**
   - [GitHub Pull Request #246
   ](https://github.com/apache/maven-javadoc-plugin/pull/246)
   
   **Backported to:** 
[3.6.1](https://github.com/apache/maven-javadoc-plugin/milestone/35?closed=1)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to