Maybe you can try using <systemPorperties> as describe here :
http://mojo.codehaus.org/exec-maven-plugin/usage.html

Exemple :
<project>
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>1.1-beta-2</version>
        <executions>
          <execution>
            <goals>
              <goal>java</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <mainClass>com.example.Main</mainClass>
          <arguments>
            <argument>argument1</argument>
          </arguments>
          <systemProperties>
            <systemProperty>
              <key>myproperty</key>
              <value>myvalue</value>
            </systemProperty>
          </systemProperties>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

-- 
Xebia IT Architects
FR : http://blog.xebia.fr
EN : http://blog.xebia.com

On Mon, Jul 28, 2008 at 12:04 PM, seanoc <[EMAIL PROTECTED]> wrote:

>
> 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]
>
>

Reply via email to