How to generate symbol map in gwt using maven?

2019-08-03 13:14发布

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条回答
看我几分像从前
2楼-- · 2019-08-03 13:26

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>
查看更多
登录 后发表回答