code: public void setRepositories( List<String> urls ) throws ProjectException {
          List<Repository> repositories = new ArrayList<Repository>();
          for ( String url : urls  ) {
              try {
                  Repository repository = RepoBuilder.repositoryFromUrl( url );
                  repositories.add( repository );
              } catch (MalformedURLException e) {
                  throw new ProjectException( e );
              }
          }
          getMavenModel().setRepositories( repositories);
      }
docs: Set Repositories
  
  @param urls List
  @throws ProjectException exception