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

   **[Curtis 
Rueden](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ctrueden)** 
opened 
**[MJAVADOC-794](https://issues.apache.org/jira/browse/MJAVADOC-794?redirect=false)**
 and commented
   
   Due to a bug in the maven-javadoc-plugin, the following warning gets emitted 
when a JPMS-modularized artifact containing taglets is included in the javadoc 
build via a `<tagletArtifact>` tag:
   
   `  [WARNING] Unable to auto-detect Taglet class names from`
   `  '/path/to/jar.jar'. Try to specify them with <taglets/>.`
   
   Running with `mvn -X` shows the underlying cause:
   
   `  NoClassDefFoundError: module-info is not a`
   `  class because access_flag ACC_MODULE is set`
   
   Removing the `module-info.java` from the component avoids the problem.
   
   The following patch fixes the problem as of `{}ded56a90{`}:
   
   `diff --git 
a/src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java 
b/src/main/java/org/apache/maven/plugins/ja>`
   `index 835d6332..6e29eadf 100644`
   `--- a/src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java`
   `+++ b/src/main/java/org/apache/maven/plugins/javadoc/JavadocUtil.java`
   `@@ -904,6 +904,9 @@ public class JavadocUtil {`
   `             for (JarEntry jarEntry = jarStream.getNextJarEntry();`
   `                     jarEntry != null;`
   `                     jarEntry = jarStream.getNextJarEntry()) {`
   `+                if ("module-info.class".equals(jarEntry.getName())) {`
   `+                    continue;`
   `+                `}
   `                 Matcher matcher = pattern.matcher(jarEntry.getName());`
   `                 if (matcher.matches()) {`
   `                     String version = matcher.group("v");`
   
    
   
   
   ---
   
   **Affects:** 3.6.3
   


-- 
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: issues-unsubscr...@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to