Exemplo n.º 1
0
 public List<String> getRepositories() {
   final List<Repository> repos = pom.getRepositories();
   if (repos == null) return null;
   final List<String> repositories = new ArrayList<String>();
   for (Repository repo : repos) repositories.add(repo.getUrl());
   return repositories;
 }
Exemplo n.º 2
0
 private void listRepositories(Model model, List<Resource<?>> children) {
   List<Repository> repositories = model.getRepositories();
   for (Repository repository : repositories) {
     children.add(new MavenRepositoryResourceImpl(getResourceFactory(), getParent(), repository));
   }
 }