Skip to content

Commit

Permalink
fix(maven): Revert "fix: remove default maven central registry" (#14058)
Browse files Browse the repository at this point in the history
This reverts commit ead221d.
  • Loading branch information
rarkins committed Feb 7, 2022
1 parent 85cf82e commit d555c5c
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 129 deletions.
67 changes: 0 additions & 67 deletions lib/manager/maven/__fixtures__/simple.central.pom.xml

This file was deleted.

51 changes: 17 additions & 34 deletions lib/manager/maven/__snapshots__/extract.spec.ts.snap
Expand Up @@ -11,6 +11,7 @@ Object {
"depType": "parent",
"fileReplacePosition": 186,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -21,6 +22,7 @@ Object {
"depType": "compile",
"fileReplacePosition": 905,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -31,6 +33,7 @@ Object {
"depType": "compile",
"fileReplacePosition": 1093,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -41,6 +44,7 @@ Object {
"depType": "build",
"fileReplacePosition": 1347,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -51,6 +55,7 @@ Object {
"depType": "build",
"fileReplacePosition": 1545,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -61,6 +66,7 @@ Object {
"depType": "build",
"fileReplacePosition": 2276,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -71,6 +77,7 @@ Object {
"depType": "compile",
"fileReplacePosition": 2484,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -81,6 +88,7 @@ Object {
"depType": "compile",
"fileReplacePosition": 2634,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -91,6 +99,7 @@ Object {
"depType": "compile",
"fileReplacePosition": 2779,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -101,6 +110,7 @@ Object {
"depType": "compile",
"fileReplacePosition": 2938,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -111,6 +121,7 @@ Object {
"depType": "test",
"fileReplacePosition": 3086,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -121,6 +132,7 @@ Object {
"depType": "compile",
"fileReplacePosition": 3252,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -131,6 +143,7 @@ Object {
"depType": "compile",
"fileReplacePosition": 3410,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -140,6 +153,7 @@ Object {
"depName": "org.example:relocation-artifact",
"fileReplacePosition": 3612,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -150,6 +164,7 @@ Object {
"depType": "compile",
"fileReplacePosition": 3944,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -160,6 +175,7 @@ Object {
"depType": "build",
"fileReplacePosition": 4200,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -170,6 +186,7 @@ Object {
"depType": "build",
"fileReplacePosition": 4594,
"registryUrls": Array [
"https://repo.maven.apache.org/maven2",
"https://maven.atlassian.com/content/repositories/atlassian-public/",
],
},
Expand All @@ -194,37 +211,3 @@ Object {
"packageFile": null,
}
`;

exports[`manager/maven/extract extractDependencies extract dependencies from any XML position with Central Maven 1`] = `
Object {
"datasource": "maven",
"deps": Array [
Object {
"currentValue": "0.0.1",
"datasource": "maven",
"depName": "org.example:foo",
"depType": "compile",
"fileReplacePosition": 637,
"registryUrls": Array [],
},
Object {
"currentValue": "1.2.3",
"datasource": "maven",
"depName": "org.example:quuz",
"depType": "test",
"fileReplacePosition": 842,
"registryUrls": Array [],
},
Object {
"currentValue": "2.17",
"datasource": "maven",
"depName": "org.example:profile-build-artefact",
"depType": "build",
"fileReplacePosition": 1153,
"registryUrls": Array [],
},
],
"mavenProps": Object {},
"packageFile": null,
}
`;

0 comments on commit d555c5c

Please sign in to comment.