本文整理汇总了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);
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}