Skip to content

Commit e98cc8a

Browse files
saukedia1saukedia1
authored andcommitted
BAEL-2011 Eclipse error: web.xml is missing and <failOnMissingWebXml> is
set to true
1 parent 6258bad commit e98cc8a

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

  • maven/maven-war-plugin-property
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>com.baeldung</groupId>
6+
<artifactId>maven-war-plugin-property</artifactId>
7+
<version>0.0.1-SNAPSHOT</version>
8+
<packaging>war</packaging>
9+
<name>maven-war-plugin-property</name>
10+
11+
<!-- Set failOnMissingWebXml as false in properties section -->
12+
<properties>
13+
<failOnMissingWebXml>false</failOnMissingWebXml>
14+
</properties>
15+
16+
<build>
17+
<plugins>
18+
<plugin>
19+
<artifactId>maven-war-plugin</artifactId>
20+
<!-- Update maven war plugin to 3.1.0 or higher -->
21+
<version>3.1.0</version>
22+
<configuration>
23+
<!-- Set failOnMissingWebXml configuration for maven war plugin -->
24+
<failOnMissingWebXml>false</failOnMissingWebXml>
25+
</configuration>
26+
</plugin>
27+
</plugins>
28+
</build>
29+
</project>

0 commit comments

Comments
 (0)