【分享】Failed to execute goal org.apache.,maven.plugins:maven-compiler-plugin:3.8.1问题

前言:

小伙伴在使用Mvn编译的时候,一直报“Failed to execute goal org.apache.,maven.plugins:maven-compiler-plugin:3.8.1”,后来同组的程序媛解决了。

解决方案,pom中添加如下即可,注意 source/target 要改成你的jdk版本一致。

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

猜你喜欢

转载自blog.csdn.net/qq_26834611/article/details/114363685
今日推荐