View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.repository.legacy.resolver;
20  
21  import java.util.List;
22  import java.util.Map;
23  import java.util.Set;
24  
25  import org.apache.maven.artifact.Artifact;
26  import org.apache.maven.artifact.metadata.ArtifactMetadataSource;
27  import org.apache.maven.artifact.repository.ArtifactRepository;
28  import org.apache.maven.artifact.resolver.ArtifactResolutionRequest;
29  import org.apache.maven.artifact.resolver.ArtifactResolutionResult;
30  import org.apache.maven.artifact.resolver.ResolutionListener;
31  import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
32  import org.apache.maven.repository.legacy.resolver.conflict.ConflictResolver;
33  
34  /**
35   * Artifact collector - takes a set of original artifacts and resolves all of the best versions to use
36   * along with their metadata. No artifacts are downloaded.
37   *
38   * @author <a href="mailto:brett@apache.org">Brett Porter</a>
39   */
40  @Deprecated
41  @SuppressWarnings("checkstyle:parameternumber")
42  public interface LegacyArtifactCollector {
43  
44      ArtifactResolutionResult collect(
45              Set<Artifact> artifacts,
46              Artifact originatingArtifact,
47              Map<String, Artifact> managedVersions,
48              ArtifactResolutionRequest repositoryRequest,
49              ArtifactMetadataSource source,
50              ArtifactFilter filter,
51              List<ResolutionListener> listeners,
52              List<ConflictResolver> conflictResolvers);
53  
54      ArtifactResolutionResult collect(
55              Set<Artifact> artifacts,
56              Artifact originatingArtifact,
57              Map<String, Artifact> managedVersions,
58              ArtifactRepository localRepository,
59              List<ArtifactRepository> remoteRepositories,
60              ArtifactMetadataSource source,
61              ArtifactFilter filter,
62              List<ResolutionListener> listeners,
63              List<ConflictResolver> conflictResolvers);
64  
65      // used by maven-dependency-tree and maven-dependency-plugin
66      @Deprecated
67      ArtifactResolutionResult collect(
68              Set<Artifact> artifacts,
69              Artifact originatingArtifact,
70              Map<String, Artifact> managedVersions,
71              ArtifactRepository localRepository,
72              List<ArtifactRepository> remoteRepositories,
73              ArtifactMetadataSource source,
74              ArtifactFilter filter,
75              List<ResolutionListener> listeners);
76  }