diff --git a/lib/modules/datasource/maven/__fixtures__/pom.relocation.xml b/lib/modules/datasource/maven/__fixtures__/pom.relocation.xml
deleted file mode 100644
index 5d704d6024367cc..000000000000000
--- a/lib/modules/datasource/maven/__fixtures__/pom.relocation.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
- 4.0.0
- org.example
- package
- Generic Package
- Generic Maven Package
-
-
- io.example
-
-
-
diff --git a/lib/modules/datasource/maven/index.spec.ts b/lib/modules/datasource/maven/index.spec.ts
index 92ac5832718b6b9..47dc14250e11826 100644
--- a/lib/modules/datasource/maven/index.spec.ts
+++ b/lib/modules/datasource/maven/index.spec.ts
@@ -355,7 +355,14 @@ describe('modules/datasource/maven/index', () => {
describe('supports relocation', () => {
it('with only groupId present', async () => {
- const pom = Fixtures.get('pom.relocation.xml');
+ const pom = `
+
+
+
+ io.example
+
+
+`;
mockGenericPackage({ pom, html: null });
const res = await get();
@@ -366,10 +373,14 @@ describe('modules/datasource/maven/index', () => {
});
it('with only artifactId present', async () => {
- const pom = Fixtures.get('pom.relocation.xml').replace(
- 'io.example',
- 'foo',
- );
+ const pom = `
+
+
+
+ foo
+
+
+`;
mockGenericPackage({ pom, html: null });
const res = await get();
@@ -380,13 +391,17 @@ describe('modules/datasource/maven/index', () => {
});
it('with all elments present', async () => {
- const pom = Fixtures.get('pom.relocation.xml').replace(
- 'io.example',
- `io.example
+ const pom = `
+
+
+
+ io.example
foo
1.2.3
- test relocation`,
- );
+ test relocation
+
+
+`;
mockGenericPackage({ pom, html: null });
const res = await get();