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

Examples of org.sonatype.nexus.templates.repository.maven.Maven2GroupRepositoryTemplate.create()


            Maven2GroupRepositoryTemplate.class).pick();

    template.getConfigurableRepository().setIndexable(false);
    template.getConfigurableRepository().setId(repoId);

    return template.create();
  }

  private Repository buildShadowRepository(String repoId)
      throws Exception
  {
View Full Code Here


    // Assert.assertEquals( "group-name", group.getName() );
    template.getConfigurableRepository().setExposed(true);
    template.getConfigurableRepository().setLocalStatus(LocalStatus.IN_SERVICE);
    template.getExternalConfiguration(true).addMemberRepositoryId("central");

    template.create();

    boolean found = false;
    // verify nexus config in memory
    for (CRepository cRepo : this.nexusConfiguration.getConfigurationModel().getRepositories()) {
      if (groupId.equals(cRepo.getId())) {
View Full Code Here

    template.getConfigurableRepository().setLocalStatus(LocalStatus.IN_SERVICE);
    // validation does NOT happen on the fly!
    template.getExternalConfiguration(true).addMemberRepositoryId("INVALID-REPO-ID");

    try {
      template.create();
      Assert.fail("Expected NoSuchRepositoryException");
    }
    catch (ConfigurationException e) {
      // expected
    }
View Full Code Here

    template.getConfigurableRepository().setExposed(true);
    template.getConfigurableRepository().setLocalStatus(LocalStatus.IN_SERVICE);
    template.getExternalConfiguration(true).addMemberRepositoryId("central");

    try {
      template.create();
      Assert.fail("expected ConfigurationException");
    }
    catch (ConfigurationException e) {
      // expected
    }
View Full Code Here

    template.getConfigurableRepository().setExposed(true);
    template.getConfigurableRepository().setLocalStatus(LocalStatus.IN_SERVICE);
    template.getExternalConfiguration(true).addMemberRepositoryId("central");

    try {
      template.create();
      Assert.fail("expected ConfigurationException");
    }
    catch (ConfigurationException e) {
      // expected
    }
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.