Problema na criação de um PROJETO MAVEN

segue abeixo meu arquivo pom.xml

4.0.0 br.com.Venda Venda 1.0 war org.apache.maven.plugins maven-compiler-plugin 3.1 1.8 1.8 maven-resources-plugin 2.7 UTF-8

meu arquivo web.xml

<?xml version="1.0" encoding="UTF-8"?>

Venda

Faces Servlet
javax.faces.webapp.FacesServlet
1


Faces Servlet
/faces/*

o erro do console

[INFO] Scanning for projects…
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Venda 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — maven-resources-plugin:2.7:resources (default-resources) @ Venda —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ Venda —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-resources-plugin:2.7:testResources (default-testResources) @ Venda —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]
[INFO] — maven-compiler-plugin:3.1:testCompile (default-testCompile) @ Venda —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-surefire-plugin:2.12.4:test (default-test) @ Venda —
[INFO]
[INFO] — maven-war-plugin:2.2:war (default-war) @ Venda —
[INFO] Packaging webapp
[INFO] Assembling webapp [Venda] in [C:\Sistema\Workspace\Venda\target\Venda-1.0]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\Sistema\Workspace\Venda\src\main\webapp]
[INFO] Webapp assembled in [21 msecs]
[INFO] Building war: C:\Sistema\Workspace\Venda\target\Venda-1.0.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.967 s
[INFO] Finished at: 2018-11-02T16:39:07-03:00
[INFO] Final Memory: 13M/111M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project Venda: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

o erro aponta que esta faltado o arquivo web.xml no seu projeto .

Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project Venda: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [Help 1]

1 curtida

Resolvido