idea中maven报错:无效的目标发行版: 1.8

 

1.pom.xml中修改版本

<maven.compiler.source>1.7</maven.compiler.source><br><maven.compiler.target>1.7</maven.compiler.target>

2.File->Settings...-->(搜索)Java Compiler:修改版本

3.Project Structure-->Project-->SDKs:修改jdk

4.Project Structure-->Modules:修改Language level

 

来源:https://www.cnblogs.com/wanshi1989/p/5830910.html

posted on 2017-11-30 16:44  imsoft  阅读(2343)  评论(0编辑  收藏  举报

导航