[ERROR] Unable to find 'com/google/gwt/core/Core.gwt.xml' on your classpath

After creating a new Vaadin project using the following command:

mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=7.7.6 -DgroupId=com.noasic -DartifactId=myproject -Dversion=0.1 -Dpackaging=war

… and adding the
TreeGrid
component to it, I get the following build error in Eclipse:

[INFO]
— vaadin-maven-plugin:7.7.6:compile (default) @ myproject —
[INFO]
auto discovered modules [AppWidgetset]

[INFO]
Using com.vaadin:vaadin-client version 7.7.6
[INFO]
Using com.vaadin:vaadin-client-compiler version 7.7.6
[INFO]
Loading inherited module ‘AppWidgetset’
[INFO]
Loading inherited module ‘com.google.gwt.core.Core’
[INFO]
[ERROR]
Unable to find ‘com/google/gwt/core/Core.gwt.xml’ on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

What could be the reason for this?

Hi,

Did you try to rebuild the project using
mvn clean install
after adding the dependency in your pom.xml? If you do the build, does that produce an error?

Does your demo’s gwt.xml contain

I think that should be included automatically on a maven build, but please check.

Adam

Hi Adam,

rebuilding the project using
mvn clean install
has not effect. It gives the same error. Also, I don’t have any
gwt.xml
in my project.

Guy.

I cannot reproduce the issue, can you explain how exactly do you add the TreeGrid component to your project after you created it using the archetype?

If you don’t have your own *.gwt.xml, one will be generated for you under target/generated-resources/gwt/AppWidgetset.gwt.xml. Coud you check if it inherits TreeGrid’s widgetset?