I want to checkout sonar, so I added the following snippet to my pom.xml the dependency part was taken from http://maven.apache.org/general.html#tools-jar-dependency
<
If your JAVA_HOME points to your jdk (e.g./usr/lib/jvm/jdk1.6.0_33
), your tools.jar configuration (${java.home}/../lib/tools.jar
) indicates that there should be a tools jar with the following path: /usr/lib/jvm/lib/tools.jar
.
If you change the tools jar path to ${java.home}/lib/tools.jar and verify that in your JAVA_HOME/lib
there is the tools.jar file, it should work.
There you can find the related jira.