Installation Maven GWT Eclipse
Bonjour,
J'ai installé le plugin Maven et le plugin GWT dans Eclipse.
J'ai créé un projet maven utilisant le filtre : groupeId : org.codehaus.mojo et l'artefactId :gwt-maven-plugin
Le projet qui contient la classe application.java
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| package acensi.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class Application implements EntryPoint
{
/**
* This is the entry point method.
*/
public void onModuleLoad()
{
final Label label = new Label ( "gwt-maven-plugin Archetype :: Project org.codehaus.mojo.gwt-maven-plugin" );
RootPanel.get().add( label );
}
} |
la classe de test
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| package acensi.client;
import junit.framework.Assert;
import com.google.gwt.junit.client.GWTTestCase;
public class GwtTestSample extends GWTTestCase
{
public String getModuleName()
{
return "acensi.Application";
}
public void testSomething()
{
// Not much to actually test in this sample app
// Ideally you would test your Controller here (NOT YOUR UI)
// (Make calls to RPC services, test client side model objects, test client side logic, etc)
Assert.assertTrue( true );
}
} |
quand j'exécute la commande suivante :
Code:
mvn clean install gwt:run
j'ai l'erreur suivante
Code:
1 2 3 4 5 6 7 8 9 10 11
| [ERROR] java.lang.NoClassDefFoundError: and
[ERROR] Caused by: java.lang.ClassNotFoundException: and
[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] Could not find the main class: and. Program will exit.
[ERROR] Exception in thread "main" |
Je ne vois pas le problème, de plus j'ai déjà installé un projet maven avec GWT sur un autre PC en utilisant la même procédure et ça fonctionne correctement.
Si vous pouvez m'aider
Merci d'avance