maven出现致命错误 to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
看了看项目需要配置jdk的地方,都没问题,往pom.xml里面添加:
<build>
<plugins>
<!-- 增加maven编译插件,设置编译版本,防止刷新后变为jdk5-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
就ok了