当前位置: 首页>>代码示例>>Java>>正文


Java TakariLocalRepositoryManagerFactory类代码示例

本文整理汇总了Java中io.takari.aether.localrepo.TakariLocalRepositoryManagerFactory的典型用法代码示例。如果您正苦于以下问题:Java TakariLocalRepositoryManagerFactory类的具体用法?Java TakariLocalRepositoryManagerFactory怎么用?Java TakariLocalRepositoryManagerFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TakariLocalRepositoryManagerFactory类属于io.takari.aether.localrepo包,在下文中一共展示了TakariLocalRepositoryManagerFactory类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: AetherResolver

import io.takari.aether.localrepo.TakariLocalRepositoryManagerFactory; //导入依赖的package包/类
public AetherResolver() {
  localMavenRepo = System.getProperty(LOCAL_REPO_SYS_PROP, DEFAULT_MAVEN_LOCAL);
  String remoteString = System.getProperty(REMOTE_REPOS_SYS_PROP, DEFAULT_MAVEN_REMOTES);
  // They are space delimited (space is illegal char in urls)
  remoteMavenRepos = Arrays.asList(remoteString.split(" "));
  httpProxy = System.getProperty(HTTP_PROXY_SYS_PROP);
  httpsProxy = System.getProperty(HTTPS_PROXY_SYS_PROP);

  DefaultServiceLocator locator = MavenRepositorySystemUtils.newServiceLocator();
  locator.addService(RepositoryConnectorFactory.class, AetherRepositoryConnectorFactory.class);
  locator.addService(LocalRepositoryManagerFactory.class, TakariLocalRepositoryManagerFactory.class);
  locator.setErrorHandler(new DefaultServiceLocator.ErrorHandler()
  {
    @Override
    public void serviceCreationFailed(Class<?> type, Class<?> impl, Throwable exception) {
      exception.printStackTrace();
    }
  });
  this.repositorySystem = locator.getService(RepositorySystem.class);
}
 
开发者ID:cstamas,项目名称:vertx-sisu,代码行数:21,代码来源:AetherResolver.java

示例2: mvnFailWithArgumentsBom

import io.takari.aether.localrepo.TakariLocalRepositoryManagerFactory; //导入依赖的package包/类
@Test
public void mvnFailWithArgumentsBom() throws Exception {
    final String project = "srcdeps-mvn-git-bom-quickstart";
    SrcdepsCoreUtils.deleteDirectory(mvnLocalRepo.resolveGroup(groupId(project)));
    MavenExecutionResult result = build(project, "clean", "release:prepare");
    result.assertLogText(
            "SrcdepsLocalRepositoryManager will decorate " + TakariLocalRepositoryManagerFactory.class.getName()) //
            .assertLogText(
                    "This build was configured to fail if there is a source dependency [org.l2x6.maven.srcdeps.itest:srcdeps-test-artifact-api:0.0.2-SRC-revision-3d00c2a91af593c01c9439cb16cb5f52d2ddbcf8] and goal [release:prepare]")
            .assertLogText("BUILD FAILURE");
}
 
开发者ID:srcdeps,项目名称:srcdeps-maven,代码行数:12,代码来源:MavenDepsMavenIntegrationTest.java

示例3: mvnFailWithArgumentsDependency

import io.takari.aether.localrepo.TakariLocalRepositoryManagerFactory; //导入依赖的package包/类
@Test
public void mvnFailWithArgumentsDependency() throws Exception {
    final String project = "srcdeps-mvn-git-revision-quickstart";
    SrcdepsCoreUtils.deleteDirectory(mvnLocalRepo.resolveGroup(groupId(project)));

    MavenExecutionResult result = build(project, "clean", "release:prepare");
    result.assertLogText(
            "SrcdepsLocalRepositoryManager will decorate " + TakariLocalRepositoryManagerFactory.class.getName()) //
            .assertLogText(
                    "This build was configured to fail if there is a source dependency [org.l2x6.maven.srcdeps.itest:srcdeps-test-artifact:0.0.1-SRC-revision-66ea95d890531f4eaaa5aa04a9b1c69b409dcd0b] and goal [release:prepare]")
            .assertLogText("BUILD FAILURE");

}
 
开发者ID:srcdeps,项目名称:srcdeps-maven,代码行数:14,代码来源:MavenDepsMavenIntegrationTest.java

示例4: mvnFailWithArgumentsParent

import io.takari.aether.localrepo.TakariLocalRepositoryManagerFactory; //导入依赖的package包/类
@Test
public void mvnFailWithArgumentsParent() throws Exception {
    final String project = "srcdeps-mvn-git-parent-quickstart";
    SrcdepsCoreUtils.deleteDirectory(mvnLocalRepo.resolveGroup(groupId(project)));
    MavenExecutionResult result = build(project, "clean", "release:prepare");
    result.assertLogText(
            "SrcdepsLocalRepositoryManager will decorate " + TakariLocalRepositoryManagerFactory.class.getName()) //
            .assertLogText(
                    "This build was configured to fail if there is a source dependency [org.l2x6.maven.srcdeps.itest:srcdeps-test-artifact:0.0.2-SRC-revision-3d00c2a91af593c01c9439cb16cb5f52d2ddbcf8] and goal [release:prepare]")
            .assertLogText("BUILD FAILURE");
}
 
开发者ID:srcdeps,项目名称:srcdeps-maven,代码行数:12,代码来源:MavenDepsMavenIntegrationTest.java

示例5: mvnFailWithArgumentsProfile

import io.takari.aether.localrepo.TakariLocalRepositoryManagerFactory; //导入依赖的package包/类
@Test
public void mvnFailWithArgumentsProfile() throws Exception {
    final String project = "srcdeps-mvn-git-profile-quickstart";
    SrcdepsCoreUtils.deleteDirectory(mvnLocalRepo.resolveGroup(groupId(project)));
    MavenExecutionResult result = build(project, "clean", "install", "-Psrcdeps-profile");
    result.assertLogText(
            "SrcdepsLocalRepositoryManager will decorate " + TakariLocalRepositoryManagerFactory.class.getName()) //
            .assertLogText(
                    "This build was configured to fail if there is a source dependency [org.l2x6.maven.srcdeps.itest:srcdeps-test-artifact-api:0.0.2-SRC-revision-3d00c2a91af593c01c9439cb16cb5f52d2ddbcf8] and profile [srcdeps-profile]")
            .assertLogText("BUILD FAILURE");
}
 
开发者ID:srcdeps,项目名称:srcdeps-maven,代码行数:12,代码来源:MavenDepsMavenIntegrationTest.java

示例6: mvnFailWithArgumentsPropertyCli

import io.takari.aether.localrepo.TakariLocalRepositoryManagerFactory; //导入依赖的package包/类
@Test
public void mvnFailWithArgumentsPropertyCli() throws Exception {
    final String project = "srcdeps-mvn-git-bom-quickstart";
    SrcdepsCoreUtils.deleteDirectory(mvnLocalRepo.resolveGroup(groupId(project)));
    MavenExecutionResult result = build(project, "clean", "install", "-Dsrcdeps-fail-property");
    result.assertLogText(
            "SrcdepsLocalRepositoryManager will decorate " + TakariLocalRepositoryManagerFactory.class.getName()) //
            .assertLogText(
                    "This build was configured to fail if there is a source dependency [org.l2x6.maven.srcdeps.itest:srcdeps-test-artifact-api:0.0.2-SRC-revision-3d00c2a91af593c01c9439cb16cb5f52d2ddbcf8] and property [srcdeps-fail-property]")
            .assertLogText("BUILD FAILURE");
}
 
开发者ID:srcdeps,项目名称:srcdeps-maven,代码行数:12,代码来源:MavenDepsMavenIntegrationTest.java

示例7: mvnFailWithArgumentsPropertyCliOverride

import io.takari.aether.localrepo.TakariLocalRepositoryManagerFactory; //导入依赖的package包/类
@Test
public void mvnFailWithArgumentsPropertyCliOverride() throws Exception {
    final String project = "srcdeps-mvn-git-revision-quickstart";
    SrcdepsCoreUtils.deleteDirectory(mvnLocalRepo.resolveGroup(groupId(project)));
    MavenExecutionResult result = build(project, "clean", "install", "-Dsrcdeps-fail-property-cli",
            "-Dsrcdeps.maven.failWith.properties=srcdeps-fail-property-cli");
    result.assertLogText(
            "SrcdepsLocalRepositoryManager will decorate " + TakariLocalRepositoryManagerFactory.class.getName()) //
            .assertLogText(
                    "This build was configured to fail if there is a source dependency [org.l2x6.maven.srcdeps.itest:srcdeps-test-artifact:0.0.1-SRC-revision-66ea95d890531f4eaaa5aa04a9b1c69b409dcd0b] and property [srcdeps-fail-property-cli]")
            .assertLogText("BUILD FAILURE");
}
 
开发者ID:srcdeps,项目名称:srcdeps-maven,代码行数:13,代码来源:MavenDepsMavenIntegrationTest.java

示例8: mvnFailWithArgumentsPropertyPom

import io.takari.aether.localrepo.TakariLocalRepositoryManagerFactory; //导入依赖的package包/类
@Test
public void mvnFailWithArgumentsPropertyPom() throws Exception {
    final String project = "srcdeps-mvn-git-profile-quickstart";
    SrcdepsCoreUtils.deleteDirectory(mvnLocalRepo.resolveGroup(groupId(project)));
    MavenExecutionResult result = build(project, "clean", "install", "-Psrcdeps-property-profile");
    result.assertLogText(
            "SrcdepsLocalRepositoryManager will decorate " + TakariLocalRepositoryManagerFactory.class.getName()) //
            .assertLogText(
                    "This build was configured to fail if there is a source dependency [org.l2x6.maven.srcdeps.itest:srcdeps-test-artifact-api:0.0.2-SRC-revision-3d00c2a91af593c01c9439cb16cb5f52d2ddbcf8] and property [srcdeps-fail-property]")
            .assertLogText("BUILD FAILURE");
}
 
开发者ID:srcdeps,项目名称:srcdeps-maven,代码行数:12,代码来源:MavenDepsMavenIntegrationTest.java


注:本文中的io.takari.aether.localrepo.TakariLocalRepositoryManagerFactory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。