解决eclipse+MAVEN提示One or more constraints have not been satisfied 的问题
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决eclipse+MAVEN提示One or more constraints have not been satisfied 的问题相关的知识,希望对你有一定的参考价值。
问题现象:
编译工程后总该是显示下面两个错误:
One or more constraints have not been satisfied.
Deployment Assembly跟java版本不匹配
解决方案:
在pom.xml中添加下面内容,然后Maven->update project
<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>
以上是关于解决eclipse+MAVEN提示One or more constraints have not been satisfied 的问题的主要内容,如果未能解决你的问题,请参考以下文章
解决 LLVM 错误提示 may only occur zero or one times!
Could not calculate build plan :lugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of(
Maven 编译提示:spring-boot-maven-plugin:2.1.9.RELEASE or one of its dependencies could not be resolved
could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of
Eclipse 导入Maven项目,提示Project .. already exists Add a version or custom suffix using “Name template“
maven 报错maven项目update之后报错One or more constraints have not been satisfied.