}
}
private GroupRepository setupPublicGroup( Repository repo )
{
GroupRepository publicGroup;
try
{
publicGroup = repositoryRegistry.getRepositoryWithFacet( "public", GroupRepository.class );
}
catch ( NoSuchRepositoryException e )
{
getLogger().error( "Public group not found", e );
return null;
}
try
{
publicGroup.addMemberRepositoryId( repo.getId() );
return publicGroup;
}
catch ( Exception e )
{
getLogger().error( "Unable to setup flexmojos repository properly", e );