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

Guillaume Boué commented on MNG-4559:
-------------------------------------

Yes it applies to {{.mvn/jvm.config}} as well; the whole thing is concatenated 
to the existing {{MAVEN_OPTS}} 
[here|https://github.com/apache/maven/blob/maven-3.3.9/apache-maven/src/bin/mvn#L222].
 I didn't go as far as to test it with {{<mavenOpts>}} of the Invoker Plugin 
(there were other issues trying to use Bash in the current {{mvn}} script and 
wasn't sure if it would be an option), but I can try to create a complete 
{{mvn.bash}} and test with that.

> MAVEN_OPTS are incorrectly resolved in Unix
> -------------------------------------------
>
>                 Key: MNG-4559
>                 URL: https://issues.apache.org/jira/browse/MNG-4559
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 2.2.1, 3.0.5
>         Environment: OS: Linux, 2.6.32-11-generic, amd64.
> Java: 1.6.0_17
> Also Operating System = Mac OS X version 10.9.2 running on x86_64
> Java; VM; Vendor = 1.7.0_51
>            Reporter: Maxim Podkolzine
>
> I'm trying to pass a quoted parameter through MAVEN_OPTS, e.g.
> MAVEN_OPTS="-Dfoo='bar baz'"
> As a result the quotes are not resolved, causing Java failure:
> Exception in thread "main" java.lang.NoClassDefFoundError: baz'
> ...
> I couldn't figure out a way to make it work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to