Monday, May 15, 2017

Eclipse plugin problem: GWT 2.8.1 with Guava 21

I've migrated my project from GWT 2.7.0 to 2.8.1 and Guava 21.0 and in the first it doesn't want to compile until I added the following dependencies to my pom.xml


<dependency> <groupId>com.google.errorprone</groupId> <artifactId>error_prone_annotations</artifactId> <version>2.0.19</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.google.j2objc</groupId> <artifactId>j2objc-annotations</artifactId> <version>1.1</version> <scope>provided</scope> </dependency>

I can now generate the war from my project and it is working fine
the problem is when I want to run it from eclipse it gives me the following error


Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.           [ERROR] Errors in 'com/google/common/collect/Multimap.java'              [ERROR] Line 23: The import com.google.errorprone.annotations.CompatibleWith cannot be resolved              [ERROR] Line 190: CompatibleWith cannot be resolved to a type              [ERROR] Line 196: CompatibleWith cannot be resolved to a type              [ERROR] Line 203: CompatibleWith cannot be resolved to a type              [ERROR] Line 204: CompatibleWith cannot be resolved to a type              [ERROR] Line 233: CompatibleWith cannot be resolved to a type              [ERROR] Line 234: CompatibleWith cannot be resolved to a type              [ERROR] Line 290: CompatibleWith cannot be resolved to a type           Tracing compile failure path for type 'com.google.common.collect.Multimap'              [ERROR] Errors in 'com/google/common/collect/Multimap.java'                 [ERROR] Line 234: CompatibleWith cannot be resolved to a type                 [ERROR] Line 196: CompatibleWith cannot be resolved to a type                 [ERROR] Line 203: CompatibleWith cannot be resolved to a type                 [ERROR] Line 233: CompatibleWith cannot be resolved to a type                 [ERROR] Line 290: CompatibleWith cannot be resolved to a type                 [ERROR] Line 190: CompatibleWith cannot be resolved to a type                 [ERROR] Line 23: The import com.google.errorprone.annotations.CompatibleWith cannot be resolved                 [ERROR] Line 204: CompatibleWith cannot be resolved to a type           [ERROR] Hint: Your source appears not to live underneath a subpackage called 'client'; no problem, but you'll need to use the <source> directive in your module to make it accessible           [ERROR] Errors in 'com/google/common/collect/Multiset.java'              [ERROR] Line 24: The import com.google.errorprone.annotations.CompatibleWith cannot be resolved              [ERROR] Line 120: CompatibleWith cannot be resolved to a type              [ERROR] Line 159: CompatibleWith cannot be resolved to a type           Tracing compile failure path for type 'com.google.common.collect.Multiset'              [ERROR] Errors in 'com/google/common/collect/Multiset.java'                 [ERROR] Line 24: The import com.google.errorprone.annotations.CompatibleWith cannot be resolved                 [ERROR] Line 120: CompatibleWith cannot be resolved to a type                 [ERROR] Line 159: CompatibleWith cannot be resolved to a type           [ERROR] Hint: Your source appears not to live underneath a subpackage called 'client'; no problem, but you'll need to use the <source> directive in your module to make it accessible

 

I installed the eclipse plugin as described here
https://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/Download.html

So, I'm asking what is the difference between click on GWT compile option and the run option (I think the compile must be the same behavior in both)

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment