Hello, I'm trying to pull dependencies from a private repo using kscript 3.0.2.
I use the approach specified in the documentation:
@file:MavenRepository("acme", "https://nexus.mycompany.com/repository/maven-releases" , user="myuser", password="mypasswrd" )
@file:DependsOn("acme:acme-common:1.1.1")
or
@file:MavenRepository("acme", "https://nexus.mycompany.com/repository/maven-releases" )
@file:DependsOn("acme:acme-common:1.1.1")
and using a settings.xml file in my .m2 folder:
<?xml version="1.0"?>
<settings>
<servers>
<server>
<id>acme</id>
<username>myuser</username>
<password>mypassword</password>
</server>
</servers>
</settings>
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:
...
Any idea?
Hello, I'm trying to pull dependencies from a private repo using kscript 3.0.2.
I use the approach specified in the documentation:
or
and using a
settings.xmlfile in my .m2 folder:Both approaches do not seem to work. I get this error:
Any idea?