code: public static RemoteRepository asRemoteRepository(org.apache.maven.model.Repository repository) {
          return new RemoteRepository.Builder(repository.getId(), repository.getLayout(), repository.getUrl())
                  .setSnapshotPolicy(asRepositoryPolicy(repository.getSnapshots()))
                  .setReleasePolicy(asRepositoryPolicy(repository.getReleases())).build();
      }
docs: Converts Maven {@link Repository} to Aether {@link RemoteRepository}
  
  @param repository
  the Maven repository to be converted
  @return Equivalent remote repository