Interface MetadataResolutionRequest
-
- All Superinterfaces:
RepositoryRequest
- All Known Implementing Classes:
DefaultMetadataResolutionRequest
public interface MetadataResolutionRequest extends RepositoryRequest
Forms a request to retrieve artifact metadata.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArtifactgetArtifact()Gets the artifact to resolve metadata for.ArtifactRepositorygetLocalRepository()Gets the local repository to use for the resolution.java.util.List<ArtifactRepository>getRemoteRepositories()Gets the remote repositories to use for the resolution.booleanisOffline()Indicates whether network access to remote repositories has been disabled.booleanisResolveManagedVersions()Determines whether the managed version information should be retrieved.MetadataResolutionRequestsetArtifact(Artifact artifact)Sets the artifact for which to resolve metadata.MetadataResolutionRequestsetLocalRepository(ArtifactRepository localRepository)Sets the local repository to use for the resolution.MetadataResolutionRequestsetOffline(boolean offline)Enables/disables network access to remote repositories.MetadataResolutionRequestsetRemoteRepositories(java.util.List<ArtifactRepository> remoteRepositories)Sets the remote repositories to use for the resolution.MetadataResolutionRequestsetResolveManagedVersions(boolean resolveManagedVersions)Enables/disables resolution of the dependency management information.-
Methods inherited from interface org.apache.maven.artifact.repository.RepositoryRequest
isForceUpdate, setForceUpdate
-
-
-
-
Method Detail
-
isOffline
boolean isOffline()
Indicates whether network access to remote repositories has been disabled.- Specified by:
isOfflinein interfaceRepositoryRequest- Returns:
trueif remote access has been disabled,falseotherwise.
-
setOffline
MetadataResolutionRequest setOffline(boolean offline)
Enables/disables network access to remote repositories.- Specified by:
setOfflinein interfaceRepositoryRequest- Parameters:
offline-trueto disable remote access,falseto allow network access.- Returns:
- This request, never
null.
-
getArtifact
Artifact getArtifact()
Gets the artifact to resolve metadata for.- Returns:
- The artifact to resolve metadata for or
nullif not set.
-
setArtifact
MetadataResolutionRequest setArtifact(Artifact artifact)
Sets the artifact for which to resolve metadata.- Parameters:
artifact- The artifact for which to resolve metadata.- Returns:
- This request, never
null.
-
getLocalRepository
ArtifactRepository getLocalRepository()
Gets the local repository to use for the resolution.- Specified by:
getLocalRepositoryin interfaceRepositoryRequest- Returns:
- The local repository to use for the resolution or
nullif not set.
-
setLocalRepository
MetadataResolutionRequest setLocalRepository(ArtifactRepository localRepository)
Sets the local repository to use for the resolution.- Specified by:
setLocalRepositoryin interfaceRepositoryRequest- Parameters:
localRepository- The local repository to use for the resolution.- Returns:
- This request, never
null.
-
getRemoteRepositories
java.util.List<ArtifactRepository> getRemoteRepositories()
Gets the remote repositories to use for the resolution.- Specified by:
getRemoteRepositoriesin interfaceRepositoryRequest- Returns:
- The remote repositories to use for the resolution, never
null.
-
setRemoteRepositories
MetadataResolutionRequest setRemoteRepositories(java.util.List<ArtifactRepository> remoteRepositories)
Sets the remote repositories to use for the resolution.- Specified by:
setRemoteRepositoriesin interfaceRepositoryRequest- Parameters:
remoteRepositories- The remote repositories to use for the resolution.- Returns:
- This request, never
null.
-
isResolveManagedVersions
boolean isResolveManagedVersions()
Determines whether the managed version information should be retrieved.- Returns:
trueif the dependency management information should be retrieved,falseotherwise.
-
setResolveManagedVersions
MetadataResolutionRequest setResolveManagedVersions(boolean resolveManagedVersions)
Enables/disables resolution of the dependency management information.- Parameters:
resolveManagedVersions-trueif the dependency management information should be retrieved,falseotherwise.- Returns:
- This request, never
null.
-
-