[ https://issues.apache.org/jira/browse/MCOMPILER-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16124657#comment-16124657 ]
Karl Heinz Marbaise commented on MCOMPILER-297: ----------------------------------------------- Have you checked to use {{<fork>true</fork>}} ? > -J prefixed compilerArg not added to command line > ------------------------------------------------- > > Key: MCOMPILER-297 > URL: https://issues.apache.org/jira/browse/MCOMPILER-297 > Project: Maven Compiler Plugin > Issue Type: Bug > Affects Versions: 3.6.1 > Environment: java full version "9-ea+169" > Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; > 2017-04-03T21:39:06+02:00) > Maven home: C:\Dev\apache-maven-latest\bin\.. > Java version: 9-ea, vendor: Oracle Corporation > Java home: C:\Program Files\Java\jdk-9 > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows" > Reporter: Anthony Vanelverdinghe > Attachments: reproducer.zip > > > For a pom.xml with the following section in the compiler's configuration: > <compilerArgs> > <arg>--add-modules=java.xml.ws.annotation</arg> > <arg>-J--add-modules=java.xml.ws.annotation</arg> > </compilerArgs> > Maven only adds the first argument to the actual command line. To reproduce, > simply unzip and run `mvn -X compile` -- This message was sent by Atlassian JIRA (v6.4.14#64029)