Maven错误:One or more constraints have not been satisfied
来源:互联网 发布:张学良戒毒的故事知乎 编辑:程序博客网 时间:2024/05/20 09:21
错误说明:eclipse+maven下java Resoures资源文件夹出现小红叉。
错误提示内容:One or more constraints have not been satisfied,而且一用tomcat运行一直报加载组建失败,用jetty运行一直报无法加载spring监听,等一堆错误!
错误原因: Deployment Assembly跟java版本不匹配,即maven默认编译版本与使用的jdk不匹配。
解决方案:在pom中配置如下内容:
<!-- 指定maven编译方式为jdk1.7版本 --> <profiles> <profile> <id>jdk-1.7</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.7</jdk> </activation> <properties> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion> </properties> </profile> </profiles>
配置好以后,重新maven update Project下就行了。
阅读全文
1 0
- Maven错误:One or more constraints have not been satisfied
- maven - Type One or more constraints have not been satisfied
- one or more constraints have not been satisfied
- One or more constraints have not been satisfied.(SAPUI5+Eclipse)
- one or more constraints have not been satisfied
- One or more constraints have not been satisfied.
- Type One or more constraints have not been satisfied
- One or more constraints have not been satisfied.
- One or more constraints have not been satisfied.
- Type One or more constraints have not been satisfied.
- One or more constraints have not been satisfied.
- One or more constraints have not been satisfied. 问题解决
- 解决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、Dynamic Web Module 3.0 requires ”错误解决办法
- 解决eclipse中MAVEN项目提示One or more constraints have not been satisfied
- 新手使用Maven常犯错误One or more constraints have not been satisfied
- 使用eclipse提交到GetHub
- 关于位运算
- RecyclerView 左滑(仿QQ左滑删除)
- 漫画算法:什么是 B 树?
- Oracle基础知识1 : 单表查询1
- Maven错误:One or more constraints have not been satisfied
- CPD配准算法-matlab工具包的使用
- python所有的标准异常类
- [LeetCode] Longest Common Prefix
- Android性能测试Monkey+Python
- HDU 6000 Wash【优先队列优化贪心】【最大值+最小值】
- Java transient
- PAT 1051
- 详解大端模式和小端模式