错误一:No compiler is provided in this environment
如下配置
错误二:
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21
pom配置
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version> #此处自己报错的版本
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>