| 1 | |
package org.apache.maven.artifact.resolver; |
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
|
| 18 | |
|
| 19 | |
|
| 20 | |
|
| 21 | |
|
| 22 | |
import org.apache.maven.artifact.Artifact; |
| 23 | |
import org.apache.maven.artifact.metadata.ArtifactMetadataSource; |
| 24 | |
import org.apache.maven.artifact.repository.ArtifactRepository; |
| 25 | |
import org.apache.maven.artifact.resolver.filter.ArtifactFilter; |
| 26 | |
|
| 27 | |
import java.util.List; |
| 28 | |
import java.util.Map; |
| 29 | |
import java.util.Set; |
| 30 | |
|
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
|
| 36 | |
|
| 37 | |
|
| 38 | |
|
| 39 | |
|
| 40 | |
public interface ArtifactResolver |
| 41 | |
{ |
| 42 | 0 | String ROLE = ArtifactResolver.class.getName(); |
| 43 | |
|
| 44 | |
void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) |
| 45 | |
throws ArtifactResolutionException, ArtifactNotFoundException; |
| 46 | |
|
| 47 | |
ArtifactResolutionResult resolveTransitively( Set artifacts, |
| 48 | |
Artifact originatingArtifact, |
| 49 | |
List remoteRepositories, |
| 50 | |
ArtifactRepository localRepository, |
| 51 | |
ArtifactMetadataSource source ) |
| 52 | |
throws ArtifactResolutionException, ArtifactNotFoundException; |
| 53 | |
|
| 54 | |
ArtifactResolutionResult resolveTransitively( Set artifacts, |
| 55 | |
Artifact originatingArtifact, |
| 56 | |
List remoteRepositories, |
| 57 | |
ArtifactRepository localRepository, |
| 58 | |
ArtifactMetadataSource source, |
| 59 | |
List listeners ) |
| 60 | |
throws ArtifactResolutionException, ArtifactNotFoundException; |
| 61 | |
|
| 62 | |
ArtifactResolutionResult resolveTransitively( Set artifacts, |
| 63 | |
Artifact originatingArtifact, |
| 64 | |
ArtifactRepository localRepository, |
| 65 | |
List remoteRepositories, |
| 66 | |
ArtifactMetadataSource source, |
| 67 | |
ArtifactFilter filter ) |
| 68 | |
throws ArtifactResolutionException, ArtifactNotFoundException; |
| 69 | |
|
| 70 | |
ArtifactResolutionResult resolveTransitively( Set artifacts, |
| 71 | |
Artifact originatingArtifact, |
| 72 | |
Map managedVersions, |
| 73 | |
ArtifactRepository localRepository, |
| 74 | |
List remoteRepositories, |
| 75 | |
ArtifactMetadataSource source ) |
| 76 | |
throws ArtifactResolutionException, ArtifactNotFoundException; |
| 77 | |
|
| 78 | |
ArtifactResolutionResult resolveTransitively( Set artifacts, |
| 79 | |
Artifact originatingArtifact, |
| 80 | |
Map managedVersions, |
| 81 | |
ArtifactRepository localRepository, |
| 82 | |
List remoteRepositories, |
| 83 | |
ArtifactMetadataSource source, ArtifactFilter filter ) |
| 84 | |
throws ArtifactResolutionException, ArtifactNotFoundException; |
| 85 | |
|
| 86 | |
ArtifactResolutionResult resolveTransitively( Set artifacts, |
| 87 | |
Artifact originatingArtifact, |
| 88 | |
Map managedVersions, |
| 89 | |
ArtifactRepository localRepository, |
| 90 | |
List remoteRepositories, |
| 91 | |
ArtifactMetadataSource source, |
| 92 | |
ArtifactFilter filter, |
| 93 | |
List listeners ) |
| 94 | |
throws ArtifactResolutionException, ArtifactNotFoundException; |
| 95 | |
|
| 96 | |
void resolveAlways( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository ) |
| 97 | |
throws ArtifactResolutionException, ArtifactNotFoundException; |
| 98 | |
} |