On Fri, Oct 17, 2014 at 12:48 AM, Colin Alworth <[email protected]> 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/ <http://xn--nna.ma.xn--bwa-xxb.je/> -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
