Bonsoir la communauté.
J'ai créé un projet EAR JEE5 avec Maven en utilisant le plugin m2eclipse dans l'IDE Eclipse HELIOS.
Lorsque je lance le goal mvn compile dans le répertoire du projet j'obtien l'erreur suivante dans la console.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cde-ear-iceface JEE5 Assembly 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-ear-plugin:2.4.1:generate-application-xml (default-generate-application-xml) @ cde-ear-iceface ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.704s
[INFO] Finished at: Wed Feb 16 18:01:51 AFT 2011
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:2.4.1:generate-application-xml (default-generate-application-xml) on project cde-ear-iceface: Artifact[ejb:prototype-cde:cde-metier-abonnement] is not a dependency of the project. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/d...ilureException
Voici le contenu de mon fichier pom.xml
Merci pour votre aide pour ceux qui auraient une idée.
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84 <?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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <!--<parent> <artifactId>prototype-cde</artifactId> <groupId>prototype-cde</groupId> <version>1.0-SNAPSHOT</version> </parent> --> <groupId>prototype-cde</groupId> <artifactId>cde-ear-iceface</artifactId> <version>1.0-SNAPSHOT</version> <packaging>ear</packaging> <name>cde-ear-iceface JEE5 Assembly</name> <url>http://maven.apache.org</url> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.5</source> <target>1.5</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.4.1</version> <configuration> <version>5</version> <modules> <webModule> <groupId>prototype-cde</groupId> <artifactId>cde-web-iceface</artifactId> <bundleFileName>cde-web-iceface.war</bundleFileName> <contextRoot>cde-web-iceface</contextRoot> </webModule> <ejbModule> <groupId>prototype-cde</groupId> <artifactId>cde-metier-abonnement</artifactId> <bundleFileName>cde-metier-abonnement.jar</bundleFileName> </ejbModule> </modules> <displayName></displayName> <!--<generateApplicationXml>true</generateApplicationXml> --><defaultLibBundleDir>lib</defaultLibBundleDir> </configuration> </plugin> </plugins> <finalName>cde-ear-iceface</finalName> </build> <dependencies> <dependency> <groupId>prototype-cde</groupId> <artifactId>cde-web-iceface</artifactId> <version>1.0-SNAPSHOT</version> <type>war</type> </dependency> <dependency> <groupId>prototype-cde</groupId> <artifactId>cde-metier-abonnement</artifactId> <version>1.0-SNAPSHOT</version> <type>jar</type> </dependency> </dependencies> </project>
SVP c'est vraiment urgent
Une fois de plus merci d'avance pour votre aide...









Répondre avec citation
Partager