Examples of shouldProxy()


Examples of org.sonatype.nexus.proxy.repository.ProxyMode.shouldProxy()

    final PropfileDiscoveryStatusSource discoveryStatusSource =
        new PropfileDiscoveryStatusSource(mavenProxyRepository);

    final ProxyMode proxyMode = mavenProxyRepository.getProxyMode();
    if (!proxyMode.shouldProxy()) {
      final DiscoveryStatus discoveryStatus =
          new DiscoveryStatus(DStatus.ENABLED_NOT_POSSIBLE, "none", "Proxy repository is blocked.",
              System.currentTimeMillis());
      discoveryStatusSource.write(discoveryStatus);
      throw new IllegalStateException("Maven repository "
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.