org.apache.maven.artifact.repository
Class DefaultArtifactRepository

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

Deprecated.

@Deprecated
public class DefaultArtifactRepository
extends Repository
implements ArtifactRepository

This class is an abstraction of the location from/to resources can be transfered.

Author:
Michal Maczka
See Also:
Serialized Form

Constructor Summary
DefaultArtifactRepository(String id, String url, ArtifactRepositoryLayout layout)
          Deprecated. Create a local repository or a test repository.
DefaultArtifactRepository(String id, String url, ArtifactRepositoryLayout layout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases)
          Deprecated. Create a remote download repository.
DefaultArtifactRepository(String id, String url, ArtifactRepositoryLayout layout, boolean uniqueVersion)
          Deprecated. Create a remote deployment repository.
 
Method Summary
 Artifact find(Artifact artifact)
          Deprecated.  
 List<String> findVersions(Artifact artifact)
          Deprecated.  
 Authentication getAuthentication()
          Deprecated.  
 String getKey()
          Deprecated.  
 ArtifactRepositoryLayout getLayout()
          Deprecated.  
 List<ArtifactRepository> getMirroredRepositories()
          Deprecated.  
 Proxy getProxy()
          Deprecated.  
 ArtifactRepositoryPolicy getReleases()
          Deprecated.  
 ArtifactRepositoryPolicy getSnapshots()
          Deprecated.  
 boolean isBlacklisted()
          Deprecated.  
 boolean isProjectAware()
          Deprecated.  
 boolean isUniqueVersion()
          Deprecated.  
 String pathOf(Artifact artifact)
          Deprecated.  
 String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
          Deprecated.  
 String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
          Deprecated.  
 void setAuthentication(Authentication authentication)
          Deprecated.  
 void setBlacklisted(boolean blacklisted)
          Deprecated.  
 void setLayout(ArtifactRepositoryLayout layout)
          Deprecated.  
 void setMirroredRepositories(List<ArtifactRepository> mirroredRepositories)
          Deprecated.  
 void setProxy(Proxy proxy)
          Deprecated.  
 void setReleaseUpdatePolicy(ArtifactRepositoryPolicy releases)
          Deprecated.  
 void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots)
          Deprecated.  
 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(String id,
                                 String url,
                                 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,
                                 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,
                                 ArtifactRepositoryLayout layout,
                                 ArtifactRepositoryPolicy snapshots,
                                 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 String pathOf(Artifact artifact)
Deprecated. 
Specified by:
pathOf in interface ArtifactRepository

pathOfRemoteRepositoryMetadata

public String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
Deprecated. 
Specified by:
pathOfRemoteRepositoryMetadata in interface ArtifactRepository

pathOfLocalRepositoryMetadata

public String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata,
                                            ArtifactRepository repository)
Deprecated. 
Specified by:
pathOfLocalRepositoryMetadata in interface ArtifactRepository

setLayout

public void setLayout(ArtifactRepositoryLayout layout)
Deprecated. 
Specified by:
setLayout in interface ArtifactRepository

getLayout

public ArtifactRepositoryLayout getLayout()
Deprecated. 
Specified by:
getLayout in interface ArtifactRepository

setSnapshotUpdatePolicy

public void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots)
Deprecated. 
Specified by:
setSnapshotUpdatePolicy in interface ArtifactRepository

getSnapshots

public ArtifactRepositoryPolicy getSnapshots()
Deprecated. 
Specified by:
getSnapshots in interface ArtifactRepository

setReleaseUpdatePolicy

public void setReleaseUpdatePolicy(ArtifactRepositoryPolicy releases)
Deprecated. 
Specified by:
setReleaseUpdatePolicy in interface ArtifactRepository

getReleases

public ArtifactRepositoryPolicy getReleases()
Deprecated. 
Specified by:
getReleases in interface ArtifactRepository

getKey

public String getKey()
Deprecated. 
Specified by:
getKey in interface ArtifactRepository

isBlacklisted

public boolean isBlacklisted()
Deprecated. 
Specified by:
isBlacklisted in interface ArtifactRepository

setBlacklisted

public void setBlacklisted(boolean blacklisted)
Deprecated. 
Specified by:
setBlacklisted in interface ArtifactRepository

toString

public String toString()
Deprecated. 
Overrides:
toString in class Repository

find

public Artifact find(Artifact artifact)
Deprecated. 
Specified by:
find in interface ArtifactRepository

findVersions

public List<String> findVersions(Artifact artifact)
Deprecated. 
Specified by:
findVersions in interface ArtifactRepository

isProjectAware

public boolean isProjectAware()
Deprecated. 
Specified by:
isProjectAware in interface ArtifactRepository

getAuthentication

public Authentication getAuthentication()
Deprecated. 
Specified by:
getAuthentication in interface ArtifactRepository

setAuthentication

public void setAuthentication(Authentication authentication)
Deprecated. 
Specified by:
setAuthentication in interface ArtifactRepository

getProxy

public Proxy getProxy()
Deprecated. 
Specified by:
getProxy in interface ArtifactRepository

setProxy

public void setProxy(Proxy proxy)
Deprecated. 
Specified by:
setProxy in interface ArtifactRepository

isUniqueVersion

public boolean isUniqueVersion()
Deprecated. 
Specified by:
isUniqueVersion in interface ArtifactRepository

getMirroredRepositories

public List<ArtifactRepository> getMirroredRepositories()
Deprecated. 
Specified by:
getMirroredRepositories in interface ArtifactRepository

setMirroredRepositories

public void setMirroredRepositories(List<ArtifactRepository> mirroredRepositories)
Deprecated. 
Specified by:
setMirroredRepositories in interface ArtifactRepository


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.