我正在尝试使用mvn gwt:run
启动的以托管模式运行的GWT应用程序上设置系统属性。该物业没有设置,通过外观的东西。在我pom.xml
插件配置为: -gwt-maven-plugin:如何在pom.xml中为gwt:run目标设置系统属性?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.2.0</version>
<executions>
<execution>
<configuration>
<module>com.foo</module>
</configuration>
<goals>
<goal>compile</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<runTarget>index.html</runTarget>
<hostedWebapp>${webappDirectory}</hostedWebapp>
<systemProperties>
<property>
<name>configDir</name>
<value>${basedir}/local/staging</value>
</property>
</systemProperties>
</configuration>
</plugin>
这并没有对运行目标而努力,但插件g'extraJvmArgs'元素作为'plugin'的子元素(而不是''execution')确实有效。任何想法为什么? – 2011-04-30 07:31:57
我不知道为什么。很高兴你让它工作。 – 2011-05-02 18:14:29