JavaServer Faces 2.0 requires Dynamic Web Module 2.5 or newer..Maven Java EE Configuration
2018-03-15 14:20
776 查看
通常在用eclipse集成maven生成web项目的时候总会报如下所述错误:JavaServer Faces 2.0 requires Dynamic Web Module 2.5 or newer..Maven Java EE Configuration Problem
JavaServer Faces 2.0 can not be installed : One or more constraints have not been satisfied..line 1 Maven Java EE Configuration Problem
或者
JavaServer Faces 2.2 can not be installed : One or more constraints have not been satisfied.
JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer.
解决办法如下:首先更改web.xml的web-app标签内容,maven生成的web项目web.xml配置如下:[html] view plain copy<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
<display-name>Archetype Created Web Application</display-name>
</web-app>
手动更改为:[html] view plain copy<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">
</web-app>
然后关闭eclipse,改项目目录下的.settings\org.eclipse.wst.common.project.facet.core.xml文件,将版本改为3.0
之后重启eclipse,选择项目maven-->update project。
如果依然有问题,可以在pom.xml文件中新增如下:[html] view plain copy<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
至此问题解决,再也不用烦恼每次maven-->update project之后项目关联jre变为1.5的尴尬。
原文链接1:http://blog.csdn.net/leocnx/article/details/54292242
原文链接2:http://blog.csdn.net/xth8013/article/details/54869046
JavaServer Faces 2.0 can not be installed : One or more constraints have not been satisfied..line 1 Maven Java EE Configuration Problem
或者
JavaServer Faces 2.2 can not be installed : One or more constraints have not been satisfied.
JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer.
解决办法如下:首先更改web.xml的web-app标签内容,maven生成的web项目web.xml配置如下:[html] view plain copy<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
<display-name>Archetype Created Web Application</display-name>
</web-app>
手动更改为:[html] view plain copy<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">
</web-app>
然后关闭eclipse,改项目目录下的.settings\org.eclipse.wst.common.project.facet.core.xml文件,将版本改为3.0
之后重启eclipse,选择项目maven-->update project。
如果依然有问题,可以在pom.xml文件中新增如下:[html] view plain copy<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
至此问题解决,再也不用烦恼每次maven-->update project之后项目关联jre变为1.5的尴尬。
原文链接1:http://blog.csdn.net/leocnx/article/details/54292242
原文链接2:http://blog.csdn.net/xth8013/article/details/54869046
相关文章推荐
- JavaServer Faces 2.0 requires Dynamic Web Module 2.5 or newer..Maven Java EE Configuration
- JavaServer Faces 2.0 requires Dynamic Web Module 2.5 or newer..Maven Java EE Configuration
- eclipse Maven报错:Type Dynamic Web Module 3.0 requires Java 1.6 or newer.
- 【maven】pom.xml文件没错,但是项目有小红叉,Problems中可以看到错误:“Dynamic Web Module 3.0 requires Java 1.6 or newer.”
- maven+eclipse complier Dynamic Web Module 3.0 requires Java 1.6 or newer.
- JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer
- 解决JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer问题
- JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer
- Description Resource Path Location Type Dynamic Web Module 3.1 requires Java 1.7 or newer. Ascend line 1 Maven Java EE Configuration Problem
- JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer
- MAVEN Dynamic Web Module 3.0 requires Java 1.6 or newer.
- maven项目中的报错问题——Dynamic Web Module 3.0 requires Java 1.6 or newer.
- Maven异常:Dynamic Web Module 3.0 requires Java 1.6 or newer.
- JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer
- bug宝典之JAVA篇 Dynamic Web Module 3.0 requires Java 1.6 or newer.
- 解决Dynamic Web Module 3.0 requires Java 1.6 or newer.问题
- 彻底解决Dynamic Web Module 3.0 or 2.5 requires Java 1.6 or newer.
- Dynamic Web Module 3.1 requires Java 1.7 or newer.的错误解决方案
- Maven项目报"Dynamic Web Module 3.0 requires Java 1.6 or newer."异常的处理办法
- eclipse中报错:Dynamic Web Module 3.0 requires Java 1.6 or newer