Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
This repository was archived by the owner on May 13, 2025. It is now read-only.

Problems resolving dependencies in private repository #86

@jnehring

Description

@jnehring

Hey there,

this seems to be a great plugin but I have a problem using it. Im trying to use it with a private organization account. I have two project A and B. Project A is deployed via github maven on the server, that works fine. Project B has a dependency on project A. Therefore I have configured the GitHub repository in project B pom.xml like this

<repository>
    <id>github</id>
    <url>https://raw.githubusercontent.com/ORGANIZATION/REPOSITORY/BRANCH</url>
    <snapshots>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
    </snapshots>
</repository>

my maven settings.xml has the credentials to this repo. I get the following error when trying to do mvn install on project B (I removed hints to my project from the URLs):

Downloading: https://raw.githubusercontent.com/.../0.0.1-SNAPSHOT/maven-metadata.xml
Downloading: https://raw.githubusercontent.com/...0.0.1-SNAPSHOT.pom
[WARNING] The POM for ...0.0.1-SNAPSHOT is missing, no dependency information available
Downloading: https://raw.githubusercontent.com/...0.0.1-SNAPSHOT/conversion-0.0.1-SNAPSHOT.jar

and then

[ERROR] Failed to execute goal on project Broker: Could not resolve dependencies
 for project ...:0.0.1-Snapshot: Could not find artifact ...:jar:0.0.1-SNAPSHOT in github 
(https://raw.githubusercontent.com/...) -> [Help 1]

When I check the URLs that maven tries to download I can see that the required access token / credentials are not attached to the URL.

So my question: How can I use this plugin together with a private repository?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions