RepositoryRequest, MetadataResolutionRequestpublic class DefaultMetadataResolutionRequest extends java.lang.Object implements MetadataResolutionRequest
| Constructor | Description |
|---|---|
DefaultMetadataResolutionRequest() |
|
DefaultMetadataResolutionRequest(RepositoryRequest repositoryRequest) |
|
DefaultMetadataResolutionRequest(ArtifactResolutionRequest resolutionRequest) |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.maven.artifact.Artifact |
getArtifact() |
Gets the artifact to resolve metadata for.
|
org.apache.maven.artifact.repository.ArtifactRepository |
getLocalRepository() |
Gets the local repository to use for the resolution.
|
java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> |
getRemoteRepositories() |
Gets the remote repositories to use for the resolution.
|
boolean |
isForceUpdate() |
Indicates whether remote repositories should be re-checked for updated artifacts/metadata regardless of their
configured update policy.
|
boolean |
isOffline() |
Indicates whether network access to remote repositories has been disabled.
|
boolean |
isResolveManagedVersions() |
Determines whether the managed version information should be retrieved.
|
DefaultMetadataResolutionRequest |
setArtifact(org.apache.maven.artifact.Artifact artifact) |
Sets the artifact for which to resolve metadata.
|
DefaultMetadataResolutionRequest |
setForceUpdate(boolean forceUpdate) |
Enables/disabled forced checks for updated artifacts/metadata on remote repositories.
|
DefaultMetadataResolutionRequest |
setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository) |
Sets the local repository to use for the resolution.
|
DefaultMetadataResolutionRequest |
setOffline(boolean offline) |
Enables/disables network access to remote repositories.
|
DefaultMetadataResolutionRequest |
setRemoteRepositories(java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories) |
Sets the remote repositories to use for the resolution.
|
DefaultMetadataResolutionRequest |
setResolveManagedVersions(boolean resolveManagedVersions) |
Enables/disables resolution of the dependency management information.
|
public DefaultMetadataResolutionRequest()
public DefaultMetadataResolutionRequest(RepositoryRequest repositoryRequest)
public DefaultMetadataResolutionRequest(ArtifactResolutionRequest resolutionRequest)
public org.apache.maven.artifact.Artifact getArtifact()
MetadataResolutionRequestgetArtifact in interface MetadataResolutionRequestnull if not set.public DefaultMetadataResolutionRequest setArtifact(org.apache.maven.artifact.Artifact artifact)
MetadataResolutionRequestsetArtifact in interface MetadataResolutionRequestartifact - The artifact for which to resolve metadata.null.public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
MetadataResolutionRequestgetLocalRepository in interface MetadataResolutionRequestgetLocalRepository in interface RepositoryRequestnull if not set.public DefaultMetadataResolutionRequest setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)
MetadataResolutionRequestsetLocalRepository in interface MetadataResolutionRequestsetLocalRepository in interface RepositoryRequestlocalRepository - The local repository to use for the resolution.null.public java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepositories()
MetadataResolutionRequestgetRemoteRepositories in interface MetadataResolutionRequestgetRemoteRepositories in interface RepositoryRequestnull.public DefaultMetadataResolutionRequest setRemoteRepositories(java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
MetadataResolutionRequestsetRemoteRepositories in interface MetadataResolutionRequestsetRemoteRepositories in interface RepositoryRequestremoteRepositories - The remote repositories to use for the resolution.null.public boolean isResolveManagedVersions()
MetadataResolutionRequestisResolveManagedVersions in interface MetadataResolutionRequesttrue if the dependency management information should be retrieved, false otherwise.public DefaultMetadataResolutionRequest setResolveManagedVersions(boolean resolveManagedVersions)
MetadataResolutionRequestsetResolveManagedVersions in interface MetadataResolutionRequestresolveManagedVersions - true if the dependency management information should be retrieved,
false otherwise.null.public boolean isOffline()
MetadataResolutionRequestisOffline in interface MetadataResolutionRequestisOffline in interface RepositoryRequesttrue if remote access has been disabled, false otherwise.public DefaultMetadataResolutionRequest setOffline(boolean offline)
MetadataResolutionRequestsetOffline in interface MetadataResolutionRequestsetOffline in interface RepositoryRequestoffline - true to disable remote access, false to allow network access.null.public boolean isForceUpdate()
RepositoryRequestisForceUpdate in interface RepositoryRequesttrue if remote repositories should be re-checked for updated artifacts/metadata, false
otherwise.public DefaultMetadataResolutionRequest setForceUpdate(boolean forceUpdate)
RepositoryRequestsetForceUpdate in interface RepositoryRequestforceUpdate - true to forcibly check the remote repositories for updated artifacts/metadata,
false to use the update policy configured on each repository.null.