Class DefaultMetadataResolutionRequest
java.lang.Object
org.apache.maven.repository.legacy.metadata.DefaultMetadataResolutionRequest
- All Implemented Interfaces:
- RepositoryRequest,- MetadataResolutionRequest
@Deprecated
public class DefaultMetadataResolutionRequest
extends Object
implements MetadataResolutionRequest
Deprecated.
Forms a request to retrieve artifact metadata.
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.DefaultMetadataResolutionRequest(RepositoryRequest repositoryRequest) Deprecated.DefaultMetadataResolutionRequest(ArtifactResolutionRequest resolutionRequest) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionDeprecated.Gets the artifact to resolve metadata for.Deprecated.Gets the local repository to use for the resolution.Deprecated.Gets the remote repositories to use for the resolution.booleanDeprecated.Indicates whether remote repositories should be re-checked for updated artifacts/metadata regardless of their configured update policy.booleanDeprecated.Indicates whether network access to remote repositories has been disabled.booleanDeprecated.Determines whether the managed version information should be retrieved.setArtifact(Artifact artifact) Deprecated.Sets the artifact for which to resolve metadata.setForceUpdate(boolean forceUpdate) Deprecated.Enables/disabled forced checks for updated artifacts/metadata on remote repositories.setLocalRepository(ArtifactRepository localRepository) Deprecated.Sets the local repository to use for the resolution.setOffline(boolean offline) Deprecated.Enables/disables network access to remote repositories.setRemoteRepositories(List<ArtifactRepository> remoteRepositories) Deprecated.Sets the remote repositories to use for the resolution.setResolveManagedVersions(boolean resolveManagedVersions) Deprecated.Enables/disables resolution of the dependency management information.
- 
Constructor Details- 
DefaultMetadataResolutionRequestpublic DefaultMetadataResolutionRequest()Deprecated.
- 
DefaultMetadataResolutionRequestDeprecated.
- 
DefaultMetadataResolutionRequestDeprecated.
 
- 
- 
Method Details- 
getArtifactDeprecated.Description copied from interface:MetadataResolutionRequestGets the artifact to resolve metadata for.- Specified by:
- getArtifactin interface- MetadataResolutionRequest
- Returns:
- The artifact to resolve metadata for or nullif not set.
 
- 
setArtifactDeprecated.Description copied from interface:MetadataResolutionRequestSets the artifact for which to resolve metadata.- Specified by:
- setArtifactin interface- MetadataResolutionRequest
- Parameters:
- artifact- The artifact for which to resolve metadata.
- Returns:
- This request, never null.
 
- 
getLocalRepositoryDeprecated.Description copied from interface:MetadataResolutionRequestGets the local repository to use for the resolution.- Specified by:
- getLocalRepositoryin interface- MetadataResolutionRequest
- Specified by:
- getLocalRepositoryin interface- RepositoryRequest
- Returns:
- The local repository to use for the resolution or nullif not set.
 
- 
setLocalRepositoryDeprecated.Description copied from interface:MetadataResolutionRequestSets the local repository to use for the resolution.- Specified by:
- setLocalRepositoryin interface- MetadataResolutionRequest
- Specified by:
- setLocalRepositoryin interface- RepositoryRequest
- Parameters:
- localRepository- The local repository to use for the resolution.
- Returns:
- This request, never null.
 
- 
getRemoteRepositoriesDeprecated.Description copied from interface:MetadataResolutionRequestGets the remote repositories to use for the resolution.- Specified by:
- getRemoteRepositoriesin interface- MetadataResolutionRequest
- Specified by:
- getRemoteRepositoriesin interface- RepositoryRequest
- Returns:
- The remote repositories to use for the resolution, never null.
 
- 
setRemoteRepositoriespublic DefaultMetadataResolutionRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories) Deprecated.Description copied from interface:MetadataResolutionRequestSets the remote repositories to use for the resolution.- Specified by:
- setRemoteRepositoriesin interface- MetadataResolutionRequest
- Specified by:
- setRemoteRepositoriesin interface- RepositoryRequest
- Parameters:
- remoteRepositories- The remote repositories to use for the resolution.
- Returns:
- This request, never null.
 
- 
isResolveManagedVersionspublic boolean isResolveManagedVersions()Deprecated.Description copied from interface:MetadataResolutionRequestDetermines whether the managed version information should be retrieved.- Specified by:
- isResolveManagedVersionsin interface- MetadataResolutionRequest
- Returns:
- trueif the dependency management information should be retrieved,- falseotherwise.
 
- 
setResolveManagedVersionsDeprecated.Description copied from interface:MetadataResolutionRequestEnables/disables resolution of the dependency management information.- Specified by:
- setResolveManagedVersionsin interface- MetadataResolutionRequest
- Parameters:
- resolveManagedVersions-- trueif the dependency management information should be retrieved,- falseotherwise.
- Returns:
- This request, never null.
 
- 
isOfflinepublic boolean isOffline()Deprecated.Description copied from interface:MetadataResolutionRequestIndicates whether network access to remote repositories has been disabled.- Specified by:
- isOfflinein interface- MetadataResolutionRequest
- Specified by:
- isOfflinein interface- RepositoryRequest
- Returns:
- trueif remote access has been disabled,- falseotherwise.
 
- 
setOfflineDeprecated.Description copied from interface:MetadataResolutionRequestEnables/disables network access to remote repositories.- Specified by:
- setOfflinein interface- MetadataResolutionRequest
- Specified by:
- setOfflinein interface- RepositoryRequest
- Parameters:
- offline-- trueto disable remote access,- falseto allow network access.
- Returns:
- This request, never null.
 
- 
isForceUpdatepublic boolean isForceUpdate()Deprecated.Description copied from interface:RepositoryRequestIndicates whether remote repositories should be re-checked for updated artifacts/metadata regardless of their configured update policy.- Specified by:
- isForceUpdatein interface- RepositoryRequest
- Returns:
- trueif remote repositories should be re-checked for updated artifacts/metadata,- falseotherwise.
 
- 
setForceUpdateDeprecated.Description copied from interface:RepositoryRequestEnables/disabled forced checks for updated artifacts/metadata on remote repositories.- Specified by:
- setForceUpdatein interface- RepositoryRequest
- Parameters:
- forceUpdate-- trueto forcibly check the remote repositories for updated artifacts/metadata,- falseto use the update policy configured on each repository.
- Returns:
- This request, never null.
 
 
-