You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Milos Kleint (JIRA)" <ji...@codehaus.org> on 2014/03/13 08:32:00 UTC

[jira] (MNG-4559) MAVEN_OPTS are incorrectly resolved in Unix

     [ https://jira.codehaus.org/browse/MNG-4559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Milos Kleint reopened MNG-4559:
-------------------------------


It appears to be still relevant in 3.0.5 at least. Please refer to this netbeans issue: https://netbeans.org/bugzilla/show_bug.cgi?id=242638

Steps to reproduce:
1. create a simple war project.
2. Download jrebel from http://zeroturnaround.com/software/jrebel/download/ and install it into a path with space
3. set MAVEN_OPTS environment variable to point the jrebel.jar.. eg.
MAVEN_OPTS=-javaagent:/Users/mkleint/space in path/jrebel/jrebel.jar
How to quote the value is open question here.
4. run mvn jetty:run and see in the output if the java agent got properly integrated.

> MAVEN_OPTS are incorrectly resolved in Unix
> -------------------------------------------
>
>                 Key: MNG-4559
>                 URL: https://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
>             Fix For: Issues to be reviewed for 3.x
>
>
> 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.1.6#6162)