Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
BhuviTheDataGuy opened this issue Apr 22, 2020 · 7 comments

Comments

@BhuviTheDataGuy
Copy link

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

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
Copy link
Author

There is no proxy in between.

@albertshau
Copy link
Collaborator

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
Copy link
Author

Oh, great thanks.

@albertshau
Copy link
Collaborator

should be fixed on the develop branch.

@moritomo
Copy link

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

+1

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants