将GWT项目更改为Maven项目 [英] Change GWT project to Maven Project
问题描述
我遵循 http://code.google.com /webtoolkit/doc/latest/tutorial/gettingstarted.html
来创建示例GWT程序。
现在我想添加Maven支持这个应用程序(我想使用Spring + hibernate支持)。我有m2e插件,根据建议,我把这个项目变成Maven项目使用
鼠标右键 - > Maven->转换到Maven项目
现在当我运行项目时,我有以下问题:
$ p $ 加载模块
com.google.gwt.sample.stockwatcher.StockWatcher
[错误]无法在您的类路径中找到'com / google / gwt / sample / StockWatcher.gwt.xml';可能是拼写错误,或者您可能忘记为源代码包含类路径条目?
[错误] shell在doStartup方法中失败
任何解决方法?有没有其他的方法来整合GWT项目和Maven 3?解决方案
开始新鲜的,你可以使用 GWT maven原型,它完全符合你的要求。
或者,如果您不想深入了解将此示例GWT项目修改为符合Maven的结构的技术细节,我会建议您查找Spring + GWT + Hibernate + Maven骨架实现或在线教程。 这个是google-first
I've followed instructions http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html in order to create sample GWT program.
Now I would like to add Maven support to this app ( I would like to use Spring + hibernate support). I have m2e plugin and according to suggestions I turned this project to be Maven project using
Right mouse button->Maven->Convert to Maven project
now when I run project I have the following problem:
Loading modules
com.google.gwt.sample.stockwatcher.StockWatcher
[ERROR] Unable to find 'com/google/gwt/sample/StockWatcher.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] shell failed in doStartup method
any workaround? is there any other methods to intgrate GWT project and Maven 3?
Starting fresh, you can use the GWT maven archetype that is doing exactly that for you.
Alternatively and if you don't want to get into the technicalities of amending this sample GWT project into a Maven-compliant structure, I would suggest you would look for a Spring+GWT+Hibernate+Maven skeletal implementation or tutorial online. This one comes up google-first
这篇关于将GWT项目更改为Maven项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!