Examples of Maven2Maven1ShadowRepositoryTemplate


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

    // just create
    template.create();

    // now for the shadow
    Maven2Maven1ShadowRepositoryTemplate shadowTemplate =
        (Maven2Maven1ShadowRepositoryTemplate) getRepositoryTemplates().getTemplates(
            Maven2Maven1ShadowRepositoryTemplate.class).pick();

    shadowTemplate.getConfigurableRepository().setIndexable(false);
    shadowTemplate.getConfigurableRepository().setId(repoId + "-shadow");

    shadowTemplate.getExternalConfiguration(true).setMasterRepositoryId(repoId);

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

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

          "Maven2 (proxy, snapshot)", RepositoryPolicy.SNAPSHOT));

      templates.add(new Maven1Maven2ShadowRepositoryTemplate(this, DEFAULT_VIRTUAL_M1_M2,
          "Maven1 to Maven2 (virtual)"));

      templates.add(new Maven2Maven1ShadowRepositoryTemplate(this, DEFAULT_VIRTUAL_M2_M1,
          "Maven2 to Maven1 (virtual)"));

      templates.add(new Maven1HostedRepositoryTemplate(this, "maven1_hosted_release",
          "Maven1 (hosted, release)", RepositoryPolicy.RELEASE));
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.