From 7536a89125adca6dcf230d91b6a867d8d5b6e407 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Sat, 25 Dec 2021 17:38:01 +0100 Subject: [PATCH] Fixing error with bad repository path --- .../archiva/configuration/DefaultArchivaConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java b/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java index 54961b97b..b9db3042e 100644 --- a/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java +++ b/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java @@ -854,7 +854,7 @@ public class DefaultArchivaConfiguration Path repoLocation = Paths.get(repoPath); if (Files.exists(repoLocation) && Files.isDirectory(repoLocation) && !repoPath.endsWith( - "data/repositories/" + repo.getId())) { + "/repositories/" + repo.getId())) { repo.setLocation(repoPath + "/data/repositories/" + repo.getId()); } } -- 2.39.5