I think I ran into something similar the other day. You need to put each of
the arguments in a separate argument element.

<argument>-Dcom.sun.management.jmxremote</argument>
<argument>-Djava.awt.headless=true</argument>
<argument>-Xmx1024m</argument>
etc.

/Anders



On Wed, Dec 5, 2012 at 10:05 PM, Mark Derricutt <m...@talios.com> wrote:

> Hey all,
>
> Seeing some odd behaviour with maven-exec-plugin and JVM arguments that
> seem to be eluding me. I have the following config:
>
> <plugin>
> <groupId>org.codehaus.mojo</**groupId>
> <artifactId>exec-maven-plugin<**/artifactId>
> <version>1.2.1</version>
> <configuration>
> <executable>java</executable>
> <classpathScope>test</**classpathScope>
> <longClasspath>true</**longClasspath>
> <arguments>
> <argument>-Dcom.sun.**management.jmxremote -Djava.awt.headless=true
> -Xmx1024m
>                                     -XX:MaxPermSize=256m -XX:+**
> HeapDumpOnOutOfMemoryError
> </argument>
> <argument>-Xdebug -Xrunjdwp:transport=dt_socket,**
> server=y,suspend=y,address=**5005
> </argument>
>                                 ........
> </configuration>
> <executions>
> <execution>
> <id>integration-tests</id>
> <phase>test</phase>
> <goals>
> <goal>exec</goal>
> </goals>
> </execution>
> </executions>
>
> and yet when I run the plugin, I see all the arguments being passed to the
> command line of the process, but the process never seems to setup the debug
> options, or suspend the server till I connect, or update the permgen.
>
> Looking at the output of ps on my Mac everything looks like it should be
> ok....   am I missing something blindingly obvious?
>
> Cheers
> Mark
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@maven.**apache.org<users-unsubscr...@maven.apache.org>
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to