PSA: starting unbundling dependencies from gwt-dev published to Maven Central, could break your build

1,438 views
Skip to first unread message

Thomas Broyer

unread,
Oct 12, 2014, 4:35:09 AM10/12/14
to google-we...@googlegroups.com
Hi all,

If you're using 2.7.0-SNAPSHOT, your build might start failing as of today as we started unbundling dependencies from gwt-dev as published to the Central Repository.

java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor

If you get this error, be sure to also update your gwt-maven-plugin to the latest 2.7.0-SNAPSHOT too.

If that doesn't work, add gwt-dev or (better) gwt-codeserver as a project dependency (and report the problem to https://groups.google.com/d/forum/codehaus-mojo-gwt-maven-plugin-users). This is likely to become the preferred way to use GWT in the future, and the gwt-maven-plugin might stop automatically adding GWT deps to the classpath in gwt:compile or gwt:run in a future version (probably not 2.7 though): as we'll unbundle more dependencies from gwt-dev (and gwt-user), you might want to gain control over those dependencies (e.g. using a newer version of Guava, or ASM, etc.) and this is not possible with plugin dependencies as it's done today within the gwt-maven-plugin.

Also noteworthy: that same change also turned com.google.gwt:gwt into a BOM (bill of material); that means that instead of including the <version> in all your GWT dependencies you can now declare com.google.gwt:gwt into your dependencyManagement section with <scope>import</scope>. As a bonus, it should ensure transitive dependencies to GWT will all use the same version, so you'll have fewer risks of conflicts.

I'll soon update the GWT samples, WebAppCreator templates and various archetypes to use those new "best practices".

Gal Dolber

unread,
Oct 12, 2014, 10:58:46 AM10/12/14
to google-we...@googlegroups.com
Great news! thanks to all the team for all the work on SDM, did the migration to 2.7 last week, brought me the smile again while working with GWT.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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.

Ramon Salla

unread,
Oct 12, 2014, 2:53:02 PM10/12/14
to google-we...@googlegroups.com
Adding http://mvnrepository.com/artifact/org.ow2.asm/asm/5.0.3 it worked again.



El diumenge 12 d’octubre de 2014 10:35:09 UTC+2, Thomas Broyer va escriure:

Thomas Broyer

unread,
Oct 12, 2014, 3:02:49 PM10/12/14
to Google Web Toolkit
Yes, there's actually a bug in the parent POM: https://gwt-review.googlesource.com/9642

(note: you need more than asm –see POM–, but possibly only under some conditions – classic DevMode?)

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe.
To unsubscribe from this group and all its topics, 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.



--
Thomas Broyer
/tɔ.ma.bʁwa.je/

Drew Spencer

unread,
Oct 16, 2014, 5:10:51 AM10/16/14
to google-we...@googlegroups.com
I think I'm getting two errors relating to the bugs in the POM that Thomas mentions above:

[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0-SNAPSHOT:compile (default-cli) on project UsavAppV7: Failed to resolve artifact: Some problems were encountered while processing the POMs:
[ERROR] [ERROR] Non-resolvable import POM: Failure to find com.google.web.bindery:requestfactory:pom:2.7.0-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced @ com.google.gwt:gwt:2.7.0-SNAPSHOT, C:\Users\Drew\.m2\repository\com\google\gwt\gwt\2.7.0-SNAPSHOT\gwt-2.7.0-SNAPSHOT.pom, line 50, column 25
[ERROR] [ERROR] Non-resolvable import POM: Could not find artifact org.ow2.asm:asm-parent:pom:5.0.3 @ com.google.gwt:gwt:2.7.0-SNAPSHOT, C:\Users\Drew\.m2\repository\com\google\gwt\gwt\2.7.0-SNAPSHOT\gwt-2.7.0-SNAPSHOT.pom, line 74, column 25

I have tried adding gwt-dev, gwt-codeserver, and the asm dependency but still getting it. Also tried forcing an update of snapshots/releases but no change.

I'm still a bit green when it comes to maven.


On Sunday, 12 October 2014 20:02:49 UTC+1, Thomas Broyer wrote:
Yes, there's actually a bug in the parent POM: https://gwt-review.googlesource.com/9642

(note: you need more than asm –see POM–, but possibly only under some conditions – classic DevMode?)
On Sun, Oct 12, 2014 at 8:53 PM, Ramon Salla <rsa...@gmail.com> wrote:
Adding http://mvnrepository.com/artifact/org.ow2.asm/asm/5.0.3 it worked again.



El diumenge 12 d’octubre de 2014 10:35:09 UTC+2, Thomas Broyer va escriure:
Hi all,

If you're using 2.7.0-SNAPSHOT, your build might start failing as of today as we started unbundling dependencies from gwt-dev as published to the Central Repository.

java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor

If you get this error, be sure to also update your gwt-maven-plugin to the latest 2.7.0-SNAPSHOT too.

If that doesn't work, add gwt-dev or (better) gwt-codeserver as a project dependency (and report the problem to https://groups.google.com/d/forum/codehaus-mojo-gwt-maven-plugin-users). This is likely to become the preferred way to use GWT in the future, and the gwt-maven-plugin might stop automatically adding GWT deps to the classpath in gwt:compile or gwt:run in a future version (probably not 2.7 though): as we'll unbundle more dependencies from gwt-dev (and gwt-user), you might want to gain control over those dependencies (e.g. using a newer version of Guava, or ASM, etc.) and this is not possible with plugin dependencies as it's done today within the gwt-maven-plugin.

Also noteworthy: that same change also turned com.google.gwt:gwt into a BOM (bill of material); that means that instead of including the <version> in all your GWT dependencies you can now declare com.google.gwt:gwt into your dependencyManagement section with <scope>import</scope>. As a bonus, it should ensure transitive dependencies to GWT will all use the same version, so you'll have fewer risks of conflicts.

I'll soon update the GWT samples, WebAppCreator templates and various archetypes to use those new "best practices".

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@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.



--
Thomas Broyer
/tɔ.ma.bʁwa.je/

Thomas Broyer

unread,
Oct 16, 2014, 5:38:27 AM10/16/14
to Google Web Toolkit
On Thu, Oct 16, 2014 at 11:10 AM, Drew Spencer <slugm...@gmail.com> wrote:
I think I'm getting two errors relating to the bugs in the POM that Thomas mentions above:

[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0-SNAPSHOT:compile (default-cli) on project UsavAppV7: Failed to resolve artifact: Some problems were encountered while processing the POMs:
[ERROR] [ERROR] Non-resolvable import POM: Failure to find com.google.web.bindery:requestfactory:pom:2.7.0-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced @ com.google.gwt:gwt:2.7.0-SNAPSHOT, C:\Users\Drew\.m2\repository\com\google\gwt\gwt\2.7.0-SNAPSHOT\gwt-2.7.0-SNAPSHOT.pom, line 50, column 25
[ERROR] [ERROR] Non-resolvable import POM: Could not find artifact org.ow2.asm:asm-parent:pom:5.0.3 @ com.google.gwt:gwt:2.7.0-SNAPSHOT, C:\Users\Drew\.m2\repository\com\google\gwt\gwt\2.7.0-SNAPSHOT\gwt-2.7.0-SNAPSHOT.pom, line 74, column 25

I have tried adding gwt-dev, gwt-codeserver, and the asm dependency but still getting it. Also tried forcing an update of snapshots/releases but no change.

I'm still a bit green when it comes to maven.


Which version of Maven are you using? Also, have you configured the google-snapshots both as a repository and pluginRepository? (I think this is needed for the plugin to resolve its dependencies)

I was fighting yesterday with a discrepancy between Maven 3.0.5 and 3.1 / 3.2 with the maven-invoker-plugin (used to run tests of the gwt-maven-plugin): things passed with 3.1 (on BuildHive) and 3.2 (on Travis-CI) but failed on my machine (3.0.5). Trying with 3.2.3 on my machine, things worked. The error was exactly the same wrt com.google.web.bindery:requestfactory.

The error about ASM is strange though, it's in Central so it should Just Work™, unless you have some repository/mirror configuration getting in the way?


--
Thomas Broyer
/tɔ.ma.bʁwa.je/

Drew Spencer

unread,
Oct 16, 2014, 7:26:18 AM10/16/14
to google-we...@googlegroups.com
I'm using Eclipse Kepler with m2e 1.4.0.2xx. I think my maven version is 3.0.4 - it's the one that came embedded with eclipse. I'll try the new eclipse and see what that says.

Ümit Seren

unread,
Oct 16, 2014, 7:42:55 AM10/16/14
to google-we...@googlegroups.com
I have the same issue with maven 3.0.5

[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0-SNAPSHOT:compile (gwt-compile) on project genophenbrowser-client: Failed to resolve artifact: Some problems were encountered while processing the POMs:
[ERROR] [ERROR] Non-resolvable import POM: Could not find artifact com.google.web.bindery:requestfactory:pom:2.7.0-SNAPSHOT in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) @ com.google.gwt:gwt:2.7.0-SNAPSHOT, /home/GMI/uemit.seren/.m2/repository/com/google/gwt/gwt/2.7.0-SNAPSHOT/gwt-2.7.0-SNAPSHOT.pom, line 50, column 25
[ERROR] [ERROR] Non-resolvable import POM: Could not find artifact org.ow2.asm:asm-parent:pom:5.0.3 @ com.google.gwt:gwt:2.7.0-SNAPSHOT, /home/GMI/uemit.seren/.m2/repository/com/google/gwt/gwt/2.7.0-SNAPSHOT/gwt-2.7.0-SNAPSHOT.pom, line 74, column 25
[ERROR] for project
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
uemit.seren@gmi-lws06:~/eclipse_workspaces/intellij/genophenbrowser/genophenbrowser-client$ mvn --version
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.7.0_72, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-37-generic", arch: "amd64", family: "unix"


This is how the repositories look like

<pluginRepositories>
        <pluginRepository>
            <id>codehaus-snapshots</id>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>


<repositories>
<repository>
            <id>google-snapshots</id>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
    </repositories>



Where do you deploy the latest gwt-maven snapshot to sonatype or codehaus ?

Thomas Broyer

unread,
Oct 16, 2014, 7:58:17 AM10/16/14
to Google Web Toolkit
gwt-maven-plugin snapshots are deployed to codehaus, but the plugin depends on GWT snapshots which are at sonatype, and Maven thus uses the pluginRepositories to download them as dependencies of the gwt-maven-plugin (it doesn't look like it uses the repositories listed in gwt-maven-plugin's own POM).

Does it change anything if you declare google-snapshots as a pluginRepository as well?

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe.
To unsubscribe from this group and all its topics, 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.



--
Thomas Broyer
/tɔ.ma.bʁwa.je/

Ümit Seren

unread,
Oct 16, 2014, 8:13:48 AM10/16/14
to google-we...@googlegroups.com
no it didn't help unfortunately. 
But I upgraded to maven 3.2.1 and the error went away. 



Thomas Broyer

unread,
Oct 16, 2014, 8:32:32 AM10/16/14
to Google Web Toolkit
This is strange, because I tested the samples with Maven 3.0.5 (this is still my default version) and didn't have this problem :-/

Ümit Seren

unread,
Oct 16, 2014, 8:55:12 AM10/16/14
to google-we...@googlegroups.com
Hmm that's weird. I remember that when I tried to compile the same app with 2.7.0-SNAPSHOT (gwt-maven plugin) two weeks ago it worked fine with maven 3.0.5.

However I have now a different issue: 

I have used your gwt archetype (https://github.com/tbroyer/gwt-maven-archetypes)  and I have three modules (app-client, app-server and app-shared) inside a parent pom project (app) . 

When I run "mvn clean install" in app-client everything works fine (gwt compiles, finishes). 
However when I run "mvn clean install" in parent "app" pom projet I get following error: 

[INFO]    Computing all possible rebind results for 'org.jboss.errai.marshalling.client.api.MarshallerFactory'
[INFO]       Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory
[INFO]          Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator
[INFO]             Generating Marshallers Bootstrapper...
[ERROR] java.util.concurrent.ExecutionException: java.lang.NullPointerException
[ERROR]         at java.util.concurrent.FutureTask.report(FutureTask.java:122)
[ERROR]         at java.util.concurrent.FutureTask.get(FutureTask.java:188)
[ERROR]         at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:112)
[ERROR]         at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:86)
[ERROR]         at org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:188)
[ERROR]         at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:226)
[ERROR]         at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)

