我遵循指示http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html 以创建示例GWT程序。将GWT项目更改为Maven项目
现在我想添加Maven支持到这个应用程序(我想使用Spring +休眠支持)。我有M2E插件,并根据建议,我把这个项目是利用
鼠标右键Maven项目按钮 - > Maven->转换为Maven项目
现在,当我跑项目,我有以下问题:
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
任何解决方法?有没有其他的方法来整合GWT项目和Maven 3?
它不工作正确的,我已经在pom.xml中和Java类的错误错过了引用,例如GreatingServiceAsync.java。 –
我明白你在说什么。如果你想集成Spring + GWT + Hibernate + Maven,我会寻找一个骨架的实现或在线教程。这一个来谷歌第一:http://www.javacodegeeks.com/2010/07/gwt-2-spring-3-jpa-2-hibernate-35.html – dimitrisli