您的位置:首页 > 大数据 > 人工智能

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>

这句话所导致的,添加即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: