I want to generate symbol map file in gwt using maven commandline option? I tried with -extra WEB-INF/classses but its not working.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Basically you want to specify maven plugin configuration values/options.
Here you have the general approach: LINKE
Besides that you have to know the plugin prefix that you can find on the GWT plugin page (there are several GWT maven plugins)
EDIT: added a gwt plugin example: Just define the ${} snippets in your gwt property section and you will be fine.
<!-- The GWT compiler configuration
References:
Plugin: http://mojo.codehaus.org/gwt-maven-plugin
Optimizing the build: http://www.sencha.com/blog/using-the-gwt-compiler-for-better-builds
System properties: https://code.google.com/p/google-web-toolkit/wiki/JavaSystemPropertiesAndGwt
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<id>bla</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<module>com.bla.BlaProd</module>
<mode>htmlunit</mode>
<draftCompile>false</draftCompile>
<disableClassMetadata>true</disableClassMetadata>
<compileReport>true</compileReport>
<warSourceDirectory>${gwt.war}</warSourceDirectory>
<webappDirectory>${gwt.output.bla}</webappDirectory>
<gen>${gwt.output.bla}/${gwt.gen}</gen>
<extra>${gwt.output.bla}/${gwt.extra}</extra>
<fragmentCount>8</fragmentCount>
<extraJvmArgs>-Xms1G -Xmx1G -Xss1024k -XX:MaxPermSize=1024m -Dgwt.persistentunitcache=false</extraJvmArgs>
<localWorkers>4</localWorkers>
</configuration>
</execution>
</executions>
</plugin>