[INFO] Caused by: java.lang.NullPointerException
[INFO]  at org.jboss.errai.codegen.util.ClassChangeUtil._findAllMatching(ClassChangeUtil.java:453)
[INFO]  at org.jboss.errai.codegen.util.ClassChangeUtil._findAllMatching(ClassChangeUtil.java:454)
[INFO]  at org.jboss.errai.codegen.util.ClassChangeUtil._findAllMatching(ClassChangeUtil.java:454)
[INFO]  at org.jboss.errai.codegen.util.ClassChangeUtil._findAllMatching(ClassChangeUtil.java:454)
[INFO]  at org.jboss.errai.codegen.util.ClassChangeUtil._findAllMatching(ClassChangeUtil.java:454)
[INFO]  at org.jboss.errai.codegen.util.ClassChangeUtil._findAllMatching(ClassChangeUtil.java:454)
[INFO]  at org.jboss.errai.codegen.util.ClassChangeUtil.findAllMatching(ClassChangeUtil.java:446)



Drew Spencer

unread,
Oct 16, 2014, 11:48:18 AM10/16/14
to google-we...@googlegroups.com
Somehow I made the requestfactory error go away but I'm still getting this one:

[ERROR] Non-resolvable import POM: Could not find artifact org.ow2.asm:asm-parent:pom:5.0.3 @ com.google.gwt:gwt:2.7.0-SNAPSHOT, C:\Users\Drew\.m2\repository\com\google\gwt\gwt\2.7.0-SNAPSHOT\gwt-2.7.0-SNAPSHOT.pom, line 74, column 25

I'm using Eclipse Luna with maven 3.2.1. Very odd.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@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.



--
Thomas Broyer
/tɔ.ma.bʁwa.je/

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@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.

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/LwXXQCG_I_k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@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.



--
Thomas Broyer
/tɔ.ma.bʁwa.je/

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

Ümit Seren

unread,
Oct 16, 2014, 2:00:27 PM10/16/14
to google-we...@googlegroups.com
Ok this error has nothing to do with GWT but with Errai. They iterate through the current working directory (CWD) to find the output folder to generate the server side marshalling classes. If the CWD has symbolic links this will apparently result in a NullPointerException. I have the strong feeling this is a bug (it should have a nullpointercheck). 

tskardal

unread,
Oct 16, 2014, 4:17:10 PM10/16/14
to google-we...@googlegroups.com
I'm' also having some trouble. I get errors related to both requestfactory and asm-parent.
You can see the error message and pom.xml at this gist: https://gist.github.com/tskardal/0d8287da4265c0fddfc8

I've created a project using the maven archetype, modified the versions and added the snapshot repos.

Brandon Donnelson

unread,
Oct 16, 2014, 5:56:53 PM10/16/14
to google-we...@googlegroups.com
Thomas I'm noticing the issue coming up on my config. I haven't drilled down to why yet. I copied the samples config.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.212 s
[INFO] Finished at: 2014-10-16T14:49:33-08:00
[INFO] Final Memory: 34M/448M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0-SNAPSHOT:compile (default) on project MyGxtProject31: Failed to resolve artifact: Some problems were encountered while processing the POMs:
[ERROR] [ERROR] Non-resolvable import POM: Could not find artifact org.ow2.asm:asm-parent:pom:5.0.3 @ com.google.gwt:gwt:2.7.0-SNAPSHOT, /Users/branflake2267/.m2/repository/com/google/gwt/gwt/2.7.0-SNAPSHOT/gwt-2.7.0-SNAPSHOT.pom, line 74, column 25

[ERROR] for project
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Brandons-MacBook-Pro:GxtProject31 branflake2267$ maven version
-bash: maven: command not found
Brandons-MacBook-Pro:GxtProject31 branflake2267$ mvn -version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T09:37:52-08:00)
Maven home: /usr/local/Cellar/maven/3.2.1/libexec
Java version: 1.7.0_40-ea, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name
: "mac os x", version: "10.9.5", arch: "x86_64", family: "mac"
Brandons-MacBook-Pro:GxtProject31 branflake2267$

Brandon Donnelson

unread,
Oct 16, 2014, 6:45:42 PM10/16/14
to google-we...@googlegroups.com
I found the reason, trying to find a workaround.

The repository definition is causing it to try to download from snapshots where it doesn't exist. 


Colin Alworth

unread,
Oct 16, 2014, 6:48:07 PM10/16/14
to google-we...@googlegroups.com
Looks like codehaus's snapshot repo is down, so I'm unable to get the latest gwt-maven-plugin. This url gives a 504 gateway timeout from ngnix for me:
https://nexus.codehaus.org/content/groups/snapshots-group/org/codehaus/mojo/gwt-maven-plugin/2.7.0-SNAPSHOT/maven-metadata.xml

If I set gwt-user and gwt-servlet to 2.7.0-SNAPSHOT and gwt-maven-plugin to 2.6.1, I get the NoClassDefFoundError:

[INFO] Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.MethodVisitor
[INFO]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[INFO]     at java.security.AccessController.doPrivileged(Native Method)
[INFO]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[INFO]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[INFO]     ... 62 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.640s
[INFO] Finished at: Thu Oct 16 17:28:18 CDT 2014
[INFO] Final Memory: 15M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.6.1:compile (default) on project rpq-samples: Command [[
[ERROR] /bin/sh -c /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xmx512m -classpath /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/classes:/Users/colin/Documents/idea/gwt-rpq/rpq-samples/src/main/java:/Users/colin/.m2/repository/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/gwt-user-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar:/Users/colin/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar:/Users/colin/.m2/repository/org/json/json/20090211/json-20090211.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-servlet/2.7.0-SNAPSHOT/gwt-servlet-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/com/colinalworth/rpq/0.0.1-SNAPSHOT/rpq-0.0.1-SNAPSHOT.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/gwt-user-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-dev/2.7.0-SNAPSHOT/gwt-dev-2.7.0-SNAPSHOT.jar com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/rpq-samples-0.0.1-SNAPSHOT -localWorkers 2 -XfragmentCount -1 -sourceLevel auto -gen /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/.generated com.colinalworth.rpqsample.demo.HelloWorld com.colinalworth.rpqsample.defer.SimpleAutoBatching



All GWT copies on the classpath are 2.7.0-SNAPSHOT, its just building under gwt-m-p 2.6.1.

Is this really expected? I'm probably misunderstanding how scope=import works and its importance (ha) to the build, but the strong implication seems to be that gwt-m-p is pulling in gwt-dev, but not transitive dependencies.

Pre-send edit: codehaus is back, pulling down results now. As with others, I am getting that org.ow2.asm:asm-parent:pom:5.0.3 is inexplicably missing, even if I delete it from my .m2/repository and the build *downloads* it, it claims it can't find it. Full gist from debug log: https://gist.github.com/niloc132/da63de6d8e8da90f49d7

Selected bits:

[DEBUG] Verifying availability of /Users/colin/.m2/repository/org/ow2/asm/asm-parent/5.0.3/asm-parent-5.0.3.pom from [sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots, snapshots)]

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.792s
[INFO] Finished at: Thu Oct 16 17:38:45 CDT 2014
[INFO] Final Memory: 19M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0-SNAPSHOT:compile (default) on project rpq-samples: Failed to resolve artifact: Some problems were encountered while processing the POMs:
[ERROR] [ERROR] Non-resolvable import POM: Could not find artifact org.ow2.asm:asm-parent:pom:5.0.3 @ com.google.gwt:gwt:2.7.0-SNAPSHOT, /Users/colin/.m2/repository/com/google/gwt/gwt/2.7.0-SNAPSHOT/gwt-2.7.0-SNAPSHOT.pom, line 74, column 25



Is there any chance that this is a 'feature' of scope=import, that you have to pull content from the same repos that the import'd pom came from, and that you can't get it from even the other defaults?

For reference sake, the project I'm building is https://github.com/niloc132/gwt-rpq on the 2.7.0 branch - first build rpq itself (gwt vers doesnt matter), then build gwt-rpq. Maven version included in the gist above.

Brandon Donnelson

unread,
Oct 16, 2014, 8:07:49 PM10/16/14
to google-we...@googlegroups.com
It appears that the  org.ow2.asm:asm-parent:pom:5.0.3 @ is fixed after upgrading to maven 3.2.3. The pom issue goes away.

Brandon
  

On Thursday, October 16, 2014 3:48:07 PM UTC-7, Colin Alworth wrote:
Looks like codehaus's snapshot repo is down, so I'm unable to get the latest gwt-maven-plugin. This url gives a 504 gateway timeout from ngnix for me:
https://nexus.codehaus.org/content/groups/snapshots-group/org/codehaus/mojo/gwt-maven-plugin/2.7.0-SNAPSHOT/maven-metadata.xml

If I set gwt-user and gwt-servlet to 2.7.0-SNAPSHOT and gwt-maven-plugin to 2.6.1, I get the NoClassDefFoundError:

[INFO] Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.MethodVisitor
[INFO]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[INFO]     at java.security.AccessController.doPrivileged(Native Method)
[INFO]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[INFO]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[INFO]     ... 62 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.640s
[INFO] Finished at: Thu Oct 16 17:28:18 CDT 2014
[INFO] Final Memory: 15M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.6.1:compile (default) on project rpq-samples: Command [[
[ERROR] /bin/sh -c /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xmx512m -classpath /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/classes:/Users/colin/Documents/idea/gwt-rpq/rpq-samples/src/main/java:/Users/colin/.m2/repository/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/gwt-user-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar:/Users/colin/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar:/Users/colin/.m2/repository/org/json/json/20090211/json-20090211.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-servlet/2.7.0-SNAPSHOT/gwt-servlet-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/com/colinalworth/rpq/0.0.1-SNAPSHOT/rpq-0.0.1-SNAPSHOT.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/gwt-user-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-dev/2.7.0-SNAPSHOT/gwt-dev-2.7.0-SNAPSHOT.jar com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/rpq-samples-0.0.1-SNAPSHOT -localWorkers 2<span style="color: #000;" class="styled-by-pret
...

salk31

unread,
Oct 17, 2014, 3:55:07 AM10/17/14
to google-we...@googlegroups.com
Hi Thomas,

Thanks, I'm up and running again with dependency on gwt-dev and gwt-codeserver...

Just checking: Presumably this is being pragmatic, working with what Maven gives us, as they are really plugin dependencies? ie the code I'm compiling shouldn't be coupled to any of gwt-dev or gwt-codeserver?

Thanks again, lots of beers waiting for you if I ever get the chance.

Sam

Drew Spencer

unread,
Oct 17, 2014, 4:31:57 AM10/17/14
to google-we...@googlegroups.com
Hmm, I don't think I can update the maven version in Eclipse properly - on 'Installations' page it says "Embedded runtime is always used for dependency resolution".

Can we switch to gradle? :D

Ümit Seren

unread,
Oct 17, 2014, 4:57:55 AM10/17/14
to google-we...@googlegroups.com
Haven't used eclipse for a long time but I guess you can tell it to use the installed maven version instead of the embedded runtime. 

Sometimes I have the feeling that one needs a Phd degree to master maven and probably two if you include the integration into an IDE ;-) 

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

Thomas Broyer

unread,
Oct 17, 2014, 4:58:49 AM10/17/14
to Google Web Toolkit
On Fri, Oct 17, 2014 at 12:48 AM, Colin Alworth <nilo...@gmail.com> wrote:
Looks like codehaus's snapshot repo is down, so I'm unable to get the latest gwt-maven-plugin. This url gives a 504 gateway timeout from ngnix for me:
https://nexus.codehaus.org/content/groups/snapshots-group/org/codehaus/mojo/gwt-maven-plugin/2.7.0-SNAPSHOT/maven-metadata.xml

If I set gwt-user and gwt-servlet to 2.7.0-SNAPSHOT and gwt-maven-plugin to 2.6.1, I get the NoClassDefFoundError:

[INFO] Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.MethodVisitor
[INFO]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[INFO]     at java.security.AccessController.doPrivileged(Native Method)
[INFO]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[INFO]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[INFO]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[INFO]     ... 62 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.640s
[INFO] Finished at: Thu Oct 16 17:28:18 CDT 2014
[INFO] Final Memory: 15M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.6.1:compile (default) on project rpq-samples: Command [[
[ERROR] /bin/sh -c /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xmx512m -classpath /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/classes:/Users/colin/Documents/idea/gwt-rpq/rpq-samples/src/main/java:/Users/colin/.m2/repository/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/gwt-user-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar:/Users/colin/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar:/Users/colin/.m2/repository/org/json/json/20090211/json-20090211.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-servlet/2.7.0-SNAPSHOT/gwt-servlet-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/com/colinalworth/rpq/0.0.1-SNAPSHOT/rpq-0.0.1-SNAPSHOT.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-user/2.7.0-SNAPSHOT/gwt-user-2.7.0-SNAPSHOT.jar:/Users/colin/.m2/repository/com/google/gwt/gwt-dev/2.7.0-SNAPSHOT/gwt-dev-2.7.0-SNAPSHOT.jar com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/rpq-samples-0.0.1-SNAPSHOT -localWorkers 2 -XfragmentCount -1 -sourceLevel auto -gen /Users/colin/Documents/idea/gwt-rpq/rpq-samples/target/.generated com.colinalworth.rpqsample.demo.HelloWorld com.colinalworth.rpqsample.defer.SimpleAutoBatching



All GWT copies on the classpath are 2.7.0-SNAPSHOT, its just building under gwt-m-p 2.6.1.

Is this really expected?

Yes.
g-m-p 2.6.1 assumed that gwt-dev had no dependency, so it just put gwt-dev in the classpath for the forked JVM without trying to resolve transitive dependencies. I fixed that recently in g-m-p 2.7.0-SNAPSHOT (https://github.com/gwt-maven-plugin/gwt-maven-plugin/commit/33e0b541f02c7cadff7f13c921d8e8f8a0a8ec79 and https://github.com/gwt-maven-plugin/gwt-maven-plugin/commit/2b60f6306fdce410399dd4c76c07ea91884abb3b)
If you add gwt-dev as a dependency of your project, then the transitive dependencies will be added from the project (and the g-m-p will add  gwt-dev a second time, from its own dependencies).
 
I'm probably misunderstanding how scope=import works and its importance (ha) to the build, but the strong implication seems to be that gwt-m-p is pulling in gwt-dev, but not transitive dependencies.

It's unrelated to scope=import, only to the fact that gwt-dev didn't have any transitive dependency until recently, and the g-m-p was coded with that assumption.
 

Pre-send edit: codehaus is back, pulling down results now. As with others, I am getting that org.ow2.asm:asm-parent:pom:5.0.3 is inexplicably missing, even if I delete it from my .m2/repository and the build *downloads* it, it claims it can't find it. Full gist from debug log: https://gist.github.com/niloc132/da63de6d8e8da90f49d7

This is really really strange, as I'd swear that everything was working for me with Maven 3.0.5 (before sending the patch to update the samples in GWT, I ran "mvn clean verify" and then "mvn gwt:run"). I never "mvn install" (or exceptionally once or twice a year) anything on my machine so the snapshots were all coming from the remote repositories.

--
Thomas Broyer
/tɔ.ma.bʁwa.je/

Drew Spencer

unread,
Oct 17, 2014, 5:29:11 AM10/17/14
to google-we...@googlegroups.com
As far as I can tell, you can tell it to execute with another runtime, but it always uses the embedded one for dependency resolution.

I agree. It's one of those "it's not rocket science, that would be easy compared to this" things :O
To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsub...@googlegroups.com.

Drew Spencer

unread,
Oct 17, 2014, 5:58:03 AM10/17/14
to google-we...@googlegroups.com
FWIW my app seems to compile and run ok using gwt-maven-plugin 2.6.1 with gwt 2.7.0-SNAPSHOT... gwt:run launched the codeserver and the auto recompile seems to be working :)

Brandon Donnelson

unread,
Oct 17, 2014, 10:40:45 AM10/17/14
to google-we...@googlegroups.com
Hi Drew, what version of maven are you using? mvn -version?

Drew Spencer

unread,
Oct 17, 2014, 1:26:07 PM10/17/14
to google-we...@googlegroups.com
Hi Brandon. I've never used maven from the command line but my eclipse (fresh luna) tells me my embedded version is 3.2.1 but I installed 3.2.3 and am using that, though as I mentioned above eclipse always uses the embedded version for dependency resolution.

So I'm launching with 3.2.3 and dependencies are done with 3.2.1 as far as I can tell.

Brandon Donnelson

unread,
Oct 17, 2014, 2:21:38 PM10/17/14
to google-we...@googlegroups.com
Oh interesting I haven't considered the Eclipse issue yet. Good to know.

I'll be looking at the GPE configuration system later today and this weekend, I noticed it was broken with the BOM config, so suspect I could see the issue in that config and I'll check out the options. I'll do some more debugging in Eclipse and see what happens with that.

Thanks for the info,
Brandon


Have a good day,
Brandon Donnelson

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

Thomas Broyer

unread,
Oct 17, 2014, 6:26:36 PM10/17/14
to google-we...@googlegroups.com


On Friday, October 17, 2014 10:58:49 AM UTC+2, Thomas Broyer wrote:

This is really really strange, as I'd swear that everything was working for me with Maven 3.0.5 (before sending the patch to update the samples in GWT, I ran "mvn clean verify" and then "mvn gwt:run"). I never "mvn install" (or exceptionally once or twice a year) anything on my machine so the snapshots were all coming from the remote repositories.

OK, problem reproduced/acknowledged. I know what in the plugin causes the error, but it's code a copy/pasted from another module without really understanding it (and using an API with absolutely zero documentation) so it might not be that easy to fix.
I think we'll really require everyone to explicitly declare gwt-codeserver as a project dependency.
Let's see how it goes in 2.7 beta1, without snapshots in the equation.

Brandon Donnelson

unread,
Oct 17, 2014, 6:35:33 PM10/17/14
to google-we...@googlegroups.com
Just a note, I'm digging into the GPE m2e project configurator. It looks like I've got to add a way to ready the dependency management (BOM). I'll have a test case setup shortly so I can start getting it to read the pom.xml configuration. Do you think anything is going to change upstream yet? From the way it looks so far its a maven bug and not an issue in the gwt configuration. 

Brandon Donnelson

unread,
Oct 17, 2014, 6:53:28 PM10/17/14
to google-we...@googlegroups.com
Update, GPE seems to be working, so I'm going to run more tests to verify. 

Thomas Broyer

unread,
Oct 17, 2014, 8:02:35 PM10/17/14
to Google Web Toolkit

Brandon Donnelson

unread,
Oct 18, 2014, 12:20:35 AM10/18/14
to google-we...@googlegroups.com
Nice job

Drew Spencer

unread,
Oct 21, 2014, 4:06:27 AM10/21/14
to google-we...@googlegroups.com
I'm using the snapshot since yesterday and it seems to be working great. 
Reply all
Reply to author
Forward
0 new messages