diff --git a/lib/datasource/maven/__snapshots__/index.spec.ts.snap b/lib/datasource/maven/__snapshots__/index.spec.ts.snap
index e094221364597c230eaa08c7151ee672381728e2..942aaf09d15b9b6c86e0d905cf16a7dd335449ce 100644
--- a/lib/datasource/maven/__snapshots__/index.spec.ts.snap
+++ b/lib/datasource/maven/__snapshots__/index.spec.ts.snap
@@ -32,3 +32,69 @@ Object {
   "sourceUrl": "https://github.com/mysql/mysql-connector-j",
 }
 `;
+
+exports[`datasource/maven getReleases should return all versions of a specific library if a repository fails because invalid metadata file is found in another repository 1`] = `
+Object {
+  "display": "mysql:mysql-connector-java",
+  "group": "mysql",
+  "name": "mysql-connector-java",
+  "releases": Array [
+    Object {
+      "releaseTimestamp": "2020-01-01T00:00:00.650Z",
+      "version": "6.0.5",
+    },
+    Object {
+      "releaseTimestamp": "2020-01-01T00:00:00.660Z",
+      "version": "6.0.6",
+    },
+    Object {
+      "releaseTimestamp": "2020-01-01T00:00:00.870Z",
+      "version": "8.0.7",
+    },
+    Object {
+      "releaseTimestamp": "2020-01-01T00:00:00.880Z",
+      "version": "8.0.8",
+    },
+    Object {
+      "releaseTimestamp": "2020-01-01T00:00:00.890Z",
+      "version": "8.0.9",
+    },
+  ],
+}
+`;
+
+exports[`datasource/maven getReleases should return versions in all repositories for a specific library 1`] = `
+Object {
+  "display": "mysql:mysql-connector-java",
+  "group": "mysql",
+  "homepage": "http://dev.mysql.com/doc/connector-j/en/",
+  "name": "mysql-connector-java",
+  "releases": Array [
+    Object {
+      "version": "6.0.4",
+    },
+    Object {
+      "version": "6.0.5",
+    },
+    Object {
+      "version": "6.0.6",
+    },
+    Object {
+      "version": "8.0.7",
+    },
+    Object {
+      "version": "8.0.8",
+    },
+    Object {
+      "version": "8.0.9",
+    },
+    Object {
+      "version": "8.0.11",
+    },
+    Object {
+      "version": "8.0.12",
+    },
+  ],
+  "sourceUrl": "https://github.com/mysql/mysql-connector-j",
+}
+`;
diff --git a/lib/datasource/maven/index.spec.ts b/lib/datasource/maven/index.spec.ts
index f0a7bdef19f21e9c56b3613c30e8d4bd5bb7bf2c..fa1b11f7d017616554186424e4d1356e7d4ad943 100644
--- a/lib/datasource/maven/index.spec.ts
+++ b/lib/datasource/maven/index.spec.ts
@@ -178,9 +178,7 @@ describe('datasource/maven', () => {
           'file://lib/datasource/maven/__fixtures__/custom_maven_repo/maven2/',
         ],
       });
-      expect(releases.releases).toEqual(
-        generateReleases(['6.0.4', ...MYSQL_VERSIONS, '8.0.11', '8.0.12'])
-      );
+      expect(releases).toMatchSnapshot();
     });
 
     it('should return all versions of a specific library for http repositories', async () => {
@@ -268,7 +266,7 @@ describe('datasource/maven', () => {
           'http://invalid_metadata_repo/maven2/',
         ],
       });
-      expect(releases.releases).toEqual(generateReleases(MYSQL_VERSIONS, true));
+      expect(releases).toMatchSnapshot();
     });
 
     it('should return all versions of a specific library if a repository fails because a metadata file is not xml', async () => {