[Updated] (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

[Updated] (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:all-tabpanel ]

Karl Heinz Marbaise updated MCOMPILER-297:
------------------------------------------
    Description:
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`

  was:
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`


> -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...