GWT maven compiler output directory

旧时模样 提交于 2019-12-04 13:45:50

问题


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

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

For example:

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

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.

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?


回答1:


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

See http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html#webappDirectory

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)




回答2:


I had to un-check the checkbox highlighted in the below screenshot



来源:https://stackoverflow.com/questions/12354673/gwt-maven-compiler-output-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!