Object (String modelName, Project project) { final RepositoriesModel repoModel = new RepositoriesModelImpl(); for (MavenArtifactRepository artifactRepository : project.getRepositories().withType(MavenArtifactRepository.class)) { final MavenRepositoryModel model = new MavenRepositoryModelImpl(artifactRepository.getName(), artifactRepository.getUrl().toString()); repoModel.add(model); } return repoModel; }