Renovate does not find private dependencies

1k views Asked by At

I hosted Renovate, Gitea and Artifactory myself. Unfortunately, Renovate returns the following warnings:

WARN: Package lookup failures (repository=my_repository, branch=renovate.my_branch)
       "warnings": [
         "Failed to look up maven package my_group:my_artifactid",
         ...

My Renovate configuration:

{
  "platform": "gitea",
  "endpoint": "https://mygitea/api/v1/",
  "token": "my_gitea_token",
  "branchPrefix": "renovate.",
  "logFile": "/mydir/renovate.log",
  "logFileLevel": "debug",
  "extends": [ "config:base"],
  "hostRules": [
    {
      "matchHost": "my_artifactory_repo_url",
      "username": "my_artifactory_user",
      "password": "my_artifactory_password"
    }
  ],
  "repositories": [
    "my_repository"
  ]
}

Private dependencies are not found, only the public ones. What could be the problem?

I have used the following documentation: https://docs.renovatebot.com/getting-started/private-packages/#dependency-version-lookups

1

There are 1 answers

2
Gaël J On BEST ANSWER

If you want to use your private registry by default for all Maven dependencies, you can use the following Renovate configuration:

{
  "packageRules": [
    {
      "matchDatasources": ["maven"],
      "registryUrls": [
        "https://artifactory.mycompany.net/artifactory/maven-repo"
      ]
    }
  ]
}