报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1
解决方案:
pom.xml添加
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>