-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Maven dependency not being update from a private repo #2291
Comments
It looks like this issue has been open for a while and we’ve made a bunch of improvements to Dependabot since, including better support for private registries. Is this still happening, or has this problem been resolved and can we close this issue? |
hey. cant test at the moment as i dont work anymore on that project but i will simulate similar configuration. |
I have encountered an issue with private maven repo, where it wouldn't work due to how the repository behaves and how dependabot-core tries to resolve new versions. For example repo I'm not sure if nexus has the same issue, but I would imagine some other repositories might. |
@lseppala I'm encountering this issue also. I've got a repo in nexus that doesn't have maven-metadata.xml
Any suggestions for a fix or workaround? |
@lseppala I'm having a similar issue. This is a snippet of the dependabot.yml: version: 2
registries:
my-artifactory:
type: maven-repository
url: https://my.internal.repo
username: MY_USER
password: ${{secrets.MY_SECRET}}
updates:
- package-ecosystem: "maven"
directory: "/"
registries:
- my-artifactory
schedule:
interval: "daily" This is the dependabot log:
Is there something I'm missing? |
I've improved private registry support with #5924, #5908, #5907, and #5884. @gianielsevier has a specific issue open for that case I'm going to close this out, feel free to open a new issue with details if you're still having problems. Thanks for you patience! |
I am using dependabot in Gitlab CICD and configured accordingly with example implementation from dependabot-script. The workflow is for a JAVA Maven project.
I have added the following in generic-update-script.rb regarding acces to Nexus repo.
'''
credentials << {
"type" => "maven_repository",
"url" => "https://private_repo/nexus3",
"username" => "nexus_username",
"password" => "#########"
'''
The POM has the following :
In current configuration it makes the updates only for public dependencies but not for private.
Does currently dependabot support scanning other repos rathen then Maven central ?
The text was updated successfully, but these errors were encountered: