diff --git a/src/test/java/org/apache/maven/plugins/dependency/utils/translators/TestClassifierTypeTranslator.java b/src/test/java/org/apache/maven/plugins/dependency/utils/translators/TestClassifierTypeTranslator.java index 93fd632c9..86b35142e 100644 --- a/src/test/java/org/apache/maven/plugins/dependency/utils/translators/TestClassifierTypeTranslator.java +++ b/src/test/java/org/apache/maven/plugins/dependency/utils/translators/TestClassifierTypeTranslator.java @@ -24,8 +24,6 @@ import java.util.Set; import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.factory.ArtifactFactory; -import org.apache.maven.artifact.factory.DefaultArtifactFactory; import org.apache.maven.artifact.handler.manager.ArtifactHandlerManager; import org.apache.maven.artifact.handler.manager.DefaultArtifactHandlerManager; import org.apache.maven.artifact.repository.ArtifactRepository; @@ -44,8 +42,6 @@ public class TestClassifierTypeTranslator extends AbstractDependencyMojoTestCase { Set artifacts = new HashSet<>(); - ArtifactFactory artifactFactory; - ArtifactRepository artifactRepository; Log log = new SilentLog(); @@ -59,9 +55,6 @@ protected void setUp() throws Exception { artifactHandlerManager = new DefaultArtifactHandlerManager(); this.setVariableValueToObject(artifactHandlerManager, "artifactHandlers", new HashMap<>()); - artifactFactory = new DefaultArtifactFactory(); - this.setVariableValueToObject(artifactFactory, "artifactHandlerManager", artifactHandlerManager); - artifactRepository = new StubArtifactRepository(null); DependencyArtifactStubFactory factory = new DependencyArtifactStubFactory(null, false);