@Deprecated public class DefaultArtifactRepository extends org.apache.maven.wagon.repository.Repository implements ArtifactRepository
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Artifact |
find(Artifact artifact)
Deprecated.
|
List<String> |
findVersions(Artifact artifact)
Deprecated.
Finds the versions of the specified artifact that are available in this repository.
|
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.
Indicates whether this repository is backed by actual projects.
|
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.
|
equals, getBasedir, getHost, getId, getName, getParameter, getPassword, getPermissions, getPort, getProtocol, getUrl, getUsername, hashCode, setBasedir, setId, setName, setParameters, setPermissions, setPort, setProtocol, setUrl
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getBasedir, getId, getProtocol, getUrl, setId, setUrl
public DefaultArtifactRepository(String id, String url, ArtifactRepositoryLayout layout)
id
- the unique identifier of the repositoryurl
- the URL of the repositorylayout
- the layout of the repositorypublic DefaultArtifactRepository(String id, 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(String id, 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 String pathOf(Artifact artifact)
pathOf
in interface ArtifactRepository
public String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
pathOfRemoteRepositoryMetadata
in interface ArtifactRepository
public String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
pathOfLocalRepositoryMetadata
in interface ArtifactRepository
public void setLayout(ArtifactRepositoryLayout layout)
setLayout
in interface ArtifactRepository
public ArtifactRepositoryLayout getLayout()
getLayout
in interface ArtifactRepository
public void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots)
setSnapshotUpdatePolicy
in interface ArtifactRepository
public ArtifactRepositoryPolicy getSnapshots()
getSnapshots
in interface ArtifactRepository
public void setReleaseUpdatePolicy(ArtifactRepositoryPolicy releases)
setReleaseUpdatePolicy
in interface ArtifactRepository
public ArtifactRepositoryPolicy getReleases()
getReleases
in interface ArtifactRepository
public String getKey()
getKey
in interface ArtifactRepository
public boolean isBlacklisted()
isBlacklisted
in interface ArtifactRepository
public void setBlacklisted(boolean blacklisted)
setBlacklisted
in interface ArtifactRepository
public String toString()
toString
in class org.apache.maven.wagon.repository.Repository
public Artifact find(Artifact artifact)
find
in interface ArtifactRepository
public List<String> findVersions(Artifact artifact)
ArtifactRepository
findVersions
in interface ArtifactRepository
artifact
- The artifact whose available versions should be determined, must not be null
.null
.public boolean isProjectAware()
ArtifactRepository
isProjectAware
in interface ArtifactRepository
true
if the repository is backed by actual projects, false
otherwise.public Authentication getAuthentication()
getAuthentication
in interface ArtifactRepository
public void setAuthentication(Authentication authentication)
setAuthentication
in interface ArtifactRepository
public Proxy getProxy()
getProxy
in interface ArtifactRepository
public void setProxy(Proxy proxy)
setProxy
in interface ArtifactRepository
public boolean isUniqueVersion()
isUniqueVersion
in interface ArtifactRepository
public List<ArtifactRepository> getMirroredRepositories()
getMirroredRepositories
in interface ArtifactRepository
public void setMirroredRepositories(List<ArtifactRepository> mirroredRepositories)
setMirroredRepositories
in interface ArtifactRepository
mirroredRepositories
- the repositories that the actual one mirrorsCopyright © 2001–2019 The Apache Software Foundation. All rights reserved.