Dynamic Web Module 3.0 request Java 1.6 or newer---One or more constraints have not been satisfied解决

来源:互联网 发布:sql select 字段赋值 编辑:程序博客网 时间:2024/06/10 17:03

概述:一个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告诉我

阅读全文
0 0
原创粉丝点击