[Comment Edited] (MCOMPILER-297) -J prefixed compilerArg not added to command line

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Comment Edited] (MCOMPILER-297) -J prefixed compilerArg not added to command line

JIRA jira@apache.org

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

Karl Heinz Marbaise edited comment on MCOMPILER-297 at 8/12/17 6:53 PM:
------------------------------------------------------------------------

So after taken a more deep look into that a question is coming up. Why would you like to configure a runtime option for JavaC via {{-J..}} option? For which runtime? Maybe I misunderstand a thing here...
Supplemental: {{-J..}} [options are not allowed|http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html#commandlineargfile] to be put into the {{@options}} file.


was (Author: khmarbaise):
So after taken a more deep look into that a question is coming up. Why would you like to configure a runtime option for JavaC via {{-J..}} option? For which runtime? Maybe I misunderstand a thing here...

> -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:
> {code:xml}
> <compilerArgs>
>     <arg>--add-modules=java.xml.ws.annotation</arg>
>     <arg>-J--add-modules=java.xml.ws.annotation</arg>
> </compilerArgs>
> {code}
> 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)
Loading...