Class DefaultMetadataResolutionRequest
java.lang.Object
org.apache.maven.repository.legacy.metadata.DefaultMetadataResolutionRequest
- All Implemented Interfaces:
org.apache.maven.artifact.repository.RepositoryRequest,MetadataResolutionRequest
@Deprecated
public class DefaultMetadataResolutionRequest
extends Object
implements MetadataResolutionRequest
Deprecated.
Forms a request to retrieve artifact metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.DefaultMetadataResolutionRequest(org.apache.maven.artifact.repository.RepositoryRequest repositoryRequest) Deprecated.DefaultMetadataResolutionRequest(ArtifactResolutionRequest resolutionRequest) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.artifact.ArtifactDeprecated.Gets the artifact to resolve metadata for.org.apache.maven.artifact.repository.ArtifactRepositoryDeprecated.Gets the local repository to use for the resolution.List<org.apache.maven.artifact.repository.ArtifactRepository> Deprecated.Gets the remote repositories to use for the resolution.booleanDeprecated.booleanDeprecated.Indicates whether network access to remote repositories has been disabled.booleanDeprecated.Determines whether the managed version information should be retrieved.setArtifact(org.apache.maven.artifact.Artifact artifact) Deprecated.Sets the artifact for which to resolve metadata.setForceUpdate(boolean forceUpdate) Deprecated.setLocalRepository(org.apache.maven.artifact.repository.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<org.apache.maven.artifact.repository.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
-
DefaultMetadataResolutionRequest
public DefaultMetadataResolutionRequest()Deprecated. -
DefaultMetadataResolutionRequest
public DefaultMetadataResolutionRequest(org.apache.maven.artifact.repository.RepositoryRequest repositoryRequest) Deprecated. -
DefaultMetadataResolutionRequest
Deprecated.
-
-
Method Details
-
getArtifact
public org.apache.maven.artifact.Artifact getArtifact()Deprecated.Description copied from interface:MetadataResolutionRequestGets the artifact to resolve metadata for.- Specified by:
getArtifactin interfaceMetadataResolutionRequest- Returns:
- The artifact to resolve metadata for or
nullif not set.
-
setArtifact
Deprecated.Description copied from interface:MetadataResolutionRequestSets the artifact for which to resolve metadata.- Specified by:
setArtifactin interfaceMetadataResolutionRequest- Parameters:
artifact- The artifact for which to resolve metadata.- Returns:
- This request, never
null.
-
getLocalRepository
public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()Deprecated.Description copied from interface:MetadataResolutionRequestGets the local repository to use for the resolution.- Specified by:
getLocalRepositoryin interfaceMetadataResolutionRequest- Specified by:
getLocalRepositoryin interfaceorg.apache.maven.artifact.repository.RepositoryRequest- Returns:
- The local repository to use for the resolution or
nullif not set.
-
setLocalRepository
public DefaultMetadataResolutionRequest setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository) Deprecated.Description copied from interface:MetadataResolutionRequestSets the local repository to use for the resolution.- Specified by:
setLocalRepositoryin interfaceMetadataResolutionRequest- Specified by:
setLocalRepositoryin interfaceorg.apache.maven.artifact.repository.RepositoryRequest- Parameters:
localRepository- The local repository to use for the resolution.- Returns:
- This request, never
null.
-
getRemoteRepositories
Deprecated.Description copied from interface:MetadataResolutionRequestGets the remote repositories to use for the resolution.- Specified by:
getRemoteRepositoriesin interfaceMetadataResolutionRequest- Specified by:
getRemoteRepositoriesin interfaceorg.apache.maven.artifact.repository.RepositoryRequest- Returns:
- The remote repositories to use for the resolution, never
null.
-
setRemoteRepositories
public DefaultMetadataResolutionRequest setRemoteRepositories(List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories) Deprecated.Description copied from interface:MetadataResolutionRequestSets the remote repositories to use for the resolution.- Specified by:
setRemoteRepositoriesin interfaceMetadataResolutionRequest- Specified by:
setRemoteRepositoriesin interfaceorg.apache.maven.artifact.repository.RepositoryRequest- Parameters:
remoteRepositories- The remote repositories to use for the resolution.- Returns:
- This request, never
null.
-
isResolveManagedVersions
public boolean isResolveManagedVersions()Deprecated.Description copied from interface:MetadataResolutionRequestDetermines whether the managed version information should be retrieved.- Specified by:
isResolveManagedVersionsin interfaceMetadataResolutionRequest- Returns:
trueif the dependency management information should be retrieved,falseotherwise.
-
setResolveManagedVersions
Deprecated.Description copied from interface:MetadataResolutionRequestEnables/disables resolution of the dependency management information.- Specified by:
setResolveManagedVersionsin interfaceMetadataResolutionRequest- Parameters:
resolveManagedVersions-trueif the dependency management information should be retrieved,falseotherwise.- Returns:
- This request, never
null.
-
isOffline
public boolean isOffline()Deprecated.Description copied from interface:MetadataResolutionRequestIndicates whether network access to remote repositories has been disabled.- Specified by:
isOfflinein interfaceMetadataResolutionRequest- Specified by:
isOfflinein interfaceorg.apache.maven.artifact.repository.RepositoryRequest- Returns:
trueif remote access has been disabled,falseotherwise.
-
setOffline
Deprecated.Description copied from interface:MetadataResolutionRequestEnables/disables network access to remote repositories.- Specified by:
setOfflinein interfaceMetadataResolutionRequest- Specified by:
setOfflinein interfaceorg.apache.maven.artifact.repository.RepositoryRequest- Parameters:
offline-trueto disable remote access,falseto allow network access.- Returns:
- This request, never
null.
-
isForceUpdate
public boolean isForceUpdate()Deprecated.- Specified by:
isForceUpdatein interfaceorg.apache.maven.artifact.repository.RepositoryRequest
-
setForceUpdate
Deprecated.- Specified by:
setForceUpdatein interfaceorg.apache.maven.artifact.repository.RepositoryRequest
-