data-integrations / multi-table-plugins

Pipeline plugins that allow reading from multiple DB tables with the same source
0 stars 10 forks source link

Could not resolve dependencies io.cdap.plugin:multi-table-plugins:jar #22

Closed BhuviTheDataGuy closed 4 years ago

BhuviTheDataGuy commented 4 years ago

Steps I did

sudo apt-get install openjdk-8-jdk
sudo apt install maven

Cloned the repo and built

git clone https://github.com/data-integrations/multi-table-plugins.git
cd multi-table-plugin/
mvn  clean install

ERROR

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  31.757 s
[INFO] Finished at: 2020-04-22T13:51:02Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project multi-table-plugins: Could not resolve dependencies for project io.cdap.plugin:multi-table-plugins:jar:1.2.0-SNAPSHOT: The following artifacts could not be resolved: io.cdap.cdap:cdap-etl-api:jar:6.0.0-SNAPSHOT, io.cdap.plugin:hydrator-common:jar:2.2.0-SNAPSHOT, io.cdap.cdap:cdap-data-pipeline:jar:6.0.0-SNAPSHOT, io.cdap.cdap:hydrator-test:jar:6.0.0-SNAPSHOT, jdk.tools:jdk.tools:jar:1.6: Could not find artifact io.cdap.cdap:cdap-etl-api:jar:6.0.0-SNAPSHOT in sonatype (https://oss.sonatype.org/content/groups/public) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

I don't for most of the plugins from this repository, Im getting these kinds of error messages like Could not resolve dependencies

nitinmotgi commented 4 years ago

We have seen this when there is a proxy in between that is preventing from accessing sonatype repo. Could plz check if there is a prosy in between.

BhuviTheDataGuy commented 4 years ago

There is no proxy in between.

albertshau commented 4 years ago

this has nothing to do with a proxy, it's because the dependencies are snapshots of an old cdap version, and snapshots don't exist forever. I'll update those versions.

BhuviTheDataGuy commented 4 years ago

Oh, great thanks.

albertshau commented 4 years ago

should be fixed on the develop branch.

moritomo commented 4 years ago

I got following errors by building. This error looks same as the above error.

Though only two months have passed from fixing by Albertshau, does error like this happen often on custom plugin?

Also, does this issue affect to deployed pipelines too? It's nice if this issue affects to just only building (creating a JAR file).

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13:38 min
[INFO] Finished at: 2020-06-25T13:26:34+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project multi-table-plugins: Could not resolve dependencies for project io.cdap.plugin:multi-table-plugins:jar:1.2.0-SNAPSHOT: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path C:\Program Files\java\jdk-14.0.1/../lib/tools.jar -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
brendanstennett commented 2 years ago

+1

Build error building inside a fresh maven docker container using image: maven:3.8-openjdk-18