Skip to content

Unable to resolve dependencies from a Nexus private repo #301

Description

@luciano-fiandesio

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions