}
private MavenGroupRepository createM1Group(String id, List<String> members)
throws Exception
{
Maven1GroupRepositoryTemplate template =
(Maven1GroupRepositoryTemplate) getRepositoryTemplates()
.getTemplates(Maven1GroupRepositoryTemplate.class).pick();
template.getConfigurableRepository().setId(id);
template.getConfigurableRepository().setName(id);
template.getConfigurableRepository().setIndexable(false);
for (String member : members) {
template.getExternalConfiguration(true).addMemberRepositoryId(member);
}
return (MavenGroupRepository) template.create();
}