如何使用Maven在gwt中生成符号映射? [英] How to generate symbol map in gwt using maven?

查看:123
本文介绍了如何使用Maven在gwt中生成符号映射?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用maven命令行选项在gwt中生成符号映射文件?我尝试使用-extra WEB-INF / classses,但它不起作用。

解决方案

基本上你想指定maven插件配置值/选项。

这里有一般的方法:
编辑:添加一个gwt插件示例:
只需在gwt属性部分中定义$ {}代码片段就可以了。

p>

 <! -  GWT编译器配置
引用:
插件:http://mojo.codehaus .org / gwt-maven-plugin
优化构建:http://www.sencha.com/blog/using-the-gwt-compiler-for-better-builds
系统属性:https: //code.google.com/p/google-web-toolkit/wiki/JavaSystemPropertiesAndGwt
- >
< plugin>
< groupId> org.codehaus.mojo< / groupId>
< artifactId> gwt-maven-plugin< / artifactId>
<执行次数>
<执行>
<阶段>编译< /阶段>
< id> bla< / id>
<目标>
< goal>编译< / goal>
< /目标>
<配置>
< 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>
< /执行>
< /执行次数>
< / plugin>


I want to generate symbol map file in gwt using maven commandline option? I tried with -extra WEB-INF/classses but its not working.

解决方案

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>

这篇关于如何使用Maven在gwt中生成符号映射?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