Package org.sonatype.nexus.templates.repository.maven

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


  }

  private MavenGroupRepository createM1Group(String id, List<String> members)
      throws Exception
  {
    Maven1GroupRepositoryTemplate template =
        (Maven1GroupRepositoryTemplate) getRepositoryTemplates()
            .getTemplates(Maven1GroupRepositoryTemplate.class).pick();

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

    for (String member : members) {
      template.getExternalConfiguration(true).addMemberRepositoryId(member);
    }

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


          "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)"));
    }
    catch (Exception e) {
      // will not happen
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.templates.repository.maven.Maven1GroupRepositoryTemplate

Copyright © 2018 www.massapicom. 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.