I'm having similar problems. UPdating from gwt 1.7.1 to 2.1.0, also going from the old maven-gwt-plugin to the gwt-maven-plugin 2.1.0 (ugh -- naming conventions here are awful and i've got to fully qualify the new plugin because i can't find a way to remove the old plugin).
I can include the gwt-dev jar in my pom, and get a warning not to -- other then that everything else seems fine. Or I can scope the dev jar to test-compile, exclude some other classes in the compile phase (classes that rely on the dev jar), and the gwt- maven-plugin complains during it's compile phase that it needs a compiled version of the class that relies on gwt-dev jar. I've also got a similar problem in my gwt:test phase where it requests that i click on a link (i thought this was all headless): [INFO] [gwt:test {execution: default-cli}] [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running GWT Tests [INFO] Please navigate your browser to this URL: [INFO] http://127.0.1.1:37860/path.to.my.webapp.TestModule.JUnit/junit.html?gwt.codesvr=127.0.1.1:48442 Process 1290795377283 is killed. [WARNING] Forked JVM has been killed on time-out after 60 seconds [INFO] ------------------------------------------------------------------------ [INFO] Building ParentProject [INFO] task-segment: [org.codehaus.mojo:gwt-maven-plugin: 2.1.0:test] [INFO] ------------------------------------------------------------------------ [INFO] [gwt:test {execution: default-cli}] [INFO] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] ------------------------------------------------------------------------ [INFO] fmas .................................................. SUCCESS [1:19.311s] [INFO] ParentProject ......................................... SUCCESS [0.011s] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 20 seconds [INFO] Finished at: Fri Nov 26 14:17:17 AST 2010 [INFO] Final Memory: 22M/368M [INFO] ------------------------------------------------------------------------ On Nov 9, 3:44 am, Musicman75 <stephan.beu...@googlemail.com> wrote: > I run into the same problem. > After changing from 2.0.4 to GWT 2.1.0 I can't execute the tests > anymore. > > The tests fail with error: > > --- gwt-maven-plugin:2.1.0:test (gwtcompile) @ dashboardClient --- > [ERROR] java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/ > Condition > [ERROR] at > com.google.gwt.junit.client.GWTTestCase.createStrategy(GWTTestCase.java: > 355) > [ERROR] at > com.google.gwt.junit.client.GWTTestCase.getStrategy(GWTTestCase.java: > 272) > [ERROR] at > com.google.gwt.junit.client.GWTTestCase.getSyntheticModuleName(GWTTestCase.java: > 290) > [ERROR] at > com.google.gwt.junit.client.GWTTestCase.setName(GWTTestCase.java:336) > [ERROR] at junit.framework.TestSuite.createTest(TestSuite.java:63) > [ERROR] at junit.framework.TestSuite.addTestMethod(TestSuite.java: > 283) > [ERROR] at junit.framework.TestSuite.<init>(TestSuite.java:146) > [ERROR] at junit.framework.TestSuite.<init>(TestSuite.java:175) > [ERROR] at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java: > 117) > [ERROR] at junit.textui.TestRunner.start(TestRunner.java:179) > [ERROR] at > org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java: > 63) > [ERROR] Caused by: java.lang.ClassNotFoundException: > com.google.gwt.dev.cfg.Condition > [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > [ERROR] at java.security.AccessController.doPrivileged(Native Method) > [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > [ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java: > 301) > [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > [ERROR] ... 11 more > [ERROR] com/google/gwt/dev/cfg/Condition > > On 7 Nov., 16:10, Jeff Larsen <larse...@gmail.com> wrote: > > > I get the same error. > > > I tried added gwt-dev 2.1.0 as a test dependency, but then it wants me > > go to URLs in a browser... I just want it to run my test suite. > > > On Nov 6, 8:08 pm, Yaakov <yaakov.chai...@gmail.com> wrote: > > > > Well, I tried that. It now fails with this in the testing phase: > > > > ***************** > > > [INFO] [gwt:test {execution: test}] > > > [ERROR] java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/ > > > Condition > > > [ERROR] at > > > com.google.gwt.junit.client.GWTTestCase.createStrategy(GWTTestCase.java: > > > 355) > > > [ERROR] at > > > com.google.gwt.junit.client.GWTTestCase.getStrategy(GWTTestCase.java: > > > 272) > > > [ERROR] at > > > com.google.gwt.junit.client.GWTTestCase.getSyntheticModuleName(GWTTestCase. > > > java: > > > 290) > > > [ERROR] at > > > com.google.gwt.junit.client.GWTTestCase.setName(GWTTestCase.java:336) > > > [ERROR] at junit.framework.TestSuite.createTest(TestSuite.java: > > > 63) > > > [ERROR] at > > > junit.framework.TestSuite.addTestMethod(TestSuite.java:283) > > > [ERROR] at junit.framework.TestSuite.<init>(TestSuite.java: > > > 146) > > > [ERROR] at junit.framework.TestSuite.<init>(TestSuite.java: > > > 175) > > > [ERROR] at > > > junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:117) > > > [ERROR] at junit.textui.TestRunner.start(TestRunner.java:179) > > > [ERROR] at > > > org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java: > > > 63) > > > [ERROR] Caused by: java.lang.ClassNotFoundException: > > > com.google.gwt.dev.cfg.Condition > > > [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java: > > > 202) > > > [ERROR] at java.security.AccessController.doPrivileged(Native > > > Method) > > > [ERROR] at > > > java.net.URLClassLoader.findClass(URLClassLoader.java:190) > > > [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java: > > > 307) > > > [ERROR] at sun.misc.Launcher > > > $AppClassLoader.loadClass(Launcher.java:301) > > > [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java: > > > 248) > > > [ERROR] ... 11 more > > > [ERROR] com/google/gwt/dev/cfg/Condition > > > [INFO] > > > ------------------------------------------------------------------------ > > > [ERROR] BUILD ERROR > > > [INFO] > > > ------------------------------------------------------------------------ > > > [INFO] There was test failures. > > > ***************** > > > > On Nov 5, 6:49 pm, Thomas Broyer <t.bro...@gmail.com> wrote: > > > > > On 5 nov, 22:01, Yaakov Chaikin <yaakov.chai...@gmail.com> wrote: > > > > > > Never mind... It was the version of the gwt-maven-plugin... However, > > > > > now, I can't get it to install. What version of the gwt-maven-plugin > > > > > am I supposed to use with the latest 2.1.0 release of GWT and which > > > > > repository does it reside in? > > > > > You can use either the 1.3.2.google version from > > > > thehttp://google-web-toolkit.googlecode.com/svn/2.1.0/gwt/maven/ > > > > repository, or the 2.1.0 version from Maven Central (released today) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.