Bonjour,
j'ai un projet :
demoRoot :
- DemoEAR
- DemoEJB3
- DemoWeb
J'utilise cargo pour déployer l'EAR dans Jboss4 sous le projet parent DemoRoot :
J'ai mappé le déploiement de mon EAR sous la phase install.Code:
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
35
36
37
38 <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>0.3-SNAPSHOT</version> <configuration> <container> <containerId>jboss4x</containerId> <home>C:\jboss-4.0.4.CR2ter</home> </container> <configuration> <type>existing</type> <home>C:\jboss-4.0.4.CR2ter\server\demov5\</home> <properties> <cargo.servlet.port>8080</cargo.servlet.port> <cargo.jboss.configuration>demov</cargo.jboss.configuration> </properties> </configuration> <deployer> <deployables> <deployable> <groupId>sr.objectif.demoEJB3</groupId> <artifactId>DemoEAR</artifactId> <type>ear</type> </deployable> </deployables> </deployer> </configuration> <executions> <execution> <id>install</id> <phase>install</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> </plugin>
Pour que le plug-in puisse fonctioner je dois rajouter la dépendance DemoEAR au projet DemoRoot. Lorsque je lance sous DemoRoot mvn install, j'ai ce type d'erreur :
Je ne vois pas comment gérer mes dépendances, est ce que c'est déjà arrivé à quelqu'un ???Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] The projects in the reactor contain a cyclic reference: Edge between 'Ver tex{label='sr.objectif.demoEJB3:DemoEAR'}' and 'Vertex{label='sr.objectif.demoEJ B3:DemoEAR'}' introduces to cycle in the graph sr.objectif.demoEJB3:DemoEAR --> sr.objectif.demoEJB3:DemoEAR [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Aug 01 10:30:53 CEST 2007 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------
Merci d'avance
@+