Class DefaultArtifactRepository

java.lang.Object
org.apache.maven.wagon.repository.Repository
org.apache.maven.artifact.repository.DefaultArtifactRepository
All Implemented Interfaces:
Serializable, org.apache.maven.artifact.repository.ArtifactRepository

@Deprecated public class DefaultArtifactRepository extends org.apache.maven.wagon.repository.Repository implements org.apache.maven.artifact.repository.ArtifactRepository
Deprecated.
This class is an abstraction of the location from/to resources can be transfered.
Author:
Michal Maczka
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultArtifactRepository(String id, String url, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout layout)
    Deprecated.
    Create a local repository or a test repository.
    DefaultArtifactRepository(String id, String url, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout layout, boolean uniqueVersion)
    Deprecated.
    Create a remote deployment repository.
    DefaultArtifactRepository(String id, String url, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout layout, org.apache.maven.artifact.repository.ArtifactRepositoryPolicy snapshots, org.apache.maven.artifact.repository.ArtifactRepositoryPolicy releases)
    Deprecated.
    Create a remote download repository.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.maven.artifact.Artifact
    find(org.apache.maven.artifact.Artifact artifact)
    Deprecated.
     
    findVersions(org.apache.maven.artifact.Artifact artifact)
    Deprecated.
     
    org.apache.maven.artifact.repository.Authentication
    Deprecated.
     
    Deprecated.
     
    org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout
    Deprecated.
     
    List<org.apache.maven.artifact.repository.ArtifactRepository>
    Deprecated.
     
    org.apache.maven.repository.Proxy
    Deprecated.
     
    org.apache.maven.artifact.repository.ArtifactRepositoryPolicy
    Deprecated.
     
    org.apache.maven.artifact.repository.ArtifactRepositoryPolicy
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    pathOf(org.apache.maven.artifact.Artifact artifact)
    Deprecated.
     
    pathOfLocalRepositoryMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata metadata, org.apache.maven.artifact.repository.ArtifactRepository repository)
    Deprecated.
     
    pathOfRemoteRepositoryMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata artifactMetadata)
    Deprecated.
     
    void
    setAuthentication(org.apache.maven.artifact.repository.Authentication authentication)
    Deprecated.
     
    void
    setBlacklisted(boolean blacklisted)
    Deprecated.
     
    void
    setBlocked(boolean blocked)
    Deprecated.
     
    void
    setLayout(org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout layout)
    Deprecated.
     
    void
    setMirroredRepositories(List<org.apache.maven.artifact.repository.ArtifactRepository> mirroredRepositories)
    Deprecated.
     
    void
    setProxy(org.apache.maven.repository.Proxy proxy)
    Deprecated.
     
    void
    setReleaseUpdatePolicy(org.apache.maven.artifact.repository.ArtifactRepositoryPolicy releases)
    Deprecated.
     
    void
    setSnapshotUpdatePolicy(org.apache.maven.artifact.repository.ArtifactRepositoryPolicy snapshots)
    Deprecated.
     
    Deprecated.
     

    Methods inherited from class org.apache.maven.wagon.repository.Repository

    equals, getBasedir, getHost, getId, getName, getParameter, getPassword, getPermissions, getPort, getProtocol, getUrl, getUsername, hashCode, setBasedir, setId, setName, setParameters, setPermissions, setPort, setProtocol, setUrl

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

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

    getBasedir, getId, getProtocol, getUrl, setId, setUrl
  • Constructor Details

    • DefaultArtifactRepository

      public DefaultArtifactRepository(String id, String url, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout layout)
      Deprecated.
      Create a local repository or a test repository.
      Parameters:
      id - the unique identifier of the repository
      url - the URL of the repository
      layout - the layout of the repository
    • DefaultArtifactRepository

      public DefaultArtifactRepository(String id, String url, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout layout, boolean uniqueVersion)
      Deprecated.
      Create a remote deployment repository.
      Parameters:
      id - the unique identifier of the repository
      url - the URL of the repository
      layout - the layout of the repository
      uniqueVersion - whether to assign each snapshot a unique version
    • DefaultArtifactRepository

      public DefaultArtifactRepository(String id, String url, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout layout, org.apache.maven.artifact.repository.ArtifactRepositoryPolicy snapshots, org.apache.maven.artifact.repository.ArtifactRepositoryPolicy releases)
      Deprecated.
      Create a remote download repository.
      Parameters:
      id - the unique identifier of the repository
      url - the URL of the repository
      layout - the layout of the repository
      snapshots - the policies to use for snapshots
      releases - the policies to use for releases
  • Method Details

    • pathOf

      public String pathOf(org.apache.maven.artifact.Artifact artifact)
      Deprecated.
      Specified by:
      pathOf in interface org.apache.maven.artifact.repository.ArtifactRepository
    • pathOfRemoteRepositoryMetadata

      public String pathOfRemoteRepositoryMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata artifactMetadata)
      Deprecated.
      Specified by:
      pathOfRemoteRepositoryMetadata in interface org.apache.maven.artifact.repository.ArtifactRepository
    • pathOfLocalRepositoryMetadata

      public String pathOfLocalRepositoryMetadata(org.apache.maven.artifact.metadata.ArtifactMetadata metadata, org.apache.maven.artifact.repository.ArtifactRepository repository)
      Deprecated.
      Specified by:
      pathOfLocalRepositoryMetadata in interface org.apache.maven.artifact.repository.ArtifactRepository
    • setLayout

      public void setLayout(org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout layout)
      Deprecated.
      Specified by:
      setLayout in interface org.apache.maven.artifact.repository.ArtifactRepository
    • getLayout

      public org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout getLayout()
      Deprecated.
      Specified by:
      getLayout in interface org.apache.maven.artifact.repository.ArtifactRepository
    • setSnapshotUpdatePolicy

      public void setSnapshotUpdatePolicy(org.apache.maven.artifact.repository.ArtifactRepositoryPolicy snapshots)
      Deprecated.
      Specified by:
      setSnapshotUpdatePolicy in interface org.apache.maven.artifact.repository.ArtifactRepository
    • getSnapshots

      public org.apache.maven.artifact.repository.ArtifactRepositoryPolicy getSnapshots()
      Deprecated.
      Specified by:
      getSnapshots in interface org.apache.maven.artifact.repository.ArtifactRepository
    • setReleaseUpdatePolicy

      public void setReleaseUpdatePolicy(org.apache.maven.artifact.repository.ArtifactRepositoryPolicy releases)
      Deprecated.
      Specified by:
      setReleaseUpdatePolicy in interface org.apache.maven.artifact.repository.ArtifactRepository
    • getReleases

      public org.apache.maven.artifact.repository.ArtifactRepositoryPolicy getReleases()
      Deprecated.
      Specified by:
      getReleases in interface org.apache.maven.artifact.repository.ArtifactRepository
    • getKey

      public String getKey()
      Deprecated.
      Specified by:
      getKey in interface org.apache.maven.artifact.repository.ArtifactRepository
    • isBlacklisted

      public boolean isBlacklisted()
      Deprecated.
      Specified by:
      isBlacklisted in interface org.apache.maven.artifact.repository.ArtifactRepository
    • setBlacklisted

      public void setBlacklisted(boolean blacklisted)
      Deprecated.
      Specified by:
      setBlacklisted in interface org.apache.maven.artifact.repository.ArtifactRepository
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class org.apache.maven.wagon.repository.Repository
    • find

      public org.apache.maven.artifact.Artifact find(org.apache.maven.artifact.Artifact artifact)
      Deprecated.
      Specified by:
      find in interface org.apache.maven.artifact.repository.ArtifactRepository
    • findVersions

      public List<String> findVersions(org.apache.maven.artifact.Artifact artifact)
      Deprecated.
      Specified by:
      findVersions in interface org.apache.maven.artifact.repository.ArtifactRepository
    • isProjectAware

      public boolean isProjectAware()
      Deprecated.
      Specified by:
      isProjectAware in interface org.apache.maven.artifact.repository.ArtifactRepository
    • getAuthentication

      public org.apache.maven.artifact.repository.Authentication getAuthentication()
      Deprecated.
      Specified by:
      getAuthentication in interface org.apache.maven.artifact.repository.ArtifactRepository
    • setAuthentication

      public void setAuthentication(org.apache.maven.artifact.repository.Authentication authentication)
      Deprecated.
      Specified by:
      setAuthentication in interface org.apache.maven.artifact.repository.ArtifactRepository
    • getProxy

      public org.apache.maven.repository.Proxy getProxy()
      Deprecated.
      Specified by:
      getProxy in interface org.apache.maven.artifact.repository.ArtifactRepository
    • setProxy

      public void setProxy(org.apache.maven.repository.Proxy proxy)
      Deprecated.
      Specified by:
      setProxy in interface org.apache.maven.artifact.repository.ArtifactRepository
    • isUniqueVersion

      public boolean isUniqueVersion()
      Deprecated.
      Specified by:
      isUniqueVersion in interface org.apache.maven.artifact.repository.ArtifactRepository
    • getMirroredRepositories

      public List<org.apache.maven.artifact.repository.ArtifactRepository> getMirroredRepositories()
      Deprecated.
      Specified by:
      getMirroredRepositories in interface org.apache.maven.artifact.repository.ArtifactRepository
    • setMirroredRepositories

      public void setMirroredRepositories(List<org.apache.maven.artifact.repository.ArtifactRepository> mirroredRepositories)
      Deprecated.
      Specified by:
      setMirroredRepositories in interface org.apache.maven.artifact.repository.ArtifactRepository
    • isBlocked

      public boolean isBlocked()
      Deprecated.
      Specified by:
      isBlocked in interface org.apache.maven.artifact.repository.ArtifactRepository
    • setBlocked

      public void setBlocked(boolean blocked)
      Deprecated.
      Specified by:
      setBlocked in interface org.apache.maven.artifact.repository.ArtifactRepository