one or more constraints have not been satisfied
2016-04-14 16:47
369 查看
maven项目倒入后problem提示:one or more constraints have not been satisfied。
1、有可能是你的jdk版的过低了。如下
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
你的pom.xml文件里的maven-compiler-plugin设置编译是1.6 ,但项目中的编译可能是1.7的,所有统一一下。
2、在你的pom.xml文件下没有添加:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
这句话所导致的,添加即可。
1、有可能是你的jdk版的过低了。如下
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
你的pom.xml文件里的maven-compiler-plugin设置编译是1.6 ,但项目中的编译可能是1.7的,所有统一一下。
2、在你的pom.xml文件下没有添加:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
这句话所导致的,添加即可。
相关文章推荐
- R语言的高质量图形渲染库Cairo(转)
- maven install时报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
- 172. Factorial Trailing Zeroes
- MIT 6.828 学习笔记2 阅读main.c
- 错误:Failed to locate or generate matching signing assets
- Syntax error, parameterized types are only available if source level is 1.5
- Handler.sendMessage 与 Handler.obtainMessage.sendToTarget比较
- 11.2.0.1升级到11.2.0.4报错之一:UtilSession failed: Patch 9413827
- wait()和notify()/notifyAll()
- ICPCCamp 2016 Day 1 - B All Pair Shortest Path (bitset)
- 70. Climbing Stairs
- Aizu 0005 GCD and LCM【辗转相除法】
- 70. Climbing Stairs
- Aizu 2224 Save your cats【最大生成树】
- MDK 5.10 -- Reading one or more Pack descriptions failed
- VS2008或以上版本的ActiveX控件的测试工具(ActiveX Control Test Container)编译记录
- CDISC SDTM SV domain 学习笔记
- SSH出现Host key verification failed
- 了解点OpenAI及深度学习研究前沿
- 【RAID】基本结构