Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT import cannot be resolved (gwt-maven-plugin).

I'm trying to clean install a GWT project with the gwt-maven-plugin. I'm running into the following issues several times:

Finding entry point classes
[ERROR] Errors in '.../core/impl/MyClass.java'
[ERROR] Line 23: The import org.codehaus.jackson.annotate.JsonIgnore cannot be resolved
[ERROR] Line 24: The import org.hibernate.envers cannot be resolved
[ERROR] Line 27: Audited cannot be resolved to a type
[ERROR] Line 102: JsonIgnore cannot be resolved to a type
[ERROR] Line 129: JsonIgnore cannot be resolved to a type

The problems are only with annotations.
The core project is a project that defines my data model. It is used on both the server and the client (gwt) side. Any way to make it work?

like image 995
rkcpi Avatar asked Oct 27 '25 14:10

rkcpi


1 Answers

Because the classes which are compiler is complaining are unsupported by GWT's JRE emulation. You should use them on the server-side only. See GWT JRE Emulation Reference for more information.

like image 61
Jama A. Avatar answered Oct 29 '25 02:10

Jama A.