You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well (com.mysema.maven:apt-maven-plugin:1.1.3:process:default:generate-sources)
按照网上大部分文章说的
1.eclipse : window---preferences ---java---installed JREs
2.已经修改eclipse.ini文件
但还是一直报错
001.png
查了一整天怎样解决,最后在stackoverflow上找到解决的方法
将{JAVA_HOME}/lib/tools.jar 复制到 jre/lib 目录下