Fixing repository group implementation
@@ -248,8 +248,10 @@ public void updateRemoteInstance(EditableRemoteRepository repo, RemoteRepository
@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 void setArchivaConfiguration(ArchivaConfiguration archivaConfiguration) {
public <T> void raise(RepositoryEvent<T> event) {
//
}
+
+ public void setRepositoryRegistry(RepositoryRegistry reg) {
+ this.repositoryRegistry = reg;
+ }
}
