001 package org.apache.maven.repository.legacy.resolver; 002 003 /* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022 import java.util.List; 023 import java.util.Map; 024 import java.util.Set; 025 026 import org.apache.maven.artifact.Artifact; 027 import org.apache.maven.artifact.metadata.ArtifactMetadataSource; 028 import org.apache.maven.artifact.repository.ArtifactRepository; 029 import org.apache.maven.artifact.resolver.ArtifactResolutionRequest; 030 import org.apache.maven.artifact.resolver.ArtifactResolutionResult; 031 import org.apache.maven.artifact.resolver.ResolutionListener; 032 import org.apache.maven.artifact.resolver.filter.ArtifactFilter; 033 import org.apache.maven.repository.legacy.resolver.conflict.ConflictResolver; 034 035 /** 036 * Artifact collector - takes a set of original artifacts and resolves all of the best versions to use 037 * along with their metadata. No artifacts are downloaded. 038 * 039 * @author <a href="mailto:brett@apache.org">Brett Porter</a> 040 */ 041 @Deprecated 042 public interface LegacyArtifactCollector 043 { 044 045 ArtifactResolutionResult collect( Set<Artifact> artifacts, Artifact originatingArtifact, Map managedVersions, 046 ArtifactResolutionRequest repositoryRequest, ArtifactMetadataSource source, 047 ArtifactFilter filter, List<ResolutionListener> listeners, 048 List<ConflictResolver> conflictResolvers ); 049 050 ArtifactResolutionResult collect( Set<Artifact> artifacts, Artifact originatingArtifact, Map managedVersions, 051 ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, 052 ArtifactMetadataSource source, ArtifactFilter filter, 053 List<ResolutionListener> listeners, List<ConflictResolver> conflictResolvers ); 054 055 // used by maven-dependency-tree and maven-dependency-plugin 056 @Deprecated 057 ArtifactResolutionResult collect( Set<Artifact> artifacts, Artifact originatingArtifact, Map managedVersions, 058 ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, 059 ArtifactMetadataSource source, ArtifactFilter filter, 060 List<ResolutionListener> listeners ); 061 062 }