Unable to pull dependencies
See original GitHub issueI wrote a simple script with a simple dependency to ‘com.opencsv:opencsv:4.6’. I get the following error message:
[kscript] Resolving dependencies...
[kscript] Resolving com.opencsv:opencsv:4.6...[kscript] [ERROR] Failed while connecting to the server.
Check the connection (http/https, port, proxy, credentials, etc.) of your maven dependency locators.
If you suspect this is a bug, you can create an issue on https://github.com/holgerbrandl/kscript
[kscript] [ERROR] Exception: org.sonatype.aether.resolution.DependencyResolutionException:
failed to load 'com.opencsv:opencsv:jar:4.6 (runtime)' from
[
"maven (https://maven.<company>.net/content/groups/public, releases+snapshots) without authentication",
"maven (https://maven.<company>.net/content/groups/public, releases+snapshots) without authentication"
] into /Users/<my_user>/.m2/repository
Is it possible to have a clearer error message on what could be causing this, the repository urls work perfectly on maven and gradle, and I can’t seem to find a reason for kscript to fail on resolving the dependencies.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:22 (2 by maintainers)
Top Results From Across the Web
Unable to resolve dependency for ':app@debug ...
23 Answers 23 · Ensure that your Android Studio does not need to go through any proxy. · Export the certificate where you...
Read more >Problem: Unable to resolve dependencies of NuGet packages
Clear the NuGet cache files. You do this in the following way: In the toolbar of Visual Studio, navigate to Tools » NuGet...
Read more >Unable to resolve dependency for ':app@debug ... - YouTube
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0.
Read more >Maven Error: Failed to collect dependencies - When trying to ...
It's possible your dependencies are corrupted in your local maven cache, you could try forcing an update of the maven dependency cache -...
Read more >Unable to resolve dependency tree error in Angular while ...
When using npm 7, Unable to resolve dependency tree errors comes up a lot because peer dependencies issues are treated as errors in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
At least the jitpack example from @mirceanis as well as the initial opencsv example by @andrealexandre work fine when using the new kotlin-scripting-based resolver which you can find/test in branch https://github.com/holgerbrandl/kscript/tree/fix239
I’m closing this ticket because it’s covering too many individual examples. Please submit the other examples (which may relate to entirely different root causes) as separate issues. Thank you for your understanding.
I had the same issue today with
//DEPS org.javamoney:moneta:1.3
! I am pretty sure it was on maven-central. At the end I have added another Maven Repository to make it work:@file:MavenRepository("releases", "https://bintray.com/javamoney/maven/")
It can be an annoying bug if you do not find a fallback repo.