Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project uec-receiver-api: Compilation failure
Unable to locate the Javac Compiler in:
C:\Program Files\Java\jre1.8.0_66\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
上面报错的地址其实是C:\Program Files\Java\lib\tools.jar
也就是在这个位置找不到tools.jar包,所以我们只需要创建lib文件夹
拷贝tools.jar包
最后显示的是这样的
至此可以编译了!