You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Slawomir Jaranowski (Jira)" <ji...@apache.org> on 2022/11/23 07:11:00 UTC

[jira] [Commented] (MJAVADOC-713) Skipping Javadoc reportset leaves empty Javadoc link in site

    [ https://issues.apache.org/jira/browse/MJAVADOC-713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17637601#comment-17637601 ] 

Slawomir Jaranowski commented on MJAVADOC-713:
----------------------------------------------

I confirm it.

It is not possible to skip report generating in child projects in correct way, JavaDocs are not generate but empty directory and menu item is added.

> Skipping Javadoc reportset leaves empty Javadoc link in site
> ------------------------------------------------------------
>
>                 Key: MJAVADOC-713
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-713
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 3.3.0
>            Reporter: Joshua
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>         Attachments: image-2022-04-15-17-47-49-771.png, sampleproject.zip
>
>
> 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.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)