@Deprecated public class DefaultArtifactRepository extends org.apache.maven.wagon.repository.Repository implements ArtifactRepository
| Modifier and Type | Field and Description |
|---|---|
private Authentication |
authentication
Deprecated.
|
private boolean |
blacklisted
Deprecated.
|
private ArtifactRepositoryLayout |
layout
Deprecated.
|
private java.util.List<ArtifactRepository> |
mirroredRepositories
Deprecated.
|
private Proxy |
proxy
Deprecated.
|
private ArtifactRepositoryPolicy |
releases
Deprecated.
|
private ArtifactRepositoryPolicy |
snapshots
Deprecated.
|
| Constructor and Description |
|---|
DefaultArtifactRepository(java.lang.String id,
java.lang.String url,
ArtifactRepositoryLayout layout)
Deprecated.
Create a local repository or a test repository.
|
DefaultArtifactRepository(java.lang.String id,
java.lang.String url,
ArtifactRepositoryLayout layout,
ArtifactRepositoryPolicy snapshots,
ArtifactRepositoryPolicy releases)
Deprecated.
Create a remote download repository.
|
DefaultArtifactRepository(java.lang.String id,
java.lang.String url,
ArtifactRepositoryLayout layout,
boolean uniqueVersion)
Deprecated.
Create a remote deployment repository.
|
| Modifier and Type | Method and Description |
|---|---|
Artifact |
find(Artifact artifact)
Deprecated.
|
java.util.List<java.lang.String> |
findVersions(Artifact artifact)
Deprecated.
Finds the versions of the specified artifact that are available in this repository.
|
Authentication |
getAuthentication()
Deprecated.
|
java.lang.String |
getKey()
Deprecated.
|
ArtifactRepositoryLayout |
getLayout()
Deprecated.
|
java.util.List<ArtifactRepository> |
getMirroredRepositories()
Deprecated.
|
Proxy |
getProxy()
Deprecated.
|
ArtifactRepositoryPolicy |
getReleases()
Deprecated.
|
ArtifactRepositoryPolicy |
getSnapshots()
Deprecated.
|
boolean |
isBlacklisted()
Deprecated.
|
boolean |
isProjectAware()
Deprecated.
Indicates whether this repository is backed by actual projects.
|
boolean |
isUniqueVersion()
Deprecated.
|
java.lang.String |
pathOf(Artifact artifact)
Deprecated.
|
java.lang.String |
pathOfLocalRepositoryMetadata(ArtifactMetadata metadata,
ArtifactRepository repository)
Deprecated.
|
java.lang.String |
pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
Deprecated.
|
void |
setAuthentication(Authentication authentication)
Deprecated.
|
void |
setBlacklisted(boolean blacklisted)
Deprecated.
|
void |
setLayout(ArtifactRepositoryLayout layout)
Deprecated.
|
void |
setMirroredRepositories(java.util.List<ArtifactRepository> mirroredRepositories)
Deprecated.
|
void |
setProxy(Proxy proxy)
Deprecated.
|
void |
setReleaseUpdatePolicy(ArtifactRepositoryPolicy releases)
Deprecated.
|
void |
setSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
equals, getBasedir, getHost, getId, getName, getParameter, getPassword, getPermissions, getPort, getProtocol, getUrl, getUsername, hashCode, setBasedir, setId, setName, setParameters, setPermissions, setPort, setProtocol, setUrlclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBasedir, getId, getProtocol, getUrl, setId, setUrlprivate ArtifactRepositoryLayout layout
private ArtifactRepositoryPolicy snapshots
private ArtifactRepositoryPolicy releases
private boolean blacklisted
private Authentication authentication
private Proxy proxy
private java.util.List<ArtifactRepository> mirroredRepositories
public DefaultArtifactRepository(java.lang.String id,
java.lang.String url,
ArtifactRepositoryLayout layout)
id - the unique identifier of the repositoryurl - the URL of the repositorylayout - the layout of the repositorypublic DefaultArtifactRepository(java.lang.String id,
java.lang.String url,
ArtifactRepositoryLayout layout,
boolean uniqueVersion)
id - the unique identifier of the repositoryurl - the URL of the repositorylayout - the layout of the repositoryuniqueVersion - whether to assign each snapshot a unique versionpublic DefaultArtifactRepository(java.lang.String id,
java.lang.String url,
ArtifactRepositoryLayout layout,
ArtifactRepositoryPolicy snapshots,
ArtifactRepositoryPolicy releases)
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 releasespublic java.lang.String pathOf(Artifact artifact)
pathOf in interface ArtifactRepositorypublic java.lang.String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
pathOfRemoteRepositoryMetadata in interface ArtifactRepositorypublic java.lang.String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
pathOfLocalRepositoryMetadata in interface ArtifactRepositorypublic void setLayout(ArtifactRepositoryLayout layout)
setLayout in interface ArtifactRepositorypublic ArtifactRepositoryLayout getLayout()
getLayout in interface ArtifactRepositorypublic void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots)
setSnapshotUpdatePolicy in interface ArtifactRepositorypublic ArtifactRepositoryPolicy getSnapshots()
getSnapshots in interface ArtifactRepositorypublic void setReleaseUpdatePolicy(ArtifactRepositoryPolicy releases)
setReleaseUpdatePolicy in interface ArtifactRepositorypublic ArtifactRepositoryPolicy getReleases()
getReleases in interface ArtifactRepositorypublic java.lang.String getKey()
getKey in interface ArtifactRepositorypublic boolean isBlacklisted()
isBlacklisted in interface ArtifactRepositorypublic void setBlacklisted(boolean blacklisted)
setBlacklisted in interface ArtifactRepositorypublic java.lang.String toString()
toString in class org.apache.maven.wagon.repository.Repositorypublic Artifact find(Artifact artifact)
find in interface ArtifactRepositorypublic java.util.List<java.lang.String> findVersions(Artifact artifact)
ArtifactRepositoryfindVersions in interface ArtifactRepositoryartifact - The artifact whose available versions should be determined, must not be null.null.public boolean isProjectAware()
ArtifactRepositoryisProjectAware in interface ArtifactRepositorytrue if the repository is backed by actual projects, false otherwise.public Authentication getAuthentication()
getAuthentication in interface ArtifactRepositorypublic void setAuthentication(Authentication authentication)
setAuthentication in interface ArtifactRepositorypublic Proxy getProxy()
getProxy in interface ArtifactRepositorypublic void setProxy(Proxy proxy)
setProxy in interface ArtifactRepositorypublic boolean isUniqueVersion()
isUniqueVersion in interface ArtifactRepositorypublic java.util.List<ArtifactRepository> getMirroredRepositories()
getMirroredRepositories in interface ArtifactRepositorypublic void setMirroredRepositories(java.util.List<ArtifactRepository> mirroredRepositories)
setMirroredRepositories in interface ArtifactRepositorymirroredRepositories - the repositories that the actual one mirrors