Class DefaultArtifactRepository
- java.lang.Object
-
- org.apache.maven.wagon.repository.Repository
-
- org.apache.maven.artifact.repository.DefaultArtifactRepository
-
- All Implemented Interfaces:
Serializable
,ArtifactRepository
@Deprecated public class DefaultArtifactRepository extends org.apache.maven.wagon.repository.Repository implements 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(String id, String url, ArtifactRepositoryLayout layout)
Deprecated.Create a local repository or a test repository.DefaultArtifactRepository(String id, String url, ArtifactRepositoryLayout layout, boolean uniqueVersion)
Deprecated.Create a remote deployment repository.DefaultArtifactRepository(String id, String url, ArtifactRepositoryLayout layout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases)
Deprecated.Create a remote download repository.
-
Method Summary
-
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 repositoryurl
- the URL of the repositorylayout
- 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 repositoryurl
- the URL of the repositorylayout
- the layout of the repositoryuniqueVersion
- 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 repositoryurl
- the URL of the repositorylayout
- the layout of the repositorysnapshots
- the policies to use for snapshotsreleases
- the policies to use for releases
-
-
Method Detail
-
pathOf
public String pathOf(Artifact artifact)
Deprecated.- Specified by:
pathOf
in interfaceArtifactRepository
-
pathOfRemoteRepositoryMetadata
public String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
Deprecated.- Specified by:
pathOfRemoteRepositoryMetadata
in interfaceArtifactRepository
-
pathOfLocalRepositoryMetadata
public String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
Deprecated.- Specified by:
pathOfLocalRepositoryMetadata
in interfaceArtifactRepository
-
setLayout
public void setLayout(ArtifactRepositoryLayout layout)
Deprecated.- Specified by:
setLayout
in interfaceArtifactRepository
-
getLayout
public ArtifactRepositoryLayout getLayout()
Deprecated.- Specified by:
getLayout
in interfaceArtifactRepository
-
setSnapshotUpdatePolicy
public void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots)
Deprecated.- Specified by:
setSnapshotUpdatePolicy
in interfaceArtifactRepository
-
getSnapshots
public ArtifactRepositoryPolicy getSnapshots()
Deprecated.- Specified by:
getSnapshots
in interfaceArtifactRepository
-
setReleaseUpdatePolicy
public void setReleaseUpdatePolicy(ArtifactRepositoryPolicy releases)
Deprecated.- Specified by:
setReleaseUpdatePolicy
in interfaceArtifactRepository
-
getReleases
public ArtifactRepositoryPolicy getReleases()
Deprecated.- Specified by:
getReleases
in interfaceArtifactRepository
-
getKey
public String getKey()
Deprecated.- Specified by:
getKey
in interfaceArtifactRepository
-
isBlacklisted
public boolean isBlacklisted()
Deprecated.- Specified by:
isBlacklisted
in interfaceArtifactRepository
-
setBlacklisted
public void setBlacklisted(boolean blacklisted)
Deprecated.- Specified by:
setBlacklisted
in interfaceArtifactRepository
-
toString
public String toString()
Deprecated.- Overrides:
toString
in classorg.apache.maven.wagon.repository.Repository
-
find
public Artifact find(Artifact artifact)
Deprecated.- Specified by:
find
in interfaceArtifactRepository
-
findVersions
public List<String> findVersions(Artifact artifact)
Deprecated.- Specified by:
findVersions
in interfaceArtifactRepository
-
isProjectAware
public boolean isProjectAware()
Deprecated.- Specified by:
isProjectAware
in interfaceArtifactRepository
-
getAuthentication
public Authentication getAuthentication()
Deprecated.- Specified by:
getAuthentication
in interfaceArtifactRepository
-
setAuthentication
public void setAuthentication(Authentication authentication)
Deprecated.- Specified by:
setAuthentication
in interfaceArtifactRepository
-
getProxy
public Proxy getProxy()
Deprecated.- Specified by:
getProxy
in interfaceArtifactRepository
-
setProxy
public void setProxy(Proxy proxy)
Deprecated.- Specified by:
setProxy
in interfaceArtifactRepository
-
isUniqueVersion
public boolean isUniqueVersion()
Deprecated.- Specified by:
isUniqueVersion
in interfaceArtifactRepository
-
getMirroredRepositories
public List<ArtifactRepository> getMirroredRepositories()
Deprecated.- Specified by:
getMirroredRepositories
in interfaceArtifactRepository
-
setMirroredRepositories
public void setMirroredRepositories(List<ArtifactRepository> mirroredRepositories)
Deprecated.- Specified by:
setMirroredRepositories
in interfaceArtifactRepository
-
isBlocked
public boolean isBlocked()
Deprecated.- Specified by:
isBlocked
in interfaceArtifactRepository
-
setBlocked
public void setBlocked(boolean blocked)
Deprecated.- Specified by:
setBlocked
in interfaceArtifactRepository
-
-