Search in sources :

Example 16 with DependencyArtifactStubFactory

use of org.apache.maven.plugins.dependency.testUtils.DependencyArtifactStubFactory in project maven-plugins by apache.

the class TestMarkerFileFilter method setUp.

protected void setUp() throws Exception {
    super.setUp();
    outputFolder = new File("target/markers/");
    DependencyTestUtils.removeDirectory(outputFolder);
    assertFalse(outputFolder.exists());
    this.fact = new DependencyArtifactStubFactory(outputFolder, false);
    artifacts = fact.getReleaseAndSnapshotArtifacts();
}
Also used : File(java.io.File) DependencyArtifactStubFactory(org.apache.maven.plugins.dependency.testUtils.DependencyArtifactStubFactory)

Aggregations

DependencyArtifactStubFactory (org.apache.maven.plugins.dependency.testUtils.DependencyArtifactStubFactory)16 File (java.io.File)12 Artifact (org.apache.maven.artifact.Artifact)6 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 DefaultArtifactFactory (org.apache.maven.artifact.factory.DefaultArtifactFactory)2 DefaultArtifactHandlerManager (org.apache.maven.artifact.handler.manager.DefaultArtifactHandlerManager)2 MavenSession (org.apache.maven.execution.MavenSession)2 Dependency (org.apache.maven.model.Dependency)2 DependencyManagement (org.apache.maven.model.DependencyManagement)2 Exclusion (org.apache.maven.model.Exclusion)2 MavenProjectStub (org.apache.maven.plugin.testing.stubs.MavenProjectStub)2 StubArtifactRepository (org.apache.maven.plugin.testing.stubs.StubArtifactRepository)2 AnalyzeDepMgt (org.apache.maven.plugins.dependency.analyze.AnalyzeDepMgt)2 ArtifactItem (org.apache.maven.plugins.dependency.fromConfiguration.ArtifactItem)2 DependencyProjectStub (org.apache.maven.plugins.dependency.testUtils.stubs.DependencyProjectStub)2 DefaultFileMarkerHandler (org.apache.maven.plugins.dependency.utils.markers.DefaultFileMarkerHandler)2 MavenProject (org.apache.maven.project.MavenProject)2 RepositoryManager (org.apache.maven.shared.repository.RepositoryManager)2