mirror of https://github.com/apache/maven.git
o Restored backward-compat
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@834908 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
27ff5d5c41
commit
1acffe2e2b
|
@ -19,8 +19,24 @@ package org.apache.maven.artifact.resolver;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
import org.apache.maven.artifact.metadata.ArtifactMetadataSource;
|
||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
||||
import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
|
||||
|
||||
@Deprecated
|
||||
public interface ArtifactCollector
|
||||
extends org.apache.maven.repository.legacy.resolver.LegacyArtifactCollector
|
||||
{
|
||||
|
||||
@Deprecated
|
||||
ArtifactResolutionResult collect( Set<Artifact> artifacts, Artifact originatingArtifact,
|
||||
ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories,
|
||||
ArtifactMetadataSource source, ArtifactFilter filter,
|
||||
List<ResolutionListener> listeners )
|
||||
throws ArtifactResolutionException;
|
||||
|
||||
}
|
||||
|
|
|
@ -32,8 +32,6 @@ import org.apache.maven.artifact.Artifact;
|
|||
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.repository.DefaultRepositoryRequest;
|
||||
import org.apache.maven.artifact.repository.RepositoryRequest;
|
||||
import org.apache.maven.artifact.resolver.ArtifactResolutionException;
|
||||
import org.apache.maven.artifact.resolver.ArtifactResolutionRequest;
|
||||
import org.apache.maven.artifact.resolver.ArtifactResolutionResult;
|
||||
|
@ -773,4 +771,14 @@ public class DefaultLegacyArtifactCollector
|
|||
filter, listeners, null );
|
||||
}
|
||||
|
||||
public ArtifactResolutionResult collect( Set<Artifact> artifacts, Artifact originatingArtifact,
|
||||
ArtifactRepository localRepository,
|
||||
List<ArtifactRepository> remoteRepositories,
|
||||
ArtifactMetadataSource source, ArtifactFilter filter,
|
||||
List<ResolutionListener> listeners )
|
||||
{
|
||||
return collect( artifacts, originatingArtifact, null, localRepository, remoteRepositories, source, filter,
|
||||
listeners );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue