JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer

Description	Resource	Path	Location	Type
JavaServer Faces 2.2 can not be installed : One or more constraints have not been satisfied.	wxplatform		line 1	Maven Java EE Configuration Problem
Description	Resource	Path	Location	Type
JavaServer Faces 2.2 requires Dynamic Web Module 2.5 or newer.	wxplatform		line 1	Maven Java EE Configuration Problem

调查 关键字:j2ee 、 javaee

<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<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"

发现

http://java.sun.com/xml/ns/j2ee

下有

web-app_2_4.xsd

◇◆◇◆◇◆◇◆◇◆◇◆◇◆◇◆◇◆◇◆◇◆◇◆◇◆◇◆◇◆

http://java.sun.com/xml/ns/javaee

下有

web-app_2_5.xsd

web-app_3_0.xsd

web-app_3_1.xsd

解决办法:

第一步:替换<web-app> 为2.5 、3.0 或者 3.1

第二步:强行删除报错信息

PS:

……

j2ee 1.4

javaee 5

……

原文地址:https://www.cnblogs.com/zno2/p/5301759.html