public class DefaultArtifactRepository extends org.apache.maven.wagon.repository.Repository implements ArtifactRepository
| Constructor and Description |
|---|
DefaultArtifactRepository(String id,
String url,
ArtifactRepositoryLayout layout)
Create a local repository or a test repository.
|
DefaultArtifactRepository(String id,
String url,
ArtifactRepositoryLayout layout,
ArtifactRepositoryPolicy snapshots,
ArtifactRepositoryPolicy releases)
Create a remote download repository.
|
DefaultArtifactRepository(String id,
String url,
ArtifactRepositoryLayout layout,
boolean uniqueVersion)
Create a remote deployment repository.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKey() |
ArtifactRepositoryLayout |
getLayout() |
ArtifactRepositoryPolicy |
getReleases() |
ArtifactRepositoryPolicy |
getSnapshots() |
boolean |
isBlacklisted() |
boolean |
isUniqueVersion() |
String |
pathOf(Artifact artifact) |
String |
pathOfLocalRepositoryMetadata(ArtifactMetadata metadata,
ArtifactRepository repository) |
String |
pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata) |
void |
setBlacklisted(boolean blacklisted) |
equals, getBasedir, getHost, getId, getName, getParameter, getPassword, getPermissions, getPort, getProtocol, getUrl, getUsername, hashCode, setBasedir, setId, setName, setParameters, setPermissions, setPort, setProtocol, setUrl, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBasedir, getId, getProtocol, getUrlpublic 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 ArtifactRepositorypublic String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
pathOfRemoteRepositoryMetadata in interface ArtifactRepositorypublic String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
pathOfLocalRepositoryMetadata in interface ArtifactRepositorypublic ArtifactRepositoryLayout getLayout()
getLayout in interface ArtifactRepositorypublic ArtifactRepositoryPolicy getSnapshots()
getSnapshots in interface ArtifactRepositorypublic ArtifactRepositoryPolicy getReleases()
getReleases in interface ArtifactRepositorypublic String getKey()
getKey in interface ArtifactRepositorypublic boolean isUniqueVersion()
isUniqueVersion in interface ArtifactRepositorypublic boolean isBlacklisted()
isBlacklisted in interface ArtifactRepositorypublic void setBlacklisted(boolean blacklisted)
setBlacklisted in interface ArtifactRepositoryCopyright © 2001-2021 The Apache Software Foundation. All Rights Reserved.