Fixing repository group implementation

This commit is contained in:
Martin Stockhammer 2019-05-25 10:32:19 +02:00
parent 922d543915
commit a024df32a4
1 changed files with 7 additions and 1 deletions

View File

@ -248,8 +248,10 @@ public class MavenRepositoryProvider implements RepositoryProvider {
@Override
public RepositoryGroup createRepositoryGroup(RepositoryGroupConfiguration configuration) throws RepositoryException {
Path repositoryGroupBase = getArchivaConfiguration().getRepositoryGroupBaseDir();
return new MavenRepositoryGroup(configuration.getId(), configuration.getId(),
MavenRepositoryGroup newGrp = new MavenRepositoryGroup(configuration.getId(), configuration.getName(),
repositoryGroupBase, fileLockManager);
updateRepositoryGroupInstance(newGrp, configuration);
return newGrp;
}
@Override
@ -444,4 +446,8 @@ public class MavenRepositoryProvider implements RepositoryProvider {
public <T> void raise(RepositoryEvent<T> event) {
//
}
public void setRepositoryRegistry(RepositoryRegistry reg) {
this.repositoryRegistry = reg;
}
}