Intellij IDEA maven项目编码目标版本过时解决方

2018-10-28  本文已影响0人  不省油的匹诺曹

该问题就是编译的目标java版本过低导致的,解决方案是在pom.xml文件中,修改为:

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
    <dependency>
        <groupId>org.eclipse.jdt</groupId>
        <artifactId>org.eclipse.jdt.core</artifactId>
        <version>3.10.0</version>
    </dependency>
</dependencies>
上一篇 下一篇

猜你喜欢

热点阅读