Error in Course Design primeFaces AlgaWorks

1

I am doing a PrimeFaces Workshop by the company AlgaWorks , but this error is appearing in the project in the pom.xml file.

Thecompletecodeforthefilepom.xml

projectxmlns="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>com.cursoprimefaces</groupId>
  <artifactId>iniciando-primefaces</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>war</packaging>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
    <dependency>
        <groupId>org.glassfish</groupId>
        <artifactId>javax.faces</artifactId>
        <version>2.3.0-m03</version>
        <scope>compile</scope>
    </dependency>

    <dependency>
            <groupId>org.primefaces</groupId>  
            <artifactId>primefaces</artifactId>  
            <version>5.1</version>  
            <scope>compile</scope>
    </dependency>
  </dependencies>

  <build>
      <plugins>
          <plugin>
             <artifactId>maven-compiler-plugin</artifactId>
                  <version>3.1</version>
                       <configuration>
                          <source>1.8</source>
                          <target>1.8</target>
                       </configuration>
         </plugin>
      </plugins>
  </build>
</project>
    
asked by anonymous 27.07.2015 / 20:51

2 answers

2

This error web.xml not found is a maven-war-plugin error, is there a web.xml file? If it does not exist and should not exist, configure the plugin for

<failOnMissingWebXml>false</failOnMissingWebXml>

Adding this within the project - > plugins:

<plugin>
    <artifactId>maven-war-plugin</artifactId>
    <version>2.6</version>
    <configuration>
        <filteringDeploymentDescriptors>false</filteringDeploymentDescriptors>
    </configuration>
</plugin>

Note: just check the version of your plugin

    
27.07.2015 / 21:40
0

If the error occurs in the war you should right click on 1 - Project explorer 2 - right button on deplyment descriptor 3 - generate deployment descriptor stub

Create an xml file that corrects the error, if it persists, re-create the file.

    
26.05.2016 / 04:31