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

module-info.java error: too many module declarations found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 2.10.4
    • None
    • javadoc
    • None

    Description

      While attempting to release SLF4J 1.8.0-alpha0, the "mvn site:site" command failed with the following error.

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-cli) on project slf4j-parent: Error during page generation
      : Error rendering Maven report:
      [ERROR] Exit code: 1 - C:\home\ceki\slf4j\slf4j-simple\src\main\java\module-info.java:1: error: too many module declarations found
      [ERROR] module org.slf4j.simple {
      [ERROR] ^
      [ERROR] C:\home\ceki\slf4j\slf4j-nop\src\main\java\module-info.java:1: error: too many module declarations found
      [ERROR] module org.slf4j.nop {
      [ERROR] ^
      [ERROR] C:\home\ceki\slf4j\slf4j-jdk14\src\main\java\module-info.java:1: error: too many module declarations found
      [ERROR] module org.slf4j.jul {
      [ERROR] ^
      [ERROR] C:\home\ceki\slf4j\jcl-over-slf4j\src\main\java\module-info.java:1: error: too many module declarations found
      [ERROR] module org.slf4j.jcl_over_slf4j {
      [ERROR] ^
      [ERROR] C:\home\ceki\slf4j\log4j-over-slf4j\src\main\java\module-info.java:1: error: too many module declarations found
      [ERROR] module org.slf4j.log4j_over_slf4j {
      [ERROR] ^
      [ERROR]
      [ERROR] Command line was: C:\java\jdk-9EA162\bin\javadoc.exe @options @packages @argfile
      [ERROR]
      [ERROR] Refer to the generated Javadoc files in 'C:\home\ceki\slf4j\target\site\apidocs' dir.
      [ERROR] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

      Attachments

        1. output.txt
          623 kB
          Ceki Gülcü

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              ceki@qos.ch Ceki Gülcü
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: