Error in creating a Maven project

Asked

Viewed 370 times

1

As soon as I create a Maven project with the "War" Packaging, it gives the following error :

 Description Resource Path Location Type web.xml is missing and <failOnMissingWebXml> is set to true pom.xml

I’m using the Spring STE Ide

Below is my pom.xml

 <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>
   <groupId>primefaces</groupId>
   <artifactId>primefaces</artifactId>
   <version>0.0.1-SNAPSHOT</version>
   <packaging>war</packaging>
   <name>test prime</name>
   <description>testar primefaces responsive layout</description>
 </project>
  • You’re wearing Eclipse right?

1 answer

1

Error says that is missing the web.xml. Create the Folder WEB-INF inside webapp and then create the file web.xml.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.