maven ssm项目报错javaserver faces 2.2 can not been 。。。
来源:互联网 发布:网络吃鸡是什么意思啊 编辑:程序博客网 时间:2024/06/08 01:04
这种情况基本是自己更改了service的版本,但是又没有更改完全:
1、首先wex.xml头部更改如下:
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"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>SSMDemo</display-name></web-app>2、然后,关闭Eclipse,改项目下的.settings\org.eclipse.wst.common.project.facet.core.xml,将 <installed facet="jst.web" version="3.0"/>部分版本改成为3.0保存 ,再启动Eclipse.
3、项目内执行快捷键:alt+f5 (或者,右键项目->Maven->Update Project)
如果还不行再执行以下方法中的一种:
方法1:可以在pom.xml 的project标签内添加一下内容,然后alt+f5 更新项目即可。
<profiles> <profile> <id>jdk-1.8</id> <!-- 另外一种激活方式 --> <activation> <activeByDefault>true</activeByDefault> <jdk>1.8</jdk> </activation> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target><maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion> </properties> </profile></profiles>
方法2:或者在build标签内添加一下内容,然后alt+f5 更新项目即可。
<plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins>
阅读全文
0 0
- maven ssm项目报错javaserver faces 2.2 can not been 。。。
- 项目报错“JavaServer Faces 2.2 can not be installed : One or more constraints”等一系列问题
- 项目报错“JavaServer Faces 2.2 can not be installed : One or more constraints”等一系列问题
- 解决maven3.5.0项目报错“JavaServer Faces 2.2 can not be installed : One or more constraints”问题
- JavaServer Faces 2.2 can not be installed : One or more constraints have not been satisfied.
- JavaServer Faces 2.2 can not be installed
- JavaServer Faces 2.0 can not be installed
- JavaServer Faces 2.0 can not be installed解决方案
- JavaServer Faces 2.0 can not be installed解决方案
- JavaServer Faces 2.0 can not be installed解决方案
- JavaServer Faces 2.0 can not be installed解决方案
- Mastering JavaServer Faces 2.2
- 使用maven整合ssm报错:JAX-RS (REST Web Services) 2.0 can not be installed
- javaserver faces
- 导入Myeclipse导入maven项目报DescriptionResourcePathLocationType One or more constraints have not been s
- ssm整合maven项目启动报错、架包冲突
- SSM框架下的Maven项目引用报错
- JSF(JavaServer Faces) 介绍
- JDBC基础
- nginx-配置location块
- Linux学习(四)
- react-native 填坑之旅 数据库存储 realm
- linux安装node/npm
- maven ssm项目报错javaserver faces 2.2 can not been 。。。
- 编写有迭代器的链表(C++专用)
- 基于矢量切片的电子地图配图(七)配置水系
- 1799:最短前缀( 4.6算法之贪心)
- crf 的视察 (二分答案)
- C语言位运算妙用
- 进制均值
- Go内存对齐
- 基于矢量切片的电子地图配图(八)配置兴趣点