Monday, November 23, 2015

Re: JsInterop Maven fail


I can't get this mess to work with Gradle.

No matter what versions I put in I get messages about jsinterop not being found.

Could someone "fix" the maven snaptop repo to point the "-SNAPSHOT" back to the known working 19th version?

Or perhaps put in a "RC1" POM that references the last known working copy of 19th?

-Mike


On 11/23/2015 09:42 AM, Thomas Broyer wrote:


On Monday, November 23, 2015 at 2:19:51 PM UTC+1, Bruno Salmon wrote:
I tried with versions 2.8.0-20151119.055507-99 and 2.8.0-20151118.055323-98 but got the same problem about JSInterop.

It can't be the same problem, as in those versions the jsinterop annotations hadn't been split out into their own JAR.
 
Earlier versions have no pom file (only pom.asc file) so maven can't load them.

So I tried the other way you suggested and successfully built GWT locally. I finally got jsInterop 1.0.0-SNAPSHOT installed locally using maven/push-gwt.sh (curiously the gwt version was also 1.0.0-SNAPSHOT in the local maven repository instead of 2.8.0-SNAPHOT).

Yes, there's a small bug in the script unfortunately (and then another problem); apply https://gwt-review.googlesource.com/14010 locally (you'll find Git commands copy-paste-ready in the "download" drop down menu on the right)
 
However maven was then able to download the gwt-user 2.8.0-SNAPSHOT dependency without complaining this time about JSInterop (thanks to the local install). But finally the gwt maven plugin ended with an error:

[INFO] --- gwt-maven-plugin:2.8.0-SNAPSHOT:compile (default) @ naga-gwt ---
[WARNING] Could not transfer metadata com.google.gwt:gwt-dev:2.8.0-SNAPSHOT/maven-metadata.xml from/to codehaus-snapshots (http://nexus.codehaus.org/snapshots/): nexus.codehaus.org
[WARNING] Could not transfer metadata com.google.gwt:gwt-user:2.8.0-SNAPSHOT/maven-metadata.xml from/to codehaus-snapshots (http://nexus.codehaus.org/snapshots/): nexus.codehaus.org
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.506s
[INFO] Finished at: Mon Nov 23 13:59:05 CET 2015
[INFO] Final Memory: 10M/27M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.8.0-SNAPSHOT:compile (default) on project naga-gwt: Failed to resolve artifact: 1 problem was encountered while building the effective model for com.google.gwt:gwt-user:2.8.0-SNAPSHOT
[ERROR] [FATAL] Non-resolvable parent POM: Could not find artifact com.google.gwt:gwt:pom:2.8.0-SNAPSHOT in snapshots (https://oss.sonatype.org/content/repositories/snapshots/) @ line 6, column 13
[ERROR] for project com.google.gwt:gwt-user:2.8.0-SNAPSHOT for project com.google.gwt:gwt-user:2.8.0-SNAPSHOT
[ERROR] -> [Help 1]

Any idea?

Did you override the versions in the plugin dependencies too? [1] It shouldn't have even tried downloading those (and you can notice it downloaded the latest, broken snapshots) and/or should have tried downloading com.google.gwt:gwt from google-snapshots.


I'm sorry for the inconvenience but this is all really temporary and a matter of a days before it's resolved (if needed, we'd –temporarily– revert the patch that created the com.google.jsinterop:jsinterop-annotations artifact)

 


Le lundi 23 novembre 2015 10:35:29 UTC+1, josef...@gmail.com a écrit :
Thank you Thomas, as you probably figured, I thought I had to pin jsinterop :)

On Monday, November 23, 2015 at 10:12:28 AM UTC+1, Thomas Broyer wrote:

On Monday, November 23, 2015 at 9:51:28 AM UTC+1, josef...@gmail.com wrote:
I am using GWT snapshots from https://oss.sonatype.org/content/repositories/google-snapshots/

Where can I find a working jsinterop?

Pin an earlier snapshot that works; e.g. <version>2.8.0-20151119.055507-99</version> for gwt-user (this is where the issue is, it should work with the latest snapshot of gwt-dev, but if you want to use the gwt-dev from the same build, then use <version>2.8.0-20151123.054735-102</version> for gwt-dev).
 
On Saturday, November 21, 2015 at 2:55:27 PM UTC+1, Thomas Broyer wrote:
We're having an error deploying the new com.google.jsinterop artifacts: http://build.gwtproject.org/job/gwt/306

Try pinning the previous snapshot (using its time-stamped version) or build GWT locally and deploy it with the maven/push-gwt.sh script.

--
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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment