Hello ! I made a project in Eclipse to demonstrate this issue when using GEP and M2 Eclipse Plugin.
The project is structured like a standard Maven web project, with sources in src/main/java and web files in src/main/webapp. I configured it with this pom.xml : <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.test</groupId> <artifactId>gwt-sample</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>war</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.6</maven.compiler.source> <maven.compiler.target>1.6</maven.compiler.target> <gwt.version>2.0.3</gwt.version> </properties> <dependencies> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-user</artifactId> <version>${gwt.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.8.1</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> <optimize>true</optimize> <showWarnings>true</showWarnings> <showDeprecation>true</showDeprecation> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <executions> <execution> <goals> <goal>clean</goal> <goal>compile</goal> <goal>test</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> Then, I created a simple EntryPoint, a simple application.html file and I ran the project using GEP (Run As > Web Application). Here is the resulting JAVA command line (formatted) : D:\devel\tools\win32\jdk-1.6.0_18\bin\javaw.exe -Xmx512m -Dfile.encoding=UTF-8 -classpath D:\devel\sources\base\gwt\gwt-sample\src\main\java; D:\devel\sources\base\gwt\gwt-sample\target\classes; D:\devel\local-repository\com\google\gwt\gwt-user\2.0.3\gwt- user-2.0.3.jar; D:\devel\local-repository\junit\junit\4.8.1\junit-4.8.1.jar; D:\devel\tools\win32\eclipse-jee-galileo-SR1-win32\plugins \com.google.gwt.eclipse.sdkbundle. 2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-user.jar; D:\devel\tools\win32\eclipse-jee-galileo-SR1-win32\plugins \com.google.gwt.eclipse.sdkbundle. 2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-dev.jar com.google.gwt.dev.DevMode -war D:\devel\sources\base\gwt\gwt-sample\target\gwt-sample-1.0.0- SNAPSHOT -remoteUI 3168:274053652797451 -startupUrl application.html -logLevel INFO -port 8888 org.test.gwt.Application You can see that the junit artifact has been included to the classpath, though it has the scope set to test in the pom.xml !!! To see if it was an issue with the m2eclipse plugin, I added a simple main method into my entry point class and then I ran it (Run As > Java Application). Here is the resulting JAVA command line (formatted) : D:\devel\tools\win32\jdk-1.6.0_18\bin\javaw.exe -Dfile.encoding=UTF-8 -classpath D:\devel\sources\base\gwt\gwt-sample\target\classes; D:\devel\tools\win32\eclipse-jee-galileo-SR1-win32\plugins \com.google.gwt.eclipse.sdkbundle. 2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-user.jar; D:\devel\tools\win32\eclipse-jee-galileo-SR1-win32\plugins \com.google.gwt.eclipse.sdkbundle. 2.0.3_2.0.3.v201002191036\gwt-2.0.3\gwt-dev.jar; D:\devel\local-repository\com\google\gwt\gwt-user\2.0.3\gwt- user-2.0.3.jar org.test.gwt.client.ApplicationEntryPoint As expected (and explain here https://docs.sonatype.org/display/M2ECLIPSE/Runtime+classpath), the junit library is not present in the classpath...! Is there something that you can do to fix this ? Cheers, Simon -- 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.