Interface MetadataResolutionRequest

All Superinterfaces:
org.apache.maven.artifact.repository.RepositoryRequest
All Known Implementing Classes:
DefaultMetadataResolutionRequest

@Deprecated public interface MetadataResolutionRequest extends org.apache.maven.artifact.repository.RepositoryRequest
Deprecated.
Forms a request to retrieve artifact metadata.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.maven.artifact.Artifact
    Deprecated.
    Gets the artifact to resolve metadata for.
    org.apache.maven.artifact.repository.ArtifactRepository
    Deprecated.
    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.
    boolean
    Deprecated.
    Indicates whether network access to remote repositories has been disabled.
    boolean
    Deprecated.
    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.
    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.

    Methods inherited from interface org.apache.maven.artifact.repository.RepositoryRequest

    isForceUpdate, setForceUpdate
  • Method Details

    • isOffline

      boolean isOffline()
      Deprecated.
      Indicates whether network access to remote repositories has been disabled.
      Specified by:
      isOffline in interface org.apache.maven.artifact.repository.RepositoryRequest
      Returns:
      true if remote access has been disabled, false otherwise.
    • setOffline

      MetadataResolutionRequest setOffline(boolean offline)
      Deprecated.
      Enables/disables network access to remote repositories.
      Specified by:
      setOffline in interface org.apache.maven.artifact.repository.RepositoryRequest
      Parameters:
      offline - true to disable remote access, false to allow network access.
      Returns:
      This request, never null.
    • getArtifact

      org.apache.maven.artifact.Artifact getArtifact()
      Deprecated.
      Gets the artifact to resolve metadata for.
      Returns:
      The artifact to resolve metadata for or null if not set.
    • setArtifact

      MetadataResolutionRequest setArtifact(org.apache.maven.artifact.Artifact artifact)
      Deprecated.
      Sets the artifact for which to resolve metadata.
      Parameters:
      artifact - The artifact for which to resolve metadata.
      Returns:
      This request, never null.
    • getLocalRepository

      org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
      Deprecated.
      Gets the local repository to use for the resolution.
      Specified by:
      getLocalRepository in interface org.apache.maven.artifact.repository.RepositoryRequest
      Returns:
      The local repository to use for the resolution or null if not set.
    • setLocalRepository

      MetadataResolutionRequest setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)
      Deprecated.
      Sets the local repository to use for the resolution.
      Specified by:
      setLocalRepository in interface org.apache.maven.artifact.repository.RepositoryRequest
      Parameters:
      localRepository - The local repository to use for the resolution.
      Returns:
      This request, never null.
    • getRemoteRepositories

      List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepositories()
      Deprecated.
      Gets the remote repositories to use for the resolution.
      Specified by:
      getRemoteRepositories in interface org.apache.maven.artifact.repository.RepositoryRequest
      Returns:
      The remote repositories to use for the resolution, never null.
    • setRemoteRepositories

      MetadataResolutionRequest setRemoteRepositories(List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)
      Deprecated.
      Sets the remote repositories to use for the resolution.
      Specified by:
      setRemoteRepositories in interface org.apache.maven.artifact.repository.RepositoryRequest
      Parameters:
      remoteRepositories - The remote repositories to use for the resolution.
      Returns:
      This request, never null.
    • isResolveManagedVersions

      boolean isResolveManagedVersions()
      Deprecated.
      Determines whether the managed version information should be retrieved.
      Returns:
      true if the dependency management information should be retrieved, false otherwise.
    • setResolveManagedVersions

      MetadataResolutionRequest setResolveManagedVersions(boolean resolveManagedVersions)
      Deprecated.
      Enables/disables resolution of the dependency management information.
      Parameters:
      resolveManagedVersions - true if the dependency management information should be retrieved, false otherwise.
      Returns:
      This request, never null.