Interface MetadataResolutionRequest
- All Superinterfaces:
- RepositoryRequest
- All Known Implementing Classes:
- DefaultMetadataResolutionRequest
Forms a request to retrieve artifact metadata.
- Author:
- Benjamin Bentmann
- 
Method SummaryModifier and TypeMethodDescriptionGets the artifact to resolve metadata for.Gets the local repository to use for the resolution.Gets the remote repositories to use for the resolution.booleanIndicates whether network access to remote repositories has been disabled.booleanDetermines whether the managed version information should be retrieved.setArtifact(Artifact artifact) Sets the artifact for which to resolve metadata.setLocalRepository(ArtifactRepository localRepository) Sets the local repository to use for the resolution.setOffline(boolean offline) Enables/disables network access to remote repositories.setRemoteRepositories(List<ArtifactRepository> remoteRepositories) Sets the remote repositories to use for the resolution.setResolveManagedVersions(boolean resolveManagedVersions) Enables/disables resolution of the dependency management information.Methods inherited from interface org.apache.maven.artifact.repository.RepositoryRequestisForceUpdate, setForceUpdate
- 
Method Details- 
isOfflineboolean isOffline()Indicates whether network access to remote repositories has been disabled.- Specified by:
- isOfflinein interface- RepositoryRequest
- Returns:
- trueif remote access has been disabled,- falseotherwise.
 
- 
setOfflineEnables/disables network access to remote repositories.- Specified by:
- setOfflinein interface- RepositoryRequest
- Parameters:
- offline-- trueto disable remote access,- falseto allow network access.
- Returns:
- This request, never null.
 
- 
getArtifactArtifact getArtifact()Gets the artifact to resolve metadata for.- Returns:
- The artifact to resolve metadata for or nullif not set.
 
- 
setArtifactSets the artifact for which to resolve metadata.- Parameters:
- artifact- The artifact for which to resolve metadata.
- Returns:
- This request, never null.
 
- 
getLocalRepositoryArtifactRepository getLocalRepository()Gets the local repository to use for the resolution.- Specified by:
- getLocalRepositoryin interface- RepositoryRequest
- Returns:
- The local repository to use for the resolution or nullif not set.
 
- 
setLocalRepositorySets the local repository to use for the resolution.- Specified by:
- setLocalRepositoryin interface- RepositoryRequest
- Parameters:
- localRepository- The local repository to use for the resolution.
- Returns:
- This request, never null.
 
- 
getRemoteRepositoriesList<ArtifactRepository> getRemoteRepositories()Gets the remote repositories to use for the resolution.- Specified by:
- getRemoteRepositoriesin interface- RepositoryRequest
- Returns:
- The remote repositories to use for the resolution, never null.
 
- 
setRemoteRepositoriesSets the remote repositories to use for the resolution.- Specified by:
- setRemoteRepositoriesin interface- RepositoryRequest
- Parameters:
- remoteRepositories- The remote repositories to use for the resolution.
- Returns:
- This request, never null.
 
- 
isResolveManagedVersionsboolean isResolveManagedVersions()Determines whether the managed version information should be retrieved.- Returns:
- trueif the dependency management information should be retrieved,- falseotherwise.
 
- 
setResolveManagedVersionsEnables/disables resolution of the dependency management information.- Parameters:
- resolveManagedVersions-- trueif the dependency management information should be retrieved,- falseotherwise.
- Returns:
- This request, never null.
 
 
-