Class DefaultArtifactRepository

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultArtifactRepository​(java.lang.String id, java.lang.String url, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout layout)
      Deprecated.
      Create a local repository or a test repository.
      DefaultArtifactRepository​(java.lang.String id, java.lang.String url, org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout layout, boolean uniqueVersion)
      Deprecated.
      Create a remote deployment repository.
      DefaultArtifactRepository​(java.lang.String id, java.lang.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

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      org.apache.maven.artifact.Artifact find​(org.apache.maven.artifact.Artifact artifact)
      Deprecated.
       
      java.util.List<java.lang.String> findVersions​(org.apache.maven.artifact.Artifact artifact)
      Deprecated.
       
      org.apache.maven.artifact.repository.Authentication getAuthentication()
      Deprecated.
       
      java.lang.String getKey()
      Deprecated.
       
      org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout getLayout()
      Deprecated.
       
      java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> getMirroredRepositories()
      Deprecated.
       
      org.apache.maven.repository.Proxy getProxy()
      Deprecated.
       
      org.apache.maven.artifact.repository.ArtifactRepositoryPolicy getReleases()
      Deprecated.
       
      org.apache.maven.artifact.repository.ArtifactRepositoryPolicy getSnapshots()
      Deprecated.
       
      boolean isBlacklisted()
      Deprecated.
       
      boolean isBlocked()
      Deprecated.
       
      boolean isProjectAware()
      Deprecated.
       
      boolean isUniqueVersion()
      Deprecated.
       
      java.lang.String pathOf​(org.apache.maven.artifact.Artifact artifact)
      Deprecated.
       
      java.lang.String pathOfLocalRepositoryMetadata​(org.apache.maven.artifact.metadata.ArtifactMetadata metadata, org.apache.maven.artifact.repository.ArtifactRepository repository)
      Deprecated.
       
      java.lang.String 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​(java.util.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.
       
      java.lang.String toString()
      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 Detail

      • DefaultArtifactRepository

        public DefaultArtifactRepository​(java.lang.String id,
                                         java.lang.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​(java.lang.String id,
                                         java.lang.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​(java.lang.String id,
                                         java.lang.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 Detail

      • pathOf

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

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

        public java.lang.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 java.lang.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 java.lang.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 java.util.List<java.lang.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 java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> getMirroredRepositories()
        Deprecated.
        Specified by:
        getMirroredRepositories in interface org.apache.maven.artifact.repository.ArtifactRepository
      • setMirroredRepositories

        public void setMirroredRepositories​(java.util.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