Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
来源:互联网 发布:阿里妈妈淘宝联盟 编辑:程序博客网 时间:2024/06/08 06:05
转载地址:http://blog.csdn.net/defonds/article/details/47974269
Eclipse Maven 开发一个 jee 项目时,编译时遇到以下错误:
DescriptionResource PathLocation Type
Dynamic Web Module 3.0 requires Java 1.6 or newer. bdp line 1 Maven Java EE Configuration Problem
Description ResourcePath LocationType
One or more constraints have not been satisfied. bdp line 1 Maven Java EE Configuration Problem
如图:
但是 Eclipse 明明已经将编译级别设置为 1.7:
这是由于你的 Maven 编译级别是 jdk1.5 或以下,而你导入了 jdk1.6 以上的依赖包:查看 Eclipse 的 Navigator 视图下该项目的 .classpath 文件:
解决办法:
使用 maven-compiler-plugin 将 maven 编译级别改为 jdk1.6 以上:
参考资料
- http://stackoverflow.com/questions/12857535/eclipse-maven-update-causes-corruption-of-jvm-setting
- http://stackoverflow.com/questions/5783338/what-is-the-use-of-org-eclipse-jdt-launching-jre-container-in-eclipse
阅读全文
0 0
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse jdk1.7 Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案 (特别注意))
- Eclipse/maven编译报错/“Dynamic Web Module 3.0 requires Java 1.6 or newer.”
- Eclipse 用Maven 编译错误 Dynamic Web Module 3.1 requires Java 1.7 or newer
- MAVEN Dynamic Web Module 3.0 requires Java 1.6 or newer.
- Dynamic Web Module 3.0 requires Java 1.6 or newer.”错误 .
- eclipse Maven报错:Type 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.”错误
- 解决maven项目出现Dynamic Web Module 3.0 requires Java 1.6 or newer.错误
- 用谷歌封装号的api增删改查
- Redis入门
- java内存模型与线程
- 人工智能在医疗产业的五大应用场景及典型案例
- 字符串最后一个单词的长度
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- redis常见命令及常用配置
- JavaScript运行原理解析
- 07.表单
- 机器学习 工作日记
- Error:Error converting bytecode to dex:Cause:c
- 做一个爱写博客的人
- Java程序员须知的七个日志管理工具
- 内存溢出&内存泄漏