From 76137bbc83245b39895894e46cb11f03ef3db6e6 Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Wed, 25 Oct 2023 16:06:20 +0200 Subject: [PATCH] [MRESOLVER-411] Update to Maven 4.0.0-alpha-8 (#350) And get rid of last TODO. Note: this issue is refurbished from "Update to Maven 4.0.0-alpha-7". --- https://issues.apache.org/jira/browse/MRESOLVER-411 --- .../aether/supplier/RepositorySystemSupplier.java | 10 +++------- pom.xml | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/maven-resolver-supplier/src/main/java/org/eclipse/aether/supplier/RepositorySystemSupplier.java b/maven-resolver-supplier/src/main/java/org/eclipse/aether/supplier/RepositorySystemSupplier.java index 2ab0cfcab..38f1eb6d6 100644 --- a/maven-resolver-supplier/src/main/java/org/eclipse/aether/supplier/RepositorySystemSupplier.java +++ b/maven-resolver-supplier/src/main/java/org/eclipse/aether/supplier/RepositorySystemSupplier.java @@ -457,13 +457,9 @@ protected VersionScheme getVersionScheme() { protected Map getMetadataGeneratorFactories() { // from maven-resolver-provider HashMap result = new HashMap<>(); - // result.put(PluginsMetadataGeneratorFactory.NAME, new PluginsMetadataGeneratorFactory()); - // result.put(VersionsMetadataGeneratorFactory.NAME, new VersionsMetadataGeneratorFactory()); - // result.put(SnapshotMetadataGeneratorFactory.NAME, new SnapshotMetadataGeneratorFactory()); - // TODO: Fix this once MNG-7874 done and released as Maven 4.0.0-alpha-8 - result.put("plugins", new PluginsMetadataGeneratorFactory()); - result.put("versions", new VersionsMetadataGeneratorFactory()); - result.put("snapshot", new SnapshotMetadataGeneratorFactory()); + result.put(PluginsMetadataGeneratorFactory.NAME, new PluginsMetadataGeneratorFactory()); + result.put(VersionsMetadataGeneratorFactory.NAME, new VersionsMetadataGeneratorFactory()); + result.put(SnapshotMetadataGeneratorFactory.NAME, new SnapshotMetadataGeneratorFactory()); return result; } diff --git a/pom.xml b/pom.xml index 66eca990c..a3391e553 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ 6.0.0 1.7.36 - 4.0.0-alpha-7 + 4.0.0-alpha-8 [3.8.8,) [11.0.16,) 2023-10-10T21:40:45Z