2
votes

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?

2

2 Answers

2
votes

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

1
votes

Consider using the gwt-maven-plugin and following its documentation. It helped me immensely.

http://mojo.codehaus.org/gwt-maven-plugin/