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

Olivier Lamy commented on MJAVADOC-536:
---------------------------------------

This project has moved from Jira to GitHub Issues. This issue was migrated to 
[apache/maven-javadoc-plugin#818|https://github.com/apache/maven-javadoc-plugin/issues/818].
 

> Wrong option argument (--class-path) if using Java 9 or higher
> --------------------------------------------------------------
>
>                 Key: MJAVADOC-536
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-536
>             Project: Maven Javadoc Plugin (Moved to GitHub Issues)
>          Issue Type: Bug
>          Components: javadoc
>    Affects Versions: 3.0.1
>         Environment: JDK 10.0.1
> Maven 3.3.9 / 3.5.4
> Windows 10
>            Reporter: Christoph Pfeiffer
>            Assignee: Robert Scholte
>            Priority: Blocker
>
> 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:
> {noformat}
> [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
> {noformat}
>  
> 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/|http://example.com]
>  
> With this error I cannot deploy to maven central repo cause I need a javadoc 
> JAR.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to