aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2021-12-25 17:38:01 +0100
committerMartin Stockhammer <martin_s@apache.org>2021-12-25 17:38:01 +0100
commit7536a89125adca6dcf230d91b6a867d8d5b6e407 (patch)
tree0ff1a1994fa2440363cf7a319d3a7882ee0549ca /archiva-modules
parentd3fd08be17f6e990488a60680047150f7464a13e (diff)
downloadarchiva-7536a89125adca6dcf230d91b6a867d8d5b6e407.tar.gz
archiva-7536a89125adca6dcf230d91b6a867d8d5b6e407.zip
Fixing error with bad repository path
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java2
1 files changed, 1 insertions, 1 deletions
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());
}
}