GWT developer does not work with Maven-GWT project

I just started a GWT project with the environment:

  • Eclipse helios
  • google plugin for eclipse 3.6
  • Maven2 plugin for eclipse
  • Gwt Developer for eclipse 3.6

The project is created by gwt-maven-plugin. The project can work in dev mode. But GWT Designer does not work for the client GUI class. I removed the Maven dependencies for GWT and directly imported the Eclipse GWT SDK, GWT Designer starts working for the client GUI class. But it still does not work for the UiBuilder template file.

Error message: The UIBinder template must be in the client package.

You are trying to use UiBinder for / hsp -web / src / main / java / com / hs / hspweb / client / ui / UserListViewImpl.ui.xml, however it is not in the GWT client package.

+6
eclipse maven gwt gwt-designer
source share
2 answers

Go to the "Java build path" in the project properties, click "YourProjectName / src / main / resources" β†’ "Excluded: **" and click the "Delete" button. It should change to β€œExcluded: (No).” Then you can open the GWT constructor.

+11
source share

I found a solution here. http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html

The limitation of this plugin is that it will only search for gwt modules and host pages in the first source classpath folder. Using Maven / Eclipse integration like m2eclipse, this will be your source directory (src / main / java). You will have to move the gwt.xml files in this folder, not the standard Maven resources directory. See Google Eclipse Plugin Error # 1597 .

+3
source share

All Articles