diff --git a/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java b/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java index 21efe5a502..5e4bb0460d 100644 --- a/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java +++ b/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java @@ -57,12 +57,6 @@ public class ArtifactResolverTest { super.setUp(); - for ( java.net.URL url : Collections.list( Thread.currentThread().getContextClassLoader().getResources( - "META-INF/plexus/components.xml" ) ) ) - { - System.err.println( url ); - } - artifactResolver = (DefaultArtifactResolver) lookup( ArtifactResolver.class ); projectArtifact = createLocalArtifact( "project", "3.0" ); diff --git a/maven-compat/src/test/java/org/apache/maven/repository/legacy/DummyArtifactMetadataSource.java b/maven-compat/src/test/java/org/apache/maven/repository/legacy/DummyArtifactMetadataSource.java deleted file mode 100644 index dae5107f5e..0000000000 --- a/maven-compat/src/test/java/org/apache/maven/repository/legacy/DummyArtifactMetadataSource.java +++ /dev/null @@ -1,65 +0,0 @@ -package org.apache.maven.repository.legacy; - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import java.util.List; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; -import org.apache.maven.artifact.metadata.ArtifactMetadataSource; -import org.apache.maven.artifact.metadata.ResolutionGroup; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.versioning.ArtifactVersion; -import org.apache.maven.repository.LegacyRepositorySystem; -import org.codehaus.plexus.component.annotations.Component; - -/** - * A dummy component to satisfy the requirements of {@link LegacyRepositorySystem}. - * - * @author Benjamin Bentmann - */ -@Component( role = ArtifactMetadataSource.class ) -public class DummyArtifactMetadataSource - implements ArtifactMetadataSource -{ - - public ResolutionGroup retrieve( Artifact artifact, ArtifactRepository localRepository, - List remoteRepositories ) - throws ArtifactMetadataRetrievalException - { - return null; - } - - public List retrieveAvailableVersions( Artifact artifact, ArtifactRepository localRepository, - List remoteRepositories ) - throws ArtifactMetadataRetrievalException - { - return null; - } - - public List retrieveAvailableVersionsFromDeploymentRepository( Artifact artifact, - ArtifactRepository localRepository, - ArtifactRepository remoteRepository ) - throws ArtifactMetadataRetrievalException - { - return null; - } - -}