[
https://issues.apache.org/jira/browse/MNG-4559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276253#comment-17276253
]
Benjamin Marwell commented on MNG-4559:
---------------------------------------
eval is necessary. Eg look at this IBM code, they also need to support ksh
(which is a posix shell used by AIX as a default):
[https://github.com/OpenLiberty/open-liberty/blob/bd54569d3322c4321a7dda4fcf94d65f85bf13bf/dev/com.ibm.ws.kernel.boot.ws-server/publish/bin/server#L695-L716]
Follow the eval methods and how they define them.
(hint: EPLv1).
(hint 2: they support spaces and comments)
> MAVEN_OPTS are incorrectly resolved in Unix
> -------------------------------------------
>
> Key: MNG-4559
> URL: https://issues.apache.org/jira/browse/MNG-4559
> Project: Maven
> Issue Type: Bug
> Components: Command Line
> 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
> Priority: Major
>
> 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
(v8.3.4#803005)