java - Why I got errors in a brand new webapp-javaee7 project -


i created project in eclipse keppler java ee developers selecting file->new->maven project-> webapp-javaee7 archetype. before writing single line of code got errors:

resource '/test/src/main/webapp/web-inf/web.xml' not exist.

and:

plugin execution not covered lifecycle configuration: org.apache.maven.plugins:maven-dependency-plugin:2.6:copy (execution: default, phase: validate) pom.xml /test line 53 maven project build lifecycle mapping problem

enter image description here

why web.xml not created? why plugin execution not covered lifecycle configuration?

i have clean installation of eclipse , latest m2eclipse plugin.

according oracle docs web.xml deployment descriptor, web.xml no longer requirement, can use java ee annotations instead:

from web.xml deployment descriptor elements:

with java ee annotations, standard web.xml deployment descriptor optional. according servlet 2.5 specification, annotations can defined on web components, such servlets, filters, listeners, , tag handlers. annotations used declare dependencies on external resources. see weblogic annotation web components.

so, can safely ignore

resource '/test/src/main/webapp/web-inf/web.xml' not exist

error.

however can create web.xml file right clicking on project , selecting java ee tools -> generate deployment descriptor stub

to fix

plugin execution not covered lifecycle configuration

error, need install m2e connector maven-dependency-plugin.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -