[ http://jira.codehaus.org/browse/MGWT-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed MGWT-206. ----------------------------- Resolution: Duplicate Assignee: Olivier Lamy > Project created from gwt-maven-plugin archetype fails to compile on Windows > XP. > ------------------------------------------------------------------------------- > > Key: MGWT-206 > URL: http://jira.codehaus.org/browse/MGWT-206 > Project: Maven 2.x GWT Plugin > Issue Type: Bug > Affects Versions: 1.2 > Environment: Windows XP > Out of the box Maven 2.2.1 installation. > Eclipse 3.5 > m2eclipse 0.10.0.20100209 > Reporter: Alex Pogrebnyak > Assignee: Olivier Lamy > > Create a project from gwt-maven-plugin archetype using m2eclipse. > Set gwt.version to 2.0.3 > Run "maven install" > Error: > [ERROR] java.lang.NoClassDefFoundError: > org/codehaus/mojo/gwt/test/MavenTestRunner > [ERROR] Caused by: java.lang.ClassNotFoundException: > org.codehaus.mojo.gwt.test.MavenTestRunner > [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) > Although it has the symptoms of MGWT-24, the underlying cause is different. > Running build in debug mode reveals the culprit: > Here is the log of the command execution that fails: > [DEBUG] Execute command : > C:\jdk1.6.0_20\jre\bin\java -Xmx512m -classpath > "C:\cygwin\home\alex\workspace\gwt-project\src\main\java";"C:\cygwin\home\alex\workspace\gwt-project\src\main\resources";"C:\cygwin\home\alex\workspace\gwt-project\war\WEB-INF\classes";"C:\cygwin\home\alex\workspace\gwt-project\src\test\java";"C:\cygwin\home\alex\workspace\gwt-project\src\test\resources";"C:\cygwin\home\alex\workspace\gwt-project\target\test-classes";"C:\Documents > and > Settings\alex\.m2\repository\com\google\gwt\gwt-servlet\2.0.3\gwt-servlet-2.0.3.jar";"C:\Documents > and > Settings\alex\.m2\repository\com\google\gwt\gwt-user\2.0.3\gwt-user-2.0.3.jar";"C:\Documents > and > Settings\alex\.m2\repository\junit\junit\4.7\junit-4.7.jar";"C:\Documents and > Settings\alex\.m2\repository\com\google\gwt\gwt-dev\2.0.3\gwt-dev-2.0.3.jar";"C:\Documents%20and%20Settings\alex\.m2\repository\org\codehaus\mojo\gwt-maven-plugin\1.2\gwt-maven-plugin-1.2.jar";"C:\Documents%20and%20Settings\alex\.m2\repository\org\apache\maven\surefire\surefire-api\2.4.3\surefire-api-2.4.3.jar" > -Dgwt.args=-out "target/www-test" > -Dsurefire.reports="C:\cygwin\home\alex\workspace\gwt-project\target\surefire-reports" > org.codehaus.mojo.gwt.test.MavenTestRunner gwt.client.GwtTestSample > If you look at the command line carefully you will notice that classpath > entries for dependency jars contain spaces, and entries for plugins > contain'%20' instead. > While it's fine to do such substitution in URI's, Windows does need a space, > not '%20'. > As a workaround, if you edit settings.xml and set <localRepository> to a > directory that does not contain spaces, the build succeeds. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email