On Monday, July 27, 2015 at 5:25:42 PM UTC+2, Ali Akhtar wrote: > > 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? >
Yes, Map emulation now uses JS Map when available. > This is my full pom: > https://gist.github.com/aliakhtar/d6f104f854c5e3764d72 > > 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>. -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/8156d418-b912-44b2-a413-c3d9e71938b6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
