Robert Justin
Robert Justin

Reputation: 83

Failed to execute : org.apache.maven.plugins:maven-compiler-plugin

I creating a web project using maven, java 7, String framework, hibernate, JPA and restful service in Eclipse. I changed the jre library in Java Build Path and also change the compiler.

but now i got error

Cannot change version of project facet Dynamic Web Module to 3.0.

thanks in advance !!!

Upvotes: 1

Views: 166

Answers (2)

Anshul Sharma
Anshul Sharma

Reputation: 3512

you need to change the version into web.xml you need change some configuration you can find it below:

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
          http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
    version="3.0">
    <display-name>Servlet 3.0 Web Application</display-name>
</web-app>

then Update Project.

Upvotes: 0

Mars Gao
Mars Gao

Reputation: 69

The solution given by @enkor may work for you (Question is the same):

Cannot change version of project facet Dynamic Web Module to 3.0?

Upvotes: 1

Related Questions