diff --git a/lib/datasource/maven/util.ts b/lib/datasource/maven/util.ts index 464d2709fd31ac..f1e1f415c7d8b5 100644 --- a/lib/datasource/maven/util.ts +++ b/lib/datasource/maven/util.ts @@ -116,7 +116,7 @@ export async function isHttpResourceExists( const httpClient = httpByHostType(hostType); const res = await httpClient.head(pkgUrl.toString()); const pkgUrlHost = url.parse(pkgUrl.toString()).host; - if (pkgUrlHost === 'repo.maven.apache.org') { + if (['repo.maven.apache.org', 'gitlab.com'].includes(pkgUrlHost)) { const timestamp = res?.headers?.['last-modified'] as string; return timestamp || true; }