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   */
39  @Deprecated
40  @SuppressWarnings("checkstyle:parameternumber")
41  public interface LegacyArtifactCollector {
42  
43      ArtifactResolutionResult collect(
44              Set<Artifact> artifacts,
45              Artifact originatingArtifact,
46              Map<String, Artifact> managedVersions,
47              ArtifactResolutionRequest repositoryRequest,
48              ArtifactMetadataSource source,
49              ArtifactFilter filter,
50              List<ResolutionListener> listeners,
51              List<ConflictResolver> conflictResolvers);
52  
53      ArtifactResolutionResult collect(
54              Set<Artifact> artifacts,
55              Artifact originatingArtifact,
56              Map<String, Artifact> managedVersions,
57              ArtifactRepository localRepository,
58              List<ArtifactRepository> remoteRepositories,
59              ArtifactMetadataSource source,
60              ArtifactFilter filter,
61              List<ResolutionListener> listeners,
62              List<ConflictResolver> conflictResolvers);
63  
64      // used by maven-dependency-tree and maven-dependency-plugin
65      @Deprecated
66      ArtifactResolutionResult collect(
67              Set<Artifact> artifacts,
68              Artifact originatingArtifact,
69              Map<String, Artifact> managedVersions,
70              ArtifactRepository localRepository,
71              List<ArtifactRepository> remoteRepositories,
72              ArtifactMetadataSource source,
73              ArtifactFilter filter,
74              List<ResolutionListener> listeners);
75  }