Wednesday, September 14, 2016

Re: GWT Compile Issues: gwt-maven-plugin & gwtjackson

Ok was able to solve it, if anyone else having the same issue, here is the work around.

With Jackson 2.8x String.format was introduced in "JsonIgnoreProperties".

The work around would be to either use 2.7x OR super source "JsonIgnoreProperties" and remove reference to String.format()

Here is the reference to the github issue as well
https://github.com/nmorel/gwt-jackson/issues/94


On Monday, September 12, 2016 at 10:47:27 PM UTC-4, harshyadav wrote:
Can anyone share their thoughts on how to use gwtjackson with the new gwt maven plugin?

I am including the dependency as:

<dependency>
<groupId>com.github.nmorel.gwtjackson</groupId>
<artifactId>gwt-jackson</artifactId>
<version>0.13.1-SNAPSHOT</version>
</dependency>

And then in my *.gwt.xml

<inherits name="com.github.nmorel.gwtjackson.GwtJackson"/>

I also tried to explicitly include the jackson annotations so sources are available and GWT compiler doesn't complain:
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.8.2</version>
<classifier>sources</classifier>
</dependency>

Still no luck.

This used to work seamlessly with the mojos gwt plugin before by including the following dependency:

<dependency>
<groupId>com.github.nmorel.gwtjackson</groupId>
<artifactId>gwt-jackson</artifactId>
<version>0.13.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

Thanks,
Harsh

On Monday, September 12, 2016 at 9:23:45 AM UTC-4, harshyadav wrote:
Yes, thats correct.
The issue is with including jackson annotation sources, which works fine otherwise in gwtjackson.


On Monday, September 12, 2016 at 3:42:54 AM UTC-4, DavidN wrote:
As far as I know GWT does not emulate String.format.

On Sun, 11 Sep 2016 at 22:49, harshyadav <harsh...@gmail.com> wrote:
Hi,

I am trying to migrate to the gwt-maven-plugin (net.ltgt.gwt.maven).

With a few hiccups and reading thru the documentation, I am able to get a modular app up and running.

However, with gwtjackon am not able to include the jackson annotation sources thru maven dependencies.

[INFO]    Tracing compile failure path for type 'com.fasterxml.jackson.annotation.JsonIgnoreProperties'

[INFO]       [ERROR] Errors in 'com/fasterxml/jackson/annotation/JsonIgnoreProperties.java'

[INFO]          [ERROR] Line 374: The method format(String, Set<String>, boolean, boolean, boolean, boolean) is undefined for the type String

[INFO]    Module setup completed in 7807 ms



Any help on this would be great!


Thanks.

--
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