Dynamic Web Module 3.0 request Java 1.6 or newer---One or more constraints have not been satisfied解决
2017-06-11 08:58
399 查看
概述:一个maven工程没有具体的错误,只是在Problem窗口显示如下错误,你又去看Facet发现没有错误是DynamicWeb Muodule 3.0
Java为1.8, 你再去看javaCompiler 也是1.8,是不是很纳闷呢?
Dynamic Web Module 3.0 request Java 1.6 or newer
One or more constraints have not been satisfied
最后解决方法如下
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<!-- 指定source和target的版本 -->
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
总结:感觉Maven好像没有跟java大哥通讯导致的,java大哥知道怎么编译,但没有告诉Maven小弟,那么maven小弟就是说我不知道怎么编译,除非你在pom.xml告诉我
Java为1.8, 你再去看javaCompiler 也是1.8,是不是很纳闷呢?
Dynamic Web Module 3.0 request Java 1.6 or newer
One or more constraints have not been satisfied
最后解决方法如下
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<!-- 指定source和target的版本 -->
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
总结:感觉Maven好像没有跟java大哥通讯导致的,java大哥知道怎么编译,但没有告诉Maven小弟,那么maven小弟就是说我不知道怎么编译,除非你在pom.xml告诉我
相关文章推荐
- maven创建项目后出现“One or more constraints have not been satisfied、Dynamic Web Module 3.0 requires ”错误解决办法
- One or more constraints have not been satisfied. 问题解决
- 彻底解决Dynamic Web Module 3.0 or 2.5 requires Java 1.6 or newer.
- Cannot change version of project facet Dynamic Web Module to 2.5. 和 One or more constraints have not
- 解决One or more constraints have not been satisfied问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决Maven->update project 恢复为默认jdk1.5以及One or more constraints have not been satisfied问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决maven项目One or more constraints have not been satisfied
- 解决报错:One or more constraints have not been satisfied.
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse中MAVEN项目提示One or more constraints have not been satisfied
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- 解决eclipse+MAVEN提示One or more constraints have not been satisfied.的问题
- JavaServer Faces 2.2 can not be installed : One or more constraints have not been satisfied.
- 解决“Dynamic Web Module 3.0 requires Java 1.6 or newer.”错误
- One or more constraints have not been satisfied.