Hi,

I am using plugin version 1.2 (this happens with 1.1 as well). I have
a standalone GWT module (not EntryPoint), using GWT 2.0.1 (same thing
happens when using 2.0.0). The test runs just fine within Eclipse, but
it gives me this when I run through 'mvn clean test':
***********
[INFO] [gwt:test {execution: test}]
[INFO] using GWT jars from project dependencies : 2.0.1
[INFO] establishing classpath list (scope = test)
[ERROR] java.lang.NoClassDefFoundError: and
[ERROR] Caused by: java.lang.ClassNotFoundException: and
[ERROR]         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[ERROR]         at java.security.AccessController.doPrivileged(Native Method)
[ERROR]         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[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:252)
[ERROR]         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
[ERROR] Could not find the main class: and.  Program will exit.
[ERROR] Exception in thread "main"
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
***********

Just in case, my pom.xml looks like this:

********************
<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.tbiq.gwt.tools</groupId>
        <artifactId>PlaceService</artifactId>
        <version>1.0-SNAPSHOT</version>
        <packaging>jar</packaging>
        <name>GWT PlaceService</name>
        <description>PlaceService handles managing history within a GWT
application.</description>

        <properties>
                <gwt.version>2.0.1</gwt.version>
        </properties>

        <dependencies>
                <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-user</artifactId>
                        <version>${gwt.version}</version>
                </dependency>

                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>4.7</version>
                        <scope>test</scope>
                </dependency>
        </dependencies>

        <build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <version>2.1</version>
                                <configuration>
                                        <source>1.6</source>
                                        <target>1.6</target>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>gwt-maven-plugin</artifactId>
                                <version>1.2</version>
                                <executions>
                                        <execution>
                                                <id>resources</id>
                                                <goals>
                                                        <goal>resources</goal>
                                                </goals>
                                        </execution>
                                        <execution>
                                                <id>test</id>
                                                <phase>test</phase>
                                                <goals>
                                                        <goal>test</goal>
                                                </goals>
                                        </execution>
                                </executions>
                        </plugin>
                </plugins>
        </build>

</project>
********************

Am I configuring something wrong here?

Thanks,
Yaakov.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to