GWT Maven编译器输出目录 [英] GWT maven compiler output directory

查看:97
本文介绍了GWT Maven编译器输出目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用maven插件为GWT编译器设置输出目录位置.

I need to set output directory location for GWT compiler using maven plugin.

我已经研究了GWT编译器和gwt-maven-plugin文档,但没有找到任何选择.

I've investigated the GWT compiler and gwt-maven-plugin docs and did not find any options for this.

例如:

我有两个名为editorconsole的模块,gwt-maven-plugin将它们编译为%ROOT%/editor%ROOT%/console dirs.

I have two modules named editor and console and gwt-maven-plugin compiles them to %ROOT%/editor and %ROOT%/console dirs.

但是我需要将这些模块编译为%ROOT%/ria/editor%ROOT%/ria/console目录,以减少维护基于URL的安全性和其他工作的精力.

But I need to have these modules compiled into %ROOT%/ria/editor and %ROOT%/ria/console dirs to reduce effort to maintain the URL based security and other stuff.

是否可以在插件配置中设置ria目录,以避免不必要的新ANT任务创建,从而将已编译模块的内容移至所需位置?

Is it possible to set ria directory in plugin configuration to avoid unneeded new ANT task creation for moving compiled modules stuff to needed place?

推荐答案

<plugin>
  <artifactId>gwt-maven-plugin</artifactId>
  <configuration>
    <webappDirectory>${project.build.directory}/${project.build.finalName}/ria</webappDirectory>
  </configuration>
</plugin>

请参见 http://mojo.codehaus.org/gwt -maven-plugin/compile-mojo.html#webappDirectory

但是,除非您在-noserver模式下运行(无论如何,对于任何中型/大型项目,我都建议使用它),否则它在DevMode中不能很好地发挥作用

It won't play well with the DevMode though, unless you run in -noserver mode (which I'd recommend anyway for any middle-sized/big project)

这篇关于GWT Maven编译器输出目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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