Bonjour,

aujourd'hui, un projet qui compile sans soucis depuis 6 mois a décidé de passer l'arme maven à gauche. Sans rien toucher au pom.xml, un des sous projet nous lache

Code : Sélectionner tout - Visualiser dans une fenêtre à part
[INFO] Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
Or, jusqu'à présent, nous avions toujours placé le web.xml dans les ressources du projet sans soucis (en l'occurence src/main/webapp/WEB-INF/web.xml). J'ai d'autre sous projets où ça ne pose pas de soucis. Mais pour des raisons obscures, celui-là à décider d'en poser :/

Je vous poste le 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
 
<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>
	<parent>
		<artifactId>RMI-support-jsf-parent</artifactId>
		<groupId>be.meteo.intranet.support</groupId>
		<version>1.3-SNAPSHOT</version>
	</parent>
	<groupId>be.meteo.intranet.support</groupId>
	<artifactId>testSite</artifactId>
	<version>1.3-SNAPSHOT</version>
	<packaging>war</packaging>
	<name>RMI-support-jsf-testsite</name>
	<description>RMI-support-jsf-testsite</description>
	<build>
	<sourceDirectory>src/main/java</sourceDirectory>
 
		<plugins>
			<plugin>
				<groupId>org.codehaus.cargo</groupId>
				<artifactId>cargo-maven2-plugin</artifactId>
				<version>0.3.1</version>
				<configuration>
					<wait>false</wait>
					<container>
						<containerId>tomcat5x</containerId>
						<zipUrlInstaller>
							<url>
								http://rmibeta.oma.be/apache-tomcat-5.5.16.zip
							</url>
							<installDir>
								${project.build.directory}/tomcat-install
							</installDir>
						</zipUrlInstaller>
						<output>
							${project.build.directory}/tomcat5x.log
						</output>
						<log>${project.build.directory}/cargo.log</log>
					</container>
					<configuration>
						<home>
							${project.build.directory}/tomcat5x/container
						</home>
						<properties>
							<cargo.logging>high</cargo.logging>
							<cargo.servlet.port>
								6969
							</cargo.servlet.port>
						</properties>
					</configuration>
				</configuration>
				<executions>
					<execution>
						<id>start-container</id>
						<phase>pre-integration-test</phase>
						<goals>
							<goal>start</goal>
							<goal>deploy</goal>
						</goals>
						<configuration>
							<deployer>
								<deployables>
									<deployable>
										<groupId>
										${project.groupId}
										</groupId>
										<artifactId>
										${project.artifactId}
										</artifactId>
										<type>war</type>
										<pingURL>
										http://localhost:6969/${project.artifactId}/index.html
										</pingURL>
										<pingTimeout>
										60000
										</pingTimeout>
										<properties>
										<context>
										${project.artifactId}
										</context>
										</properties>
									</deployable>
								</deployables>
							</deployer>
						</configuration>
					</execution>
					<execution>
						<id>stop-container</id>
						<phase>post-integration-test</phase>
						<goals>
							<goal>stop</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
 
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>selenium-maven-plugin</artifactId>
 
				<executions>
					<execution>
						<phase>pre-integration-test</phase>
						<goals>
							<goal>start-server</goal>
						</goals>
						<configuration>
							<background>true</background>
							<logOutput>true</logOutput>
						</configuration>
					</execution>
				</executions>
			</plugin>
 
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
 
				<configuration>
					<!--
						Skip the normal tests, we'll run them in the integration-test
						phase
					-->
					<skip>true</skip>
				</configuration>
 
				<executions>
					<execution>
						<phase>integration-test</phase>
						<goals>
							<goal>test</goal>
						</goals>
						<configuration>
							<skip>false</skip>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	<dependencies>
		<dependency>
  <groupId>be.meteo.intranet.support</groupId>
  <artifactId>RMI-support-jsf</artifactId>
  <version>1.3-SNAPSHOT</version>
			<type>jar</type>
		</dependency>
 
		<dependency>
			<groupId>org.apache.myfaces.core</groupId>
			<artifactId>myfaces-api</artifactId>
			<version>1.1.5</version>
		</dependency>
		<dependency>
			<groupId>org.apache.myfaces.core</groupId>
			<artifactId>myfaces-impl</artifactId>
			<version>1.1.5</version>
		</dependency>
		<dependency>
			<groupId>org.apache.myfaces.tomahawk</groupId>
			<artifactId>tomahawk</artifactId>
			<version>1.1.5</version>
		</dependency>
		<dependency>
			<groupId>org.apache.myfaces.tomahawk</groupId>
			<artifactId>tomahawk-sandbox</artifactId>
			<version>1.1.6</version>
		</dependency>
		<dependency>
			<groupId>com.sun.facelets</groupId>
			<artifactId>jsf-facelets</artifactId>
			<version>1.1.11</version>
		</dependency>
		<dependency>
			<groupId>org.openqa.selenium.client-drivers</groupId>
			<artifactId>selenium-java-client-driver</artifactId>
			<version>0.9.2</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
	<reporting>
		<plugins>
 
			<plugin>
				<artifactId>maven-changes-plugin</artifactId>
				<configuration>
					<xmlPath>${basedir}/xdocs/changes.xml</xmlPath>
				</configuration>
			</plugin>
		</plugins>
	</reporting>
</project>


Pour le moment j'ai rajouté
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
 
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
        </configuration>
      </plugin>
mais ça m'ennuie un peu de ne pas savoir pourquoi ça a subitement cassé. Alors si quelqu'un a une idée, je suis preneur...