Warm tip: This article is reproduced from serverfault.com, please click

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

发布于 2021-04-13 08:39:42

I am trying to develop my own plugin for GCP Data Fusion. So I followed the documentation, and cloned the example from https://github.com/data-integrations/example-transform.

But when building the project, I get a problem with the import of dependencies needed for testing :

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

I get the following error :

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

enter image description here

What can I do to solve this problem and test my plugin ?

Questioner
Nakeuh
Viewed
0
Venudhar Ravishankar 2021-04-15 03:15:53

CDAP should run in Java version 8. So once you download JDK, set the Java home like

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

and then try running your Maven command again.