other than using MAVEN_OPTS.
I'm looking to pass a configuration file, for example
-Dcxf.config.file=${basedir}/CherryServer.cxf
I've tried below but this doesn't work..
<profile>
<id>server</id>
<build>
<defaultGoal>test</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>-Dcxf.config.file=${basedir}/CherryServer.cxf</argument>
<argument>demo.hw_https.server.Server</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
--
View this message in context:
http://www.nabble.com/Is-there-any-way-to-pass-JVM-arguments-to-a-process-other-than-MAVEN_OPTS-tp18687327p18687327.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]