Examples of disableBrowsing()


Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenHostedRepository.disableBrowsing()

  @Test
  public void remoteBrowsingNotAllowed() {
    // disable browsing on remote/central
    final MavenHostedRepository remoteRepository = remoteRepositories().get(MavenHostedRepository.class,
        REMOTE_REPOSITORY_ID);
    remoteRepository.disableBrowsing().save();

    // create local/central proxying remote/central
    final MavenProxyRepository localRepository = localRepositories()
        .create(MavenProxyRepository.class, LOCAL_REPOSITORY_ID).asProxyOf(remoteRepository.contentUri())
        .doNotDownloadRemoteIndexes().withRepoPolicy("RELEASE").save();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.