You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to resolve dependencies from a Nexus private repo #301
Both approaches do not seem to work. I get this error:
[kscript] Resolving dependencies...
[kscript] Resolving acme:acme-common:1.1.1...
[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: java.lang.RuntimeException: File 'acme:acme-common:1.1.1' not found
org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved:
...
@holgerbrandl no, it did not. I tried with kscript 2.9.3.
I had a different error (#239). Perhaps I should try with 2.9.3 and jdk8, but even if that would work, it would not be a viable solution for me.
Note that the script I wrote declares other dependencies which are public, and these are fetched ok. The problem seems to be only related to private repos.
Activity
holgerbrandl commentedon Jan 21, 2021
Did this work with kscript 2.x? The dependency resolver changed with 3.x and it could be a regresssion.
luciano-fiandesio commentedon Jan 22, 2021
@holgerbrandl no, it did not. I tried with kscript 2.9.3.
I had a different error (#239). Perhaps I should try with 2.9.3 and jdk8, but even if that would work, it would not be a viable solution for me.
Note that the script I wrote declares other dependencies which are public, and these are fetched ok. The problem seems to be only related to private repos.
holgerbrandl commentedon Apr 23, 2021
I've tried and it works by just providing the
@file:MavenRepositorannotation with my nexus credentials.System settings
Any comments/ideas which would help me reproducing the bug?