GCP 数据融合:自定义插件测试:找不到工件 jdk.tools:jdk.tools:jar:1.6

GCP Data Fusion : Custom Plugin Testing: Could not find artifact jdk.tools:jdk.tools:jar:1.6

我正在尝试开发自己的 GCP 数据融合插件。所以我按照文档进行操作,并从 https://github.com/data-integrations/example-transform.

克隆了示例

但是在构建项目时,我在导入测试所需的依赖项时遇到问题:

    <dependency>
        <groupId>io.cdap.cdap</groupId>
        <artifactId>hydrator-test</artifactId>
        <version>${cdap.version}</version>
        <scope>test</scope>
    </dependency>

我收到以下错误:

[ERROR] Failed to execute goal on project plugins: Could not resolve dependencies for project org.example:plugins:jar:1.0-SNAPSHOT: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path /usr/lib/jvm/java-11-openjdk-amd64/../lib/tools.jar -> [Help 1]

我该怎么做才能解决这个问题并测试我的插件?

CDAP 应该 运行 在 Java 版本 8 中。所以一旦你下载 JDK,设置 Java 主页为

export JAVA_HOME=/usr/local/buildtools/java/jdk8/

然后再次尝试 运行使用您的 Maven 命令。