Exception:CompilerException: tools.jar not found: jre7\..\lib\tools.jar
Condition: This exception occurs when using Maven to package the project, indicating that tools are not found.
Solution: Make sure that the jre in your eclipse in Preferences--"java--"installed JREs points to JDK instead of JRE, tools.jar is only available in JDK. Of course, you can also add the lib directory of jdk to the environment variable classpath.