Search in sources :

Example 16 with DefaultPlexusContainer

use of org.codehaus.plexus.DefaultPlexusContainer 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

DefaultPlexusContainer (org.codehaus.plexus.DefaultPlexusContainer)16 DefaultContainerConfiguration (org.codehaus.plexus.DefaultContainerConfiguration)8 PlexusContainer (org.codehaus.plexus.PlexusContainer)6 PlexusContainerException (org.codehaus.plexus.PlexusContainerException)6 DefaultMavenExecutionRequest (org.apache.maven.execution.DefaultMavenExecutionRequest)5 MavenExecutionRequest (org.apache.maven.execution.MavenExecutionRequest)5 ContainerConfiguration (org.codehaus.plexus.ContainerConfiguration)5 ClassWorld (org.codehaus.plexus.classworlds.ClassWorld)5 File (java.io.File)4 DefaultMavenExecutionResult (org.apache.maven.execution.DefaultMavenExecutionResult)4 MavenSession (org.apache.maven.execution.MavenSession)4 ClassRealm (org.codehaus.plexus.classworlds.realm.ClassRealm)4 AbstractModule (com.google.inject.AbstractModule)3 MavenExecutionRequestPopulationException (org.apache.maven.execution.MavenExecutionRequestPopulationException)3 MavenExecutionRequestPopulator (org.apache.maven.execution.MavenExecutionRequestPopulator)3 IOException (java.io.IOException)2 ParseException (org.apache.commons.cli.ParseException)2 ArtifactRepository (org.apache.maven.artifact.repository.ArtifactRepository)2 MavenArtifactRepository (org.apache.maven.artifact.repository.MavenArtifactRepository)2 CoreExports (org.apache.maven.extension.internal.CoreExports)2