]> source.dussan.org Git - archiva.git/commitdiff
Adding default location to repository
authorMartin Stockhammer <martin_s@apache.org>
Sat, 25 May 2019 08:31:14 +0000 (10:31 +0200)
committerMartin Stockhammer <martin_s@apache.org>
Sat, 25 May 2019 08:31:14 +0000 (10:31 +0200)
archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven2/MavenManagedRepository.java

index c002854b5aa36af2de352392e6f1e0e034c9a309..be4756b42ae8db345ec77a03d919456e1d5791f8 100644 (file)
@@ -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