GWT Maven - 在开发模式下运行时,webapp文件被删除 [英] GWT Maven - webapp files getting deleted when running in dev mode

查看:189
本文介绍了GWT Maven - 在开发模式下运行时,webapp文件被删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如gwt maven mojo插件文档中所指定的,我已经在eclipse-> project properties-> Google-> Web应用程序中选择了src / main / webapp文件夹作为我的war目录。然后,当我试图从eclipse运行我的gwt项目在开发模式时,webapp文件夹中的html文件被删除。经过一番调查,我能够通过将运行配置中的-war值修改为项目的目标文件夹来解决这个问题。但是我现在面临的问题是,在开发模式下运行项目后,每次都要手动将html文件复制到目标目录,以便开发人员模式工作。任何人都可以帮助我找出我在这里失踪的事情。如何将webapp文件夹设置为war目录,并阻止文件被删除?请帮助。

As specified in the gwt maven mojo plugin documentation, I have selected src/main/webapp folder as my war directory in eclipse->project properties->Google->Web application. Then, when I tried to run my gwt project in dev mode from eclipse, the html files in webapp folder was getting deleted. After some investigation, I was able to fix this by modifiying -war value in run configuration to the target folder of the project. But the problem I am facing now is that, after running the project in dev mode, I have to manually copy the html files to the target directory each time for the dev mode to work. Can anyone please help me to identify what I am missing here. How can I set the webapp folder as war directory and prevent the files from getting deleted? Please help.

推荐答案

正确的方法来配置Eclipse的Eclipse插件(使用M2Eclipse)并运行DevMode在常见问题解答: http:// web。 archive.org/web/20130619170526/https://developers.google.com/eclipse/docs/faq#gwt_with_maven

The correct way to configure the Google Plugin for Eclipse (using M2Eclipse) and run DevMode is explained in the FAQ: http://web.archive.org/web/20130619170526/https://developers.google.com/eclipse/docs/faq#gwt_with_maven

这篇关于GWT Maven - 在开发模式下运行时,webapp文件被删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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