@Override
public DependencyRepository removeRepository(final String url)
{
if (url != null)
{
MavenFacet maven = getOrigin().getFacet(MavenFacet.class);
Model pom = maven.getPOM();
List<Repository> repos = pom.getRepositories();
for (Repository repo : repos)
{
if (repo.getUrl().equals(url.trim()))
{
repos.remove(repo);
maven.setPOM(pom);
return new DependencyRepository(repo.getId(), repo.getUrl());
}
}
}
return null;