Gradle ';dependencies.dependency.systemPath';对于com.sun:tools:jar必须指定一个绝对值

Gradle ';dependencies.dependency.systemPath';对于com.sun:tools:jar必须指定一个绝对值,gradle,Gradle,处理C:\Users\asker.gradle\caches\modules-2\files-2.1\org.crashub\crash.shell\1.3.2\887bc9980d3f6a39f0adc79caf5b655e3761d1a\crash.shell-1.3.2.pom失败: com.sun:tools:jar的“dependencies.dependency.systemPath”必须指定一个绝对路径,但在org.crashub:crash.shell:1.3.2的pom文件中,

处理C:\Users\asker.gradle\caches\modules-2\files-2.1\org.crashub\crash.shell\1.3.2\887bc9980d3f6a39f0adc79caf5b655e3761d1a\crash.shell-1.3.2.pom失败:
com.sun:tools:jar的“dependencies.dependency.systemPath”必须指定一个绝对路径,但在org.crashub:crash.shell:1.3.2

的pom文件中,它是/home/tclement/plf release tools/tools/jdk1.7.0_67/jre/./lib/tools.jar.gradle\caches\modules-2\files-2.1\org.crashub\crash.shell\1.3.2\887bc9980d3f6a39f0adc79caf5b655e3761d1a\crash.shell-1.3.2.pom系统路径已硬编码

使用以下命令更新路径 `


com.sun
工具
1.6
系统
${java.home}/lib/tools.jar
真的
`

<dependency>
    <groupId>com.sun</groupId>
    <artifactId>tools</artifactId>
    <version>1.6</version>
    <scope>system</scope>
    <systemPath>${java.home}/lib/tools.jar</systemPath>
    <optional>true</optional>
</dependency>