From: Martin Stockhammer Date: Sat, 25 May 2019 08:31:14 +0000 (+0200) Subject: Adding default location to repository X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=12c05a8d1ac41cac0b494dabac43790ade273ea4;p=archiva.git Adding default location to repository --- 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