Examples of CRemoteStorage


Examples of org.sonatype.nexus.configuration.model.CRemoteStorage

          Xpp3Dom ex = new Xpp3Dom("externalConfiguration");
          repoConf.setExternalConfiguration(ex);
          M2RepositoryConfiguration exConf = new M2RepositoryConfiguration(ex);
          exConf.setRepositoryPolicy(RepositoryPolicy.RELEASE);
          exConf.setChecksumPolicy(ChecksumPolicy.STRICT_IF_EXISTS);
          repoConf.setRemoteStorage(new CRemoteStorage());
          repoConf.getRemoteStorage().setProvider(
              env.getRemoteProviderHintFactory().getDefaultHttpRoleHint());
          repoConf.getRemoteStorage().setUrl("http://localhost:/");
          repo.configure(repoConf);
          // repo.setCacheManager( env.getCacheManager() );
View Full Code Here

Examples of org.sonatype.nexus.configuration.model.CRemoteStorage

    repo.setName("");

    repo.setProviderRole(Repository.class.getName());
    repo.setProviderHint(ObrRepository.ROLE_HINT);

    repo.setRemoteStorage(new CRemoteStorage());
    repo.getRemoteStorage().setProvider(
        getTemplateProvider().getRemoteProviderHintFactory().getDefaultHttpRoleHint());
    repo.getRemoteStorage().setUrl("http://some-remote-repository/repo-root/obr.xml");

    final Xpp3Dom ex = new Xpp3Dom(DefaultCRepository.EXTERNAL_CONFIGURATION_NODE_NAME);
View Full Code Here

Examples of org.sonatype.nexus.configuration.model.CRemoteStorage

          Xpp3Dom ex = new Xpp3Dom("externalConfiguration");
          repoConf.setExternalConfiguration(ex);
          M2RepositoryConfiguration exConf = new M2RepositoryConfiguration(ex);
          exConf.setRepositoryPolicy(RepositoryPolicy.RELEASE);
          exConf.setChecksumPolicy(ChecksumPolicy.STRICT_IF_EXISTS);
          repoConf.setRemoteStorage(new CRemoteStorage());
          repoConf.getRemoteStorage().setProvider(
              env.getRemoteProviderHintFactory().getDefaultHttpRoleHint());
          repoConf.getRemoteStorage().setUrl("http://localhost:" + remoteServerPort + "/");
          repo.configure(repoConf);
          // repo.setCacheManager( env.getCacheManager() );
View Full Code Here

Examples of org.sonatype.nexus.configuration.model.v2_2_0.CRemoteStorage

    {
      @Override
      public CRemoteStorage upgradeCRemoteStorage(
          org.sonatype.nexus.configuration.model.v2_0_0.CRemoteStorage cRemoteStorage)
      {
        final CRemoteStorage remoteStorage = super.upgradeCRemoteStorage(cRemoteStorage);
        if (remoteStorage != null) {
          if (StringUtils.equals(remoteStorage.getProvider(), "apacheHttpClient3x")) {
            // nullify the provider IF: it is set, and is set to the "old" HttpClient3x only
            // as in nullified case, the
            // org.sonatype.nexus.proxy.storage.remote.DefaultRemoteProviderHintFactory will kick in as we
            // want
            remoteStorage.setProvider(null);
          }
        }
        return remoteStorage;
      }
    };
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.