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'要素は(' execution'ではなく) 'plugin'の子として動作します。なぜどんなアイデア? –
なぜ私は分かりません。あなたがそれを働かせてうれしい。 –