What is wrong with my Maven Config?

前端 未结 3 489
你的背包
你的背包 2021-01-25 02:10

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

<         


        
3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-25 02:59

    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.

提交回复
热议问题