M2GroupRepositoryConfiguration exGroupRepoConf = new M2GroupRepositoryConfiguration(exGroupRepo);
// members are "test" (an existing group, to have group of group) and repo1 that is already member via
// "test"
exGroupRepoConf.setMemberRepositoryIds(Arrays.asList("test", "repo1"));
exGroupRepoConf.setMergeMetadata(true);
group.configure(repoGroupConf);
getApplicationConfiguration().getConfigurationModel().addRepository(repoGroupConf);
getRepositoryRegistry().addRepository(group);
}
// now put a hosted repository "inhouse-snapshot" out of service to make output nicer