Examples of Maven1ProxyRepositoryTemplate


Examples of org.sonatype.nexus.templates.repository.maven.Maven1ProxyRepositoryTemplate

  }

  private MavenRepository createM1ProxyRepo(String id)
      throws Exception
  {
    Maven1ProxyRepositoryTemplate template =
        (Maven1ProxyRepositoryTemplate) getRepositoryTemplates()
            .getTemplates(Maven1ProxyRepositoryTemplate.class, RepositoryPolicy.RELEASE).pick();

    template.getConfigurableRepository().setIndexable(false);
    template.getConfigurableRepository().setId(id);
    template.getConfigurableRepository().setName(id);

    return template.create();
  }
View Full Code Here

Examples of org.sonatype.nexus.templates.repository.maven.Maven1ProxyRepositoryTemplate

      templates.add(new Maven1HostedRepositoryTemplate(this, "maven1_hosted_snapshot",
          "Maven1 (hosted, snapshot)",
          RepositoryPolicy.SNAPSHOT));

      templates.add(new Maven1ProxyRepositoryTemplate(this, "maven1_proxy_release",
          "Maven1 (proxy, release)", RepositoryPolicy.RELEASE));

      templates.add(new Maven1ProxyRepositoryTemplate(this, "maven1_proxy_snapshot",
          "Maven1 (proxy, snapshot)", RepositoryPolicy.SNAPSHOT));

      templates.add(new Maven1GroupRepositoryTemplate(this, "maven1_group", "Maven1 (group)"));

      templates.add(new Maven2GroupRepositoryTemplate(this, DEFAULT_GROUP, "Maven2 (group)"));
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.