【问题标题】:'dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolutecom.sun:tools:jar 的“dependencies.dependency.systemPath”必须指定一个绝对值
【发布时间】:2019-10-07 07:47:27
【问题描述】:

处理 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' 必须指定绝对路径,但为 /home/tclement/plf-release-tools/tools/jdk1.7.0_67/jre/../lib/tools.jar在 org.crashub:crash.shell:1.3.2

【问题讨论】:

    标签: gradle


    【解决方案1】:

    发现在pom文件.gradle\caches\modules-2\files-2.1\org.crashub\crash.shell\1.3.2\887bc9980d3f6a39f0adc79caf5b655e3761d1a\crash.shell-1.3.2.pom系统路径是硬编码的。

    使用以下内容更新路径 `

    <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>
    

    `

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-02-28
      • 2018-11-19
      • 1970-01-01
      • 2018-12-11
      • 2020-03-06
      • 2010-12-26
      • 2015-01-14
      相关资源
      最近更新 更多