diff options
author | Martin Stockhammer <martin_s@apache.org> | 2019-05-25 10:31:14 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2019-05-25 10:31:14 +0200 |
commit | 12c05a8d1ac41cac0b494dabac43790ade273ea4 (patch) | |
tree | 1e5efbeae495b8af6cc9489fa65e55c969989364 /archiva-modules | |
parent | aabd20f66839032f335f19b29dec0098fbffb178 (diff) | |
download | archiva-12c05a8d1ac41cac0b494dabac43790ade273ea4.tar.gz archiva-12c05a8d1ac41cac0b494dabac43790ade273ea4.zip |
Adding default location to repository
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-maven/archiva-maven-repository/src/main/java/org/apache/archiva/repository/maven2/MavenManagedRepository.java | 2 |
1 files changed, 2 insertions, 0 deletions
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 |