IDEA编译报错Unknown version '8', no version setting will be given to the compiler
IDEA compiler error Unknown version '8', no version setting will be given to the compiler
我尝试在 IDEA 中 运行 jetty:run-exploded -f pom.xml
,但是在 compile.How 时出现错误 Unknown version '8', no version setting will be given to the compiler
我可以修复它吗?
error message
project structure
setting java compiler
我在 pom.xml
中发现了问题。
将 <source>
和 <target>
元素中的 8
更改为 1.8
。
正确的xml显示如下:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
我尝试在 IDEA 中 运行 jetty:run-exploded -f pom.xml
,但是在 compile.How 时出现错误 Unknown version '8', no version setting will be given to the compiler
我可以修复它吗?
error message
project structure
setting java compiler
我在 pom.xml
中发现了问题。
将 <source>
和 <target>
元素中的 8
更改为 1.8
。
正确的xml显示如下:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>