apache / maven-mvnd

Apache Maven Daemon
https://maven.apache.org/
Apache License 2.0
2.9k stars 207 forks source link

Cannot connect to private repositories #415

Open OPeyrusse opened 3 years ago

OPeyrusse commented 3 years ago

My maven configuration contains private repositories, to which I connect passing credentials as follow:

<settings>
    ...
    <repository>
        <id>some-id</id>
        ...
    </repository>
    <server>
        <id>some-id</id>
        <username>...</username>
        <password>...</password>
    </server>
</settings>

With such a configuration, I regularly see 403 errors when trying to access artifacts only available on those repositories. When using a standard maven, I don't have any issue.

I would gladly try to reproduce and share but I don't know any private repo with open credentials, and I don't want to share my own :)

gnodet commented 2 years ago

Maybe using some docker image based on Apache Archiva could help setting up an integration test / reproducer ?

OPeyrusse commented 2 years ago

Maybe using some docker image based on Apache Archiva could help setting up an integration test / reproducer ?

Good idea. I was not aware of this project (but I confess I did not make a lot of research). I will try to set up something and report here if I see an issue.