Type One or more constraints have not been satisfied.
2017-03-01 09:10
441 查看
maven web
用maven搭建web项目,遇到红叉报错 'Type One or more constraints have not been satisfied.',同时还有错误‘Cannot
change version of project facet Dynamic Web Module to 2.5’;
在解决上面的错误的是时候,网上搜索绝大多数说是用maven 的java编译插件,但是我已经用了这个插件,还是有问题,从错误描述来看,推测是maven插件的参数配置不全
造成的,但是我按照别人的配置方法还是解决不了问题,直接查询到这个链接‘http://bbs.csdn.net/topics/390728971’ 上面的解决办法http://www.cnblogs.com/yezhenhan/archive/2011/10/17/2215279.html
我试着先解决web版本的问题,修改了org.eclipse.wst.common.project.facet.core.xml文件后,两个问题都解决了;
这个文件在工程项目的隐藏目录里 .settings 文件夹
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v5.5"/>
<fixed facet="jst.web"/>
<fixed facet="jst.java"/>
<installed facet="jst.java" version="5.0"/> <!--定义java编译器的版本-->
<installed facet="jst.web" version="2.5"/> <!--定义web版本 -->
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
用maven搭建web项目,遇到红叉报错 'Type One or more constraints have not been satisfied.',同时还有错误‘Cannot
change version of project facet Dynamic Web Module to 2.5’;
在解决上面的错误的是时候,网上搜索绝大多数说是用maven 的java编译插件,但是我已经用了这个插件,还是有问题,从错误描述来看,推测是maven插件的参数配置不全
造成的,但是我按照别人的配置方法还是解决不了问题,直接查询到这个链接‘http://bbs.csdn.net/topics/390728971’ 上面的解决办法http://www.cnblogs.com/yezhenhan/archive/2011/10/17/2215279.html
我试着先解决web版本的问题,修改了org.eclipse.wst.common.project.facet.core.xml文件后,两个问题都解决了;
这个文件在工程项目的隐藏目录里 .settings 文件夹
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v5.5"/>
<fixed facet="jst.web"/>
<fixed facet="jst.java"/>
<installed facet="jst.java" version="5.0"/> <!--定义java编译器的版本-->
<installed facet="jst.web" version="2.5"/> <!--定义web版本 -->
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
相关文章推荐
- maven - Type One or more constraints have not been satisfied
- Type One or more constraints have not been satisfied
- Maven错误:One or more constraints have not been satisfied
- One or more constraints have not been satisfied.
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- one or more constraints have not been satisfied
- maven创建项目后出现“One or more constraints have not been satisfied、Dynamic Web Module 3.0 requires ”错误解决办法
- 解决Maven->update project 恢复为默认jdk1.5以及One or more constraints have not been satisfied问题
- One or more constraints have not been satisfied
- JAX-RS(REST Web Services)2.0 can not be installed: One or more constraints have not been satisfied
- One or more constraints have not been satisfied.(SAPUI5+Eclipse)
- maven项目,提示One or more constraints have not been satisfied
- 解决One or more constraints have not been satisfied问题
- 解决报错:One or more constraints have not been satisfied.
- 解决maven项目One or more constraints have not been satisfied
- One or more constraints have not been satisfied.
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- One or more constraints have not been satisfied.
- 解决eclipse中MAVEN项目提示One or more constraints have not been satisfied