Bonjour,

Je suis en train de constuire une application JEE avec la version 1.5 en utilisant Maven pour sa structure.

J'ai un répertoire : /home/repository/monAppli/src/WEB-INF dans laquelle je place mes fichiers jsp, html, etc. et dont le web.xml

Voici mon pom.xml :

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
<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>fr.toto.web</groupId>
  <artifactId>toto</artifactId>
  <packaging>war</packaging>
  <!-- Project Information -->
  <version>1.0</version>
  <name>project</name>
  <url>http://maven.apache.org</url>
  <description>""</description>
 
 <dependencies>
        <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>1.2.13</version>
        </dependency>
 </dependencies>
 
<reporting>
  <plugins>
 
        <!-- compiler -->
        <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                        <source>1.5</source>
                        <target>1.5</target>
                </configuration>
        </plugin>
 
        <!-- javadoc -->
        <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                        <minmemory>128m</minmemory>
                        <maxmemory>512m</maxmemory>
                </configuration>
        </plugin>
 
  </plugins>
</reporting>
</project>
Lorsque je lance la commande mvn package, voici ce qu'il me sort :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error assembling WAR: Deployment descriptor: /home/repository/monAppli/target/monAppli-1.0/WEB-INF/web.xml does not exist.
Donc je ne comprend pas puisque j'ai bien mon web.xml dans mon répertoire WEB-INF

Quelqu'un aurait t-il une idée ?

MErci de votre aide.