Class DefaultArtifactRepository
java.lang.Object
org.apache.maven.wagon.repository.Repository
org.apache.maven.artifact.repository.DefaultArtifactRepository
- All Implemented Interfaces:
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final ArtifactRepositoryLayout
private ArtifactRepositoryPolicy
private ArtifactRepositoryPolicy
private boolean
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultArtifactRepository
(String id, String url, ArtifactRepositoryLayout layout) Create a local repository or a test repository.DefaultArtifactRepository
(String id, String url, ArtifactRepositoryLayout layout, boolean uniqueVersion) Create a remote deployment repository.DefaultArtifactRepository
(String id, String url, ArtifactRepositoryLayout layout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) Create a remote download repository. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
boolean
boolean
pathOfLocalRepositoryMetadata
(ArtifactMetadata metadata, ArtifactRepository repository) pathOfRemoteRepositoryMetadata
(ArtifactMetadata artifactMetadata) void
setBlacklisted
(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 Details
-
layout
-
snapshots
-
releases
-
uniqueVersion
private boolean uniqueVersion -
blacklisted
private boolean blacklisted
-
-
Constructor Details
-
DefaultArtifactRepository
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) 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) 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 Details
-
pathOf
- Specified by:
pathOf
in interfaceArtifactRepository
-
pathOfRemoteRepositoryMetadata
- Specified by:
pathOfRemoteRepositoryMetadata
in interfaceArtifactRepository
-
pathOfLocalRepositoryMetadata
public String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository) - Specified by:
pathOfLocalRepositoryMetadata
in interfaceArtifactRepository
-
getLayout
- Specified by:
getLayout
in interfaceArtifactRepository
-
getSnapshots
- Specified by:
getSnapshots
in interfaceArtifactRepository
-
getReleases
- Specified by:
getReleases
in interfaceArtifactRepository
-
getKey
- Specified by:
getKey
in interfaceArtifactRepository
-
isUniqueVersion
public boolean isUniqueVersion()- Specified by:
isUniqueVersion
in interfaceArtifactRepository
-
isBlacklisted
public boolean isBlacklisted()- Specified by:
isBlacklisted
in interfaceArtifactRepository
-
setBlacklisted
public void setBlacklisted(boolean blacklisted) - Specified by:
setBlacklisted
in interfaceArtifactRepository
-