maven错误解决一:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) 解决方法是将 jre的目录在 window->Preferences 里修改java installed里的jre目录改为jdk目录即可。 原因是在jre目录下不存在tools.jar.