Bonjour,
Je n'arrive pas à lancer les tests dans un projet full maven gwt.
J'ai créé le projet de cette manière sous Eclipse (Juno) :
File > New > Other > Maven Project
Next
Next (ecran workspace)
archetype : org.codehaus.mojo / gwt-maven-plugin / 2.5.1
Next
Group Id : mygroup
Artifact Id : myapp
module : MyModule
Finish
Une fois le projet créé, je modifie le pom :
en
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 <configuration> <source>1.5</source> <target>1.5</target> </configuration>
Je rajoute ça pour supprimer les erreurs dans eclipse (peut etre que mon erreur vient de ça)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 <configuration> <source>1.6</source> <target>1.6</target> </configuration>
Je fais ensuite Click droit sur le projet > Maven > Update Project
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 <pluginManagement> <plugins> <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. --> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.codehaus.mojo</groupId> <artifactId> gwt-maven-plugin </artifactId> <versionRange> [2.5.1,) </versionRange> <goals> <goal>i18n</goal> <goal>generateAsync</goal> </goals> </pluginExecutionFilter> <action> <ignore></ignore> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement>
A ce niveau je n'ai plus que des erreurs sur les classes générées.
Je lance enfin maven : clean generate-sources gwt:run et j'obtiens :
Avez vous une idée et/ou des compléments d'info pour le paramétrage du pom avec ce format de projet ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building GWT Maven Archetype 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- gwt-maven-plugin:2.5.1:test (default-cli) @ myapp --- [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running junit.framework.TestSuite@1ccb029 [INFO] [ERROR] Failure in unit cache map load. [INFO] java.util.concurrent.ExecutionException: java.lang.StackOverflowError [INFO] at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) [INFO] at java.util.concurrent.FutureTask.get(FutureTask.java:83) [INFO] at com.google.gwt.dev.javac.PersistentUnitCache.awaitUnitCacheMapLoad(PersistentUnitCache.java:466) [INFO] at com.google.gwt.dev.javac.PersistentUnitCache.find(PersistentUnitCache.java:391) [INFO] at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:435) [INFO] at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:388) [INFO] at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:373)
Merci par avance,
Partager