[ERROR] No compiler is provided in this environment. Perhaps you are running
jdk rather than jre
解决方法:在pom.xml中加入
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8<