Build failing on 2.8.0-SNAPSHOT

1,030 views
Skip to first unread message

Ali Akhtar

unread,
Jul 27, 2015, 11:25:42 AM7/27/15
to GWT Contributors
Since a few days ago, my maven build with 2.8.0-SNAPSHOT dependency has been failing, with the following error:

 [ERROR] Errors in 'jar:file:/home/ali/.m2/repository/com/google/gwt/gwt-user/2.7.0/gwt-user-2.7.0.jar!/com/google/gwt/emul/java/util/InternalJsHashCodeMap.java'
[INFO]          [ERROR] Line 120: The method elementAdded() is undefined for the type AbstractHashMap<K,V>
[INFO]          [ERROR] Line 137: The method elementRemoved() is undefined for the type AbstractHashMap<K,V>

Assuming that the gwt-maven-plugin is pulling in 2.7.0, I added gwt-user-2.8.0-SNAPSHOT and gwt-dev-2.8.0-SNAPSHOT as deps to the plugin:  https://gist.github.com/aliakhtar/1f1b51d04a3465d27bb4

However, the build is still failing, this time with the following error:

[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0:compile (default) on project app: 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 @ 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

Has anything happened recently which may have caused it to break?


I'd appreciate any help getting this to build again, thanks.

Thomas Broyer

unread,
Jul 27, 2015, 12:01:23 PM7/27/15
to GWT Contributors, ali.r...@gmail.com, ali.r...@gmail.com
Yes, Map emulation now uses JS Map when available.
 

I'd appreciate any help getting this to build again, thanks.

gwt-maven-plugin version should match the version of GWT; so you should use 2.8.0-SNAPSHOT, even though 2.7.0 should work with redefined deps on GWT, but note that you've forgotten gwt-codeserver: https://gwt-maven-plugin.github.io/gwt-maven-plugin/user-guide/using-different-gwt-sdk-version.html
Your issue with GWT deps in plugin deps is probably because you haven't declared the snapshot repo as a <pluginRepository>.
 

Ali Akhtar

unread,
Jul 27, 2015, 3:59:04 PM7/27/15
to GWT Contributors, t.br...@gmail.com
Hi Thomas,

I've upgraded the plugin and added the codeserver dep, however its failing to find the 2.8.0-SNAPSHOT plugin:

[ERROR] Plugin org.codehaus.mojo:gwt-maven-plugin:2.8.0-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:gwt-maven-plugin:jar:2.8.0-SNAPSHOT: Could not find artifact org.codehaus.mojo:gwt-maven-plugin:pom:2.8.0-SNAPSHOT in gwt-snapshot-plugin-repo (https://oss.sonatype.org/content/repositories/google-snapshots/) -> [Help 1]


Any ideas?

Ali Akhtar

unread,
Jul 27, 2015, 4:08:53 PM7/27/15
to GWT Contributors, ali.r...@gmail.com
Changing the plugin version back to 2.7.0 gives this:

[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0:compile (default) on project app: 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 @ 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


If you have a working project which is building OK with 2.8.0-SNAPSHOT, can I see its pom.xml please?

Thanks.

Ali Akhtar

unread,
Jul 27, 2015, 4:52:56 PM7/27/15
to GWT Contributors, ali.r...@gmail.com
It seems that removing the line:

<failOnError>true</failOnError>

from the <runConfiguration> of the plugin allows the build to pass, without the error about the JsMap. So I've done that, for now, in order to pass the build (this is on 2.7.0 plugin without the dependencies specified and the plugin repo also removed)

However, it'd be good if the error with the JsMap could be fixed (or if the other errors with the 2.8.0-SNAPSHOT plugin / gwt-user can be fixed), so this workaround / hack wouldn't be necessary

Thanks.

Thomas Broyer

unread,
Jul 27, 2015, 5:25:57 PM7/27/15
to GWT Contributors, ali.r...@gmail.com, ali.r...@gmail.com


On Monday, July 27, 2015 at 9:59:04 PM UTC+2, Ali Akhtar wrote:
Hi Thomas,

I've upgraded the plugin and added the codeserver dep, however its failing to find the 2.8.0-SNAPSHOT plugin:

[ERROR] Plugin org.codehaus.mojo:gwt-maven-plugin:2.8.0-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:gwt-maven-plugin:jar:2.8.0-SNAPSHOT: Could not find artifact org.codehaus.mojo:gwt-maven-plugin:pom:2.8.0-SNAPSHOT in gwt-snapshot-plugin-repo (https://oss.sonatype.org/content/repositories/google-snapshots/) -> [Help 1]


Any ideas?

Ah sorry, due to the shutdown of codehaus, snapshots of gwt-maven-plugin are (temporarily) no longer deployed (it used to be at nexus.codehaus.org or something like that).
So you have to revert to the 2.7.0 plugin and override its GWT dependencies.

Wrt the error you're seeing when you do that about the parent POM not being resolvable; it *is* there, so maybe try with "mvn -U" or possibly nuke ~/.m2/repository/com/google/gwt/gwt/
 

Ali Akhtar

unread,
Jul 28, 2015, 2:28:51 AM7/28/15
to Thomas Broyer, GWT Contributors
Yeah, looks like you were right. Nuking ~/.m2/repository/com/google/gwt and running mvn install -U, the build is now passing with failOnError and dependencies specified. Thanks.
Reply all
Reply to author
Forward
0 new messages