JsInterop Maven fail

591 views
Skip to first unread message

Adolfo Panizo Touzon

unread,
Nov 21, 2015, 7:00:51 AM11/21/15
to google-we...@googlegroups.com
Hi all,

today when I tried to do a mvn clean install I notice some errors in my build related with JsInterop classes..

So, I created a project from scratch using the Maven Archetype:
mvn archetype:generate \
   -DarchetypeGroupId=org.codehaus.mojo \
   -DarchetypeArtifactId=gwt-maven-plugin \
   -DarchetypeVersion=2.8.0-SNAPSHOT
And I receive the next error (whole stack trace attached): 
 
[ERROR]     Non-resolvable import POM: Failure to find com.google.jsinterop:jsinterop:pom:1.0.0-SNAPSHOT in https://oss.sonatype.org/content/repositories/google-snapshots was cached in the local repository, resolution will not be reattempted until the update interval of snapshots-repo has elapsed or updates are forced @ com.google.gwt:gwt:2.8.0-SNAPSHOT, /Users/foo/.m2/repository/com/google/gwt/gwt/2.8.0-SNAPSHOT/gwt-2.8.0-SNAPSHOT.pom, line 57, column 25 -> [Help 2]

After taking a quick look I realised that inside of the gwt-user.jar the jsinterop folder has been removed in the last snapshot (on the 19th of November it was still there).

So, I think that is some kind of sonatype/maven error updating libraries and should be fixed soon. If not, do you know any workaround?

Thanks for your time,

Adolfo.
JsInteropStackTrace.txt

Evan Ruff

unread,
Nov 21, 2015, 8:37:17 AM11/21/15
to GWT Users
This is happening for me as well. I discovered it pre-coffee and thought I was going crazy. Glad to see someone else is experiencing the same!

E

Thomas Broyer

unread,
Nov 21, 2015, 8:55:27 AM11/21/15
to GWT Users
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.

josef...@gmail.com

unread,
Nov 23, 2015, 3:51:28 AM11/23/15
to GWT Users
I am using GWT snapshots from https://oss.sonatype.org/content/repositories/google-snapshots/

Where can I find a working jsinterop? 

Thomas Broyer

unread,
Nov 23, 2015, 4:12:28 AM11/23/15
to GWT Users

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

josef...@gmail.com

unread,
Nov 23, 2015, 4:35:29 AM11/23/15
to GWT Users
Thank you Thomas, as you probably figured, I thought I had to pin jsinterop :)

Bruno Salmon

unread,
Nov 23, 2015, 8:19:51 AM11/23/15
to GWT Users
I tried with versions 2.8.0-20151119.055507-99 and 2.8.0-20151118.055323-98 but got the same problem about JSInterop.
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). 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?

Thomas Broyer

unread,
Nov 23, 2015, 9:42:43 AM11/23/15
to GWT Users


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

Michael Joyner

unread,
Nov 23, 2015, 10:07:19 AM11/23/15
to google-we...@googlegroups.com
This is a good example as to why tracking daily snapshots can be a bad idea.

Why isn't there an RC1 ... POM ?
--
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-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Evan Ruff

unread,
Nov 23, 2015, 10:08:43 AM11/23/15
to google-we...@googlegroups.com

An RC1 release would be fantastic.

E

You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/Ty78TNg58iA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.

Michael Joyner

unread,
Nov 23, 2015, 10:18:34 AM11/23/15
to google-we...@googlegroups.com

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
--
Message has been deleted

EMan

unread,
Nov 23, 2015, 10:28:08 AM11/23/15
to GWT Users
I can't get it to work either.  I have changed gwt-user to various version, but it still wants to get jsinterop snapshot.

Failed to read artifact descriptor for com.google.gwt:gwt-user:jar:2.8.0-20151118.055323-98: Could not find artifact com.google.jsinterop:jsinterop:pom:1.0.0-SNAPSHOT in google-snapshots (https://oss.sonatype.org/content/repositories/google-snapshots/) -

Not sure what combination I need to get this to work.  RC1 is a great idea.  I don't love working out of snapshot. 

Michael Joyner

unread,
Nov 23, 2015, 10:49:13 AM11/23/15
to google-we...@googlegroups.com

I can't seem to set GWT version to a different version other than snapshot because each module has a different version number based on seconds.

I don't think this would be such an issue if the POM version numbers were truncated to DAY so that all POM version numbers MATCHED.

I've tried setting all each components version# manually, but this is turning into a total fubar for me and my front-end guy.

We can't get anything to compile this morning at all.

-Mike

Michael Joyner

unread,
Nov 23, 2015, 11:02:25 AM11/23/15
to google-we...@googlegroups.com

ok....

Why does top level POM for any particular date for main project GWT only point to "-snapshot" and not its matching dated versions?

I think this is where my problem with not being able to select a non "-snapshot" version is coming from.

-Mike

Filipe Sousa

unread,
Nov 23, 2015, 11:02:50 AM11/23/15
to GWT Users
Here is what I did

$ git fetch https://gwt.googlesource.com/gwt refs/changes/10/14010/4 && git cherry-pick FETCH_HEAD
$ ant clean elemental dist-dev -Dgwt.version=2.8.0-SNAPSHOT
$ ./maven/push-gwt.sh

After that, the complier complains about the missing java classes.

[INFO] --- gwt-maven-plugin:1.0-rc-4:compile (default-compile) @ gwt-demo ---
[INFO] Compiling module pt.ipb.gwt.demo.Demo
[INFO]    Ignored 4 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO]    Resolving com.google.gwt.cell.client.FieldUpdater
[INFO]       Found type 'com.google.gwt.cell.client.FieldUpdater'
[INFO]          [ERROR] Unable to find class java/lang/Object
[INFO]          [ERROR] Unable to find class java/lang/Object
[INFO]          [ERROR] Unable to find class java/lang/Object

Michael Joyner

unread,
Nov 23, 2015, 11:57:58 AM11/23/15
to google-we...@googlegroups.com
ok,

this is not working out

ALL the POM's point to '2.8.0-SNAPSHOT as dependencies. Result: I depend on a module, the module references latest snapshot, latest snapshot references missing jsinterop, compile failure because of dependency failure.

As the POM's are currently written it does not appear possible to "point to a specific version'.

Anyone have a fix yet?


On 11/23/2015 10:48 AM, Michael Joyner wrote:

Michael Joyner

unread,
Nov 23, 2015, 1:05:50 PM11/23/15
to google-we...@googlegroups.com
On 11/21/2015 08:55 AM, 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.
>
Unable to pin a time-stamped version. Every POM refers to '-SNAPSHOT'
for any dependencies all pull in the 1123 POM's as a result.

Jens

unread,
Nov 23, 2015, 1:44:36 PM11/23/15
to GWT Users

Anyone have a fix yet?

Which Gradle version do you use? Gradle didn't support pinning a specific SNAPSHOT build some time ago. Maybe you should upgrade Gradle.


-- J.

Thomas Broyer

unread,
Nov 23, 2015, 1:50:45 PM11/23/15
to GWT Users


On Monday, November 23, 2015 at 5:57:58 PM UTC+1, Michael Joyner wrote:
ok,

this is not working out

ALL the POM's point to '2.8.0-SNAPSHOT as dependencies. Result: I depend on a module, the module references latest snapshot, latest snapshot references missing jsinterop, compile failure because of dependency failure.

As the POM's are currently written it does not appear possible to "point to a specific version'.

Have you tried something along those lines:

configurations.all*.resolutionStrategy {
  force 'com.google.gwt:gwt-user:…'
  force 'com.google.gwt:gwt-dev:…'
}

 
Anyone have a fix yet?

We have a fix for our build (still in review though), but we're currently waiting for Daniel and/or Sonatype to allow us to publish the com.google.jsinterop artifacts.
I just proposed on Gerrit to rollback the change before the next nightly build to fix our snapshots.
 

On 11/23/2015 10:48 AM, Michael Joyner wrote:

I can't seem to set GWT version to a different version other than snapshot because each module has a different version number based on seconds.

I don't think this would be such an issue if the POM version numbers were truncated to DAY so that all POM version numbers MATCHED.

I've tried setting all each components version# manually, but this is turning into a total fubar for me and my front-end guy.

We can't get anything to compile this morning at all.

-Mike



On 11/23/2015 10:28 AM, EMan wrote:
I can't get it to work either.  I have changed gwt-user to various version, but it still wants to get jsinterop snapshot.

Failed to read artifact descriptor for com.google.gwt:gwt-user:jar:2.8.0-20151118.055323-98: Could not find artifact com.google.jsinterop:jsinterop:pom:1.0.0-SNAPSHOT in google-snapshots (https://oss.sonatype.org/content/repositories/google-snapshots/) -

Not sure what combination I need to get this to work.  RC1 is a great idea.  I don't love working out of snapshot. 
--
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+unsub...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.

Michael Joyner

unread,
Nov 23, 2015, 2:02:32 PM11/23/15
to google-we...@googlegroups.com
2.9

Michael Joyner

unread,
Nov 23, 2015, 2:02:32 PM11/23/15
to google-we...@googlegroups.com
Yes
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.

Michael Joyner

unread,
Nov 23, 2015, 2:08:20 PM11/23/15
to Jason Carter, google-we...@googlegroups.com
Ok, I got the following to work:

(linux/mac specific)

[presumes you have ant, maven, jdk, etc, installed]

cd ~/git
mkdir gwt
cd gwt
git clone tools https://github.com/gwtproject/tools.git
git clone https://github.com/gwtproject/gwt.git gwt
cd gwt
ant clean dist-dev -Dgwt.version=2.8.0-SNAPSHOT

[press enter for all defaults]

./maven/push-gwt.sh

[edit build.gradle]

repositories {
jcenter()
maven {
url
"https://oss.sonatype.org/content/repositories/google-snapshots/"
}
mavenLocal()
}

[notes]

It now pulls all from sonatype, except for jsinteropt which it pulls
from local

Thomas Broyer

unread,
Nov 24, 2015, 3:40:40 AM11/24/15
to GWT Users
Good news: we reverted the offending change and Manolo ran the CI build so it should be fixed shortly (if not already). Don't forget to force snapshot updates (mvn -U).

Lyubomyr Shaydariv

unread,
Nov 24, 2015, 7:16:51 AM11/24/15
to GWT Users
Build #310 passes, so it works now. Thank you!

Evan Ruff

unread,
Nov 24, 2015, 11:13:49 AM11/24/15
to google-we...@googlegroups.com
I hate to ask to create more work for you guys, but do you think we could snap an RC1?

This is mainly because I suck at the build tools and need something with training wheels.

Thanks!

E

On Tue, Nov 24, 2015 at 7:02 AM, Lyubomyr Shaydariv <lyubomyr....@gmail.com> wrote:
Build #310 passes, so it works now. Thank you!

--
You received this message because you are subscribed to a topic in the Google Groups "GWT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/Ty78TNg58iA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages