Search in sources :

Example 1 with LocalMavenRepositoryTool

use of org.eclipse.tycho.test.util.LocalMavenRepositoryTool in project tycho by eclipse.

the class PomDependencyOnLocallyBuiltTychoArtifactTest method setUpBundleWithSourceBundle.

private void setUpBundleWithSourceBundle() throws Exception {
    Verifier testDataProject = getVerifier("pomDependencyConsider.p2Data.reuse/testDataBundle", false);
    testDataProject.executeGoal("install");
    testDataProject.verifyErrorFreeLog();
    // prevent that the created bundle & source bundle can be automatically seen by other Tycho builds
    LocalMavenRepositoryTool localRepo = new DefaultPlexusContainer().lookup(LocalMavenRepositoryTool.class);
    localRepo.removeLinesFromMetadataIndex(TEST_PROJECT_POM_DEPENDENCY.getGroupId() + ":" + TEST_PROJECT_POM_DEPENDENCY.getArtifactId() + ":" + TEST_PROJECT_POM_DEPENDENCY.getVersion());
}
Also used : LocalMavenRepositoryTool(org.eclipse.tycho.test.util.LocalMavenRepositoryTool) DefaultPlexusContainer(org.codehaus.plexus.DefaultPlexusContainer) Verifier(org.apache.maven.it.Verifier)

Aggregations

Verifier (org.apache.maven.it.Verifier)1 DefaultPlexusContainer (org.codehaus.plexus.DefaultPlexusContainer)1 LocalMavenRepositoryTool (org.eclipse.tycho.test.util.LocalMavenRepositoryTool)1