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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With