From 2f6ca004557bef35eb04d929dbb297a2e7ee17a5 Mon Sep 17 00:00:00 2001 From: Konrad Windszus Date: Sun, 11 Aug 2024 18:06:21 +0200 Subject: [PATCH] JCRVLT-774 Allow to overwrite resolvePackageInfo(Dependency) through subclasses --- .../vault/validation/context/AbstractDependencyResolver.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vault-validation/src/main/java/org/apache/jackrabbit/vault/validation/context/AbstractDependencyResolver.java b/vault-validation/src/main/java/org/apache/jackrabbit/vault/validation/context/AbstractDependencyResolver.java index 15eb15503..9bbe693d7 100644 --- a/vault-validation/src/main/java/org/apache/jackrabbit/vault/validation/context/AbstractDependencyResolver.java +++ b/vault-validation/src/main/java/org/apache/jackrabbit/vault/validation/context/AbstractDependencyResolver.java @@ -95,11 +95,10 @@ protected AbstractDependencyResolver(@NotNull Collection packageInf * @return the resolved package info or {@code null} * @throws IOException */ - private @Nullable PackageInfo resolvePackageInfo(@NotNull Dependency dependency) throws IOException { + protected @Nullable PackageInfo resolvePackageInfo(@NotNull Dependency dependency) throws IOException { // resolving a version range is not supported with Maven API, but only with lower level Aether API (requires Maven 3.5 or newer) // https://github.com/eclipse/aether-demo/blob/master/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/FindAvailableVersions.java // therefore do an best effort resolve instead - final String groupId = dependency.getGroup(); final String artifactId = dependency.getName(); PackageInfo info = null;