Problem Description: The MAVEN project appears with the following error
JavaServer Faces 2.0 requires Dynamic Web Module 2.5 or newer. Maven Java EE Configuration problem
JavaServer Faces 2.0 can not is installed:one or more constraints has not been satisfied. Line 1 Maven Java EE Configuration problem
Solution:
First, add the Web. xml file under WebApp
1 <? XML version= "1.0" encoding= "UTF-8" ?> 2 <!-- <! DOCTYPE Web-app3 public "-//sun Microsystems, INC.//DTD Web Application 2.3//en"4 c12> "HTTP://JAVA.SUN.COM/DTD/WEB-APP_2_3.DTD" >
Replaced by
1 <Web-appxmlns= "Http://java.sun.com/xml/ns/javaee"2 Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"3 xsi:schemalocation= "Http://java.sun.com/xml/ns/javaee4 http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd "5 version= "3.0">6 <Display-name>Archetype Created Web Application</Display-name>7 </Web-app>
Then, turn off eclipse, change the. Settings\org.eclipse.wst.common.project.facet.core.xml under Project, change the version to 3.0, and it will be <installed facet= " Jst.web "version=" 3.0 "/>, and then start Eclipse.
Finally, in the problems view error prompt to select the Quick Fix, and then follow the prompts to determine the OK; or, right-click the item->maven->update Project
=====================
At this point, the problem is generally resolved. If this does not work, try adding the following code to the Pom.xml:
1 <Build>2 <Finalname>Chm</Finalname>3 <Plugins>4 <plugin>5 <Artifactid>Maven-compiler-plugin</Artifactid>6 <version>2.0.2</version>7 <Configuration>8 <Source>1.6</Source>9 <Target>1.6</Target>Ten </Configuration> One </plugin> A </Plugins> - </Build>
JavaServer Faces 2.0 can installed solution