欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Maven - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default

程序员文章站 2024-02-20 19:18:46
...
 <dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
</dependency> 
<!--或者下面的-->
  <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.1</version>
        <configuration>
            <fork>true</fork>
            <executable>C:\Program Files\Java\jdk-14.0.2\bin\javac.exe</executable>
            <source>1.8</source>
            <target>1.8</target>
            <compilerArgument>-XDignore.symbol.file</compilerArgument>
        </configuration>
    </plugin>

 Maven - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default

Maven - Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default

解决办法:更换当前jdk版本为项目所需jdk版本即可

相关标签: version