更新时间:2022-02-02 22:19:31
我刚刚弄清楚了.我还需要调整Maven-compiler-plugin中的版本.我正在使用3.8.0版.我需要更改此值:
I just figured it out. I also needed to adjust the version in the maven-compiler-plugin. I'm using version 3.8.0. I needed to change this value:
<release>10</release>
在这里找到它:
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>10</release> <!-- This was the problem. -->
</configuration>
...