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

javadoc:javadoc fails for a JPMS module

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.1.1
    • None
    • javadoc
    • None

    Description

      sample project is attached, so to reproduce, either unzip it and run mvn javadoc:javadoc or follow following steps:

      • have a simple jar project with a simple class/interface and module-info.java
      • define compiler(3.8.1) and javadoc(3.1.1) plugins
      • set 'release=11' for both
      • on the command line with JDK 11.0.4 run mvn javadoc:javadoc

      => fails with:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:javadoc (default-cli) on project jdocbug: An error has occurred in Javadoc report generation:
      [ERROR] Exit code: 1 - error: module not found: org.jdocbug
      [ERROR]
      [ERROR] Command line was: /Library/Java/JavaVirtualMachines/jdk-11.0.4.jdk/Contents/Home/bin/javadoc @options @packages @argfile
      [ERROR]
      [ERROR] Refer to the generated Javadoc files in '/Users/lukas/NetBeansProjects/jdocbug/target/site/apidocs' dir.
      [ERROR]
      

      Expected behaviour is that javadoc for current project is generated in target/site/apidocs folder.

      looking into options file generated by the plugin:

      • patch-module option looks strange there
      • either source-path is missing or module-source-path points to wrong directory

      Attachments

        1. options
          0.6 kB
          Lukas Jungmann
        2. jdocbug.zip
          2 kB
          Lukas Jungmann

        Activity

          People

            rfscholte Robert Scholte
            lukasj Lukas Jungmann
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: