From 12c05a8d1ac41cac0b494dabac43790ade273ea4 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Sat, 25 May 2019 10:31:14 +0200 Subject: [PATCH] Adding default location to repository --- .../archiva/repository/maven2/MavenManagedRepository.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven2/MavenManagedRepository.java b/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven2/MavenManagedRepository.java index c002854b5..be4756b42 100644 --- a/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven2/MavenManagedRepository.java +++ b/archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven2/MavenManagedRepository.java @@ -69,11 +69,13 @@ public class MavenManagedRepository extends AbstractManagedRepository { super( RepositoryType.MAVEN, id, name, basePath); this.indexCreationFeature = new IndexCreationFeature(this, this); + setLocation(basePath.resolve(id).toUri()); } public MavenManagedRepository( Locale primaryLocale, String id, String name, Path basePath ) { super( primaryLocale, RepositoryType.MAVEN, id, name, basePath ); + setLocation(basePath.resolve(id).toUri()); } @Override -- 2.39.5