[
http://jira.codehaus.org/browse/MNG-4559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=209537#action_209537
]
Maxim Podkolzine commented on MNG-4559:
---------------------------------------
Unfortunately no, java still thinks that -Dfoo=bar and baz are two different
arguments.
After some time I found a quick hack in 'mvn' script:
exec "$JAVACMD" \
"$MAVEN_OPTS" \
...
(instead of just $MAVEN_OPTS)
The argument is now resolved correctly. But this approach fails in some other
cases, so it's not a complete solution.
Though it can be a clue.
> MAVEN_OPTS are incorrectly resolved in Unix
> -------------------------------------------
>
> Key: MNG-4559
> URL: http://jira.codehaus.org/browse/MNG-4559
> Project: Maven 2 & 3
> Issue Type: Bug
> Affects Versions: 2.2.1
> Environment: OS: Linux, 2.6.32-11-generic, amd64.
> Java: 1.6.0_17
> 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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira