且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Intellij Maven项目致命错误编译:无效标志:--release

更新时间:2022-02-13 01:42:01

在您的pom.xml文件中,只需从maven-compiler-plugin配置中删除标签<release>8</release>:

In your pom.xml file, simply remove the tag <release>8</release> from your maven-compiler-plugin configuration:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.7.0</version>
    <configuration>
        <source>1.8</source>
        <target>1.8</target>
        <verbose>true</verbose>
    </configuration>
</plugin>