Maven from Artifactory Virtual Repository #18803
-
hi colleagues, please correct me if i'm wrong, but if I understood correctly, renovate is not capable of using artifactory maven virtual repositories to fetch for newer dependencies if settings.xml does not exists on repository. My settings.xml is not present in the repository, but injected in pipeline time. This works great in my case where I need to maintain 1 I managed to get renovate to fetch from private registry by setting I understood from this issue that renovate does not work when settings.xml is not present, #13925, is my assumption correct? content of config.js in repository were pom.xml exists:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Not sure if that helps you, but we use following packageRules/hostRules for lookup with JFrog Artifactory. Notice that we use {
"hostRules": [
{
"hostType": "maven",
"matchHost": "https://artifactory-something.com/build.releases",
"username": "$ARTIFACTORY_USER",
"password": "$ARTIFACTORY_API_KEY",
"authType": "Basic"
}
],
"packageRules": [
{
"matchManagers": [
"maven"
],
"registryUrls": [
"https://artifactory-something.com/build.releases"
]
}
]
} |
Beta Was this translation helpful? Give feedback.
-
@Chumper I know it sucks being tagged by maven newbie users, but any help is appreciated. Do you know is not having settings.xml for can be an issue? My usecase is, no matter what, we should always fetch from artifactory, never from internet. The global settings.xml I have in pipeline time does that and it uses a custom id instead of |
Beta Was this translation helpful? Give feedback.
-
as for reference, at the current state of this project, you will not be able to use renovate to pull pom dependencies from artifactory if your settings is external to the repo. meaning air gapped environments have to rely on proxy or change settings.xml strategy. |
Beta Was this translation helpful? Give feedback.
as for reference, at the current state of this project, you will not be able to use renovate to pull pom dependencies from artifactory if your settings is external to the repo. meaning air gapped environments have to rely on proxy or change settings.xml strategy.