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

Wrong option argument (--class-path) if using Java 9 or higher

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Invalid
    • 3.0.1
    • None
    • javadoc
    • None
    • JDK 10.0.1
      Maven 3.3.9 / 3.5.4
      Windows 10
    • Important

    Description

      If I build a project with Java 9 or higher (setup in compiler plugin) the javadoc plugin creates a wrong option argument named --class-path instead of -classpath. I found no work arounds for this.

       

      I get this error message:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar (generate-javadoc) on project jremote-api: MavenReportException: Error while generating Javadoc: 
      [ERROR] Exit code: 1 - javadoc: error - invalid flag: --class-path
      [ERROR] 
      [ERROR] Command line was: "C:\Program Files\Java\jdk1.8.0_72\bin\javadoc.exe" @options @packages @argfile
      [ERROR] 
      [ERROR] Refer to the generated Javadoc files in 'C:\Workspace\Java\Frameworks\jremote\api\target\apidocs' dir.
      [ERROR] 
      [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
      [ERROR] 
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR]   mvn <goals> -rf :jremote-api
      

       

      Please see this github project and remove the skip tag in root pom in javadoc plugin section to see this error: https://github.com/KleinerHacker/jremote/

       

      With this error I cannot deploy to maven central repo cause I need a javadoc JAR.

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            KleinerHacker Christoph Pfeiffer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: