-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use-releases not updating dependencies from internal repository #559
Comments
Please try with the latest plugin version |
Hello, Thanks, |
Hello, I experiencing same issue, and found reason why it not working with gitlab maven repository.
And after further investigation found out that request to gitlab return status 404 in DefaultRepositoryMetadataManager class (that part of maven). This happens because of specific authentication in gitlab repo (it use Private-Token http header, but i don't see it in request) and wagonManager (in DefaultRepositoryMetadataManager) can't handle it. But also i found out that plugin uses deprecated ArtifactMetadataSource class, i think we have problems because of it. I can make a patch but i don't know which class to use instead of deprecated one, can some one give me advice ?. |
My investigation also led me to the ArtifactMetadataSource class (though, not sure about the rest of what you described). What I noticed was that when using the gitlab repo, my local repo filesystem has differences with regards to maven-metadata.xml files. Artifacts downloaded from different repos were containing one more maven-metadata.xml file on the artifact folder level (not version folders ). Further debugging showed that ArtifactMetadataSource is searching for exactly the same file in order to find the available versions. When not found it fails. |
Looks like the new implementation is |
|
Can anybody confirm that was resolved or still exists? |
I assume that was fixed. |
For future folks searching this same issue with GitLab private repos; this issue still existed at least as recently as plugin version 2.10.0, but it is resolved in 2.16.0 (perhaps earlier). |
I have a project with a dependency on another internal project in the
pom.xml
:and a custom repository from which it is resolved:
and the dependency can be resolved:
but, versions cannot find it:
Why? Perhaps it's related to #529?
The text was updated successfully, but these errors were encountered: