Class DefaultArtifactRepository
- java.lang.Object
-
- org.apache.maven.wagon.repository.Repository
-
- org.apache.maven.artifact.repository.DefaultArtifactRepository
-
- All Implemented Interfaces:
java.io.Serializable,ArtifactRepository
public class DefaultArtifactRepository extends org.apache.maven.wagon.repository.Repository implements ArtifactRepository
This class is an abstraction of the location from/to resources can be transfered.- Version:
- $Id: DefaultArtifactRepository.java 495147 2007-01-11 07:47:53Z jvanzyl $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private booleanblacklistedprivate ArtifactRepositoryLayoutlayoutprivate ArtifactRepositoryPolicyreleasesprivate ArtifactRepositoryPolicysnapshotsprivate booleanuniqueVersion
-
Constructor Summary
Constructors Constructor Description DefaultArtifactRepository(java.lang.String id, java.lang.String url, ArtifactRepositoryLayout layout)Create a local repository or a test repository.DefaultArtifactRepository(java.lang.String id, java.lang.String url, ArtifactRepositoryLayout layout, boolean uniqueVersion)Create a remote deployment repository.DefaultArtifactRepository(java.lang.String id, java.lang.String url, ArtifactRepositoryLayout layout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases)Create a remote download repository.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetKey()ArtifactRepositoryLayoutgetLayout()ArtifactRepositoryPolicygetReleases()ArtifactRepositoryPolicygetSnapshots()booleanisBlacklisted()booleanisUniqueVersion()java.lang.StringpathOf(Artifact artifact)java.lang.StringpathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)java.lang.StringpathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)voidsetBlacklisted(boolean blacklisted)-
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, toString
-
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
-
-
-
-
Field Detail
-
layout
private final ArtifactRepositoryLayout layout
-
snapshots
private ArtifactRepositoryPolicy snapshots
-
releases
private ArtifactRepositoryPolicy releases
-
uniqueVersion
private boolean uniqueVersion
-
blacklisted
private boolean blacklisted
-
-
Constructor Detail
-
DefaultArtifactRepository
public DefaultArtifactRepository(java.lang.String id, java.lang.String url, ArtifactRepositoryLayout layout)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(java.lang.String id, java.lang.String url, ArtifactRepositoryLayout layout, boolean uniqueVersion)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(java.lang.String id, java.lang.String url, ArtifactRepositoryLayout layout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases)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 java.lang.String pathOf(Artifact artifact)
- Specified by:
pathOfin interfaceArtifactRepository
-
pathOfRemoteRepositoryMetadata
public java.lang.String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
- Specified by:
pathOfRemoteRepositoryMetadatain interfaceArtifactRepository
-
pathOfLocalRepositoryMetadata
public java.lang.String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
- Specified by:
pathOfLocalRepositoryMetadatain interfaceArtifactRepository
-
getLayout
public ArtifactRepositoryLayout getLayout()
- Specified by:
getLayoutin interfaceArtifactRepository
-
getSnapshots
public ArtifactRepositoryPolicy getSnapshots()
- Specified by:
getSnapshotsin interfaceArtifactRepository
-
getReleases
public ArtifactRepositoryPolicy getReleases()
- Specified by:
getReleasesin interfaceArtifactRepository
-
getKey
public java.lang.String getKey()
- Specified by:
getKeyin interfaceArtifactRepository
-
isUniqueVersion
public boolean isUniqueVersion()
- Specified by:
isUniqueVersionin interfaceArtifactRepository
-
isBlacklisted
public boolean isBlacklisted()
- Specified by:
isBlacklistedin interfaceArtifactRepository
-
setBlacklisted
public void setBlacklisted(boolean blacklisted)
- Specified by:
setBlacklistedin interfaceArtifactRepository
-
-