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

Roman Huber edited comment on MJAVADOC-700 at 5/4/22 11:25 AM:
---------------------------------------------------------------

My guess is that either packages (@packages) or source files (@argfile) should 
be provided to the javadoc tool, not both. If a class is included in a package 
and a source file, it is added twice.

See 
[here|https://github.com/apache/maven-javadoc-plugin/blob/40cc602f84dbb0689020b55b24970cdd7147722c/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java#L4762]
 for a possible cause of accidentally adding the files. The path has been 
converted to '/' by MJAVADOC-584. But the comparison here is against '\'.


was (Author: alerosmile):
My guess is that either packages (@packages) or source files (@argfile) should 
be provided to the javadoc tool, not both. If a class is included in a package 
and a source file, it is added twice.

 

See 
[here|https://github.com/apache/maven-javadoc-plugin/blob/40cc602f84dbb0689020b55b24970cdd7147722c/src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java#L4762]
 for a possible cause of accidentally adding the files. The path has been 
converted to '/' by MJAVADOC-584. But the comparison here is against '\'.

> Plugin duplicates classes in Java 8 all-classes  lists
> ------------------------------------------------------
>
>                 Key: MJAVADOC-700
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-700
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>    Affects Versions: 3.3.0, 3.3.1
>            Reporter: Rob Spoor
>            Priority: Major
>
> Versions 3.3.0 and 3.3.1 of the Javadoc Plugin create allclasses-frame.html 
> and allclasses-noframe.html files that duplicate all classes, interfaces, etc.
> To reproduce:
> * Clone https://github.com/robtimus/data-url (a simple and small project that 
> can be used to showcase the issue)
> * Run {{mvn javadoc:javadoc}}, which uses version 3.2.0
> * Check target/site/apidocs/allclasses-frame.html - no duplicates
> * Run {{mvn javadoc:javadoc -Dversion.plugin.javadoc=3.3.0}} to build the 
> same with version 3.3.0
> * Check target/site/apidocs/allclasses-frame.html - all classes are duplicated
> The same issue occurs with {{javadoc:aggregate}}, possibly others as well.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to