Interface ModuleRepositoryResolver
-
public interface ModuleRepositoryResolver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<MavenRepositoryMetadata>getRemoteRepositoriesMetaData()Get a collection of Repositories a Module will resolve artifacts against.Set<MavenRepositoryMetadata>getRemoteRepositoriesMetaData(Module module)Get a collection of Repositories a Module will resolve artifacts against.Set<MavenRepositoryMetadata>getRepositoriesResolvingArtifact(String pom, MavenRepositoryMetadata... filter)Get a collection of Repositories that a given GAV resolve against.Set<MavenRepositoryMetadata>getRepositoriesResolvingArtifact(GAV gav, MavenRepositoryMetadata... filter)Get a collection of Repositories that a given GAV resolve against.Set<MavenRepositoryMetadata>getRepositoriesResolvingArtifact(GAV gav, Module module, MavenRepositoryMetadata... filter)Get a collection of Repositories that a given GAV resolve against.
-
-
-
Method Detail
-
getRemoteRepositoriesMetaData
Set<MavenRepositoryMetadata> getRemoteRepositoriesMetaData()
Get a collection of Repositories a Module will resolve artifacts against. The list will include any Repositories defined in settings.xml- Returns:
-
getRemoteRepositoriesMetaData
Set<MavenRepositoryMetadata> getRemoteRepositoriesMetaData(Module module)
Get a collection of Repositories a Module will resolve artifacts against. The list will include any Repositories defined in the Module's pomsection, any Repositories defined in the Module's pom or parent pom(s) and in settings.xml - Parameters:
module- The Module to retrieve Repository information.- Returns:
-
getRepositoriesResolvingArtifact
Set<MavenRepositoryMetadata> getRepositoriesResolvingArtifact(GAV gav, MavenRepositoryMetadata... filter)
Get a collection of Repositories that a given GAV resolve against.- Parameters:
gav- The GAV for the artifact to resolvefilter- An optional Set of MavenRepositoryMetadata to filter the results. Those in the filter are included. If a filter is not provided all results are returned.- Returns:
- A collection of RemoteRepositories that resolve the provided GAV; i.e. an Artifact already exists for the GAV
-
getRepositoriesResolvingArtifact
Set<MavenRepositoryMetadata> getRepositoriesResolvingArtifact(GAV gav, Module module, MavenRepositoryMetadata... filter)
Get a collection of Repositories that a given GAV resolve against.- Parameters:
gav- The GAV for the artifact to resolvemodule- The Module who's RemoteRepository information will be used to resolve the artifact.filter- An optional Set of MavenRepositoryMetadata to filter the results. Those in the filter are included. If a filter is not provided all results are returned.- Returns:
- A collection of RemoteRepositories that resolve the provided GAV; i.e. an Artifact already exists for the GAV
-
getRepositoriesResolvingArtifact
Set<MavenRepositoryMetadata> getRepositoriesResolvingArtifact(String pom, MavenRepositoryMetadata... filter)
Get a collection of Repositories that a given GAV resolve against.- Parameters:
pom- The POM containing prospective GAV and repository configuration (in addition to settings.xml)filter- An optional Set of MavenRepositoryMetadata to filter the results. Those in the filter are included. If a filter is not provided all results are returned.- Returns:
- A collection of RemoteRepositories that resolve the provided GAV; i.e. an Artifact already exists for the GAV
-
-