Class DefaultArtifactRepository
java.lang.Object
org.apache.maven.wagon.repository.Repository
org.apache.maven.artifact.repository.DefaultArtifactRepository
- All Implemented Interfaces:
Serializable
,ArtifactRepository
@Deprecated
public class DefaultArtifactRepository
extends org.apache.maven.wagon.repository.Repository
implements ArtifactRepository
Deprecated.
This class is an abstraction of the location from/to resources can be
transferred.
- Author:
- Michal Maczka
- See Also:
-
Constructor Summary
ConstructorDescriptionDefaultArtifactRepository
(String id, String url, ArtifactRepositoryLayout layout) Deprecated.Create a local repository or a test repository.DefaultArtifactRepository
(String id, String url, ArtifactRepositoryLayout layout, boolean uniqueVersion) Deprecated.Create a remote deployment repository.DefaultArtifactRepository
(String id, String url, ArtifactRepositoryLayout layout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) Deprecated.Create a remote download repository. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.findVersions
(Artifact artifact) Deprecated.Deprecated.getKey()
Deprecated.Deprecated.Deprecated.getProxy()
Deprecated.Deprecated.Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.Deprecated.pathOfLocalRepositoryMetadata
(ArtifactMetadata metadata, ArtifactRepository repository) Deprecated.pathOfRemoteRepositoryMetadata
(ArtifactMetadata artifactMetadata) Deprecated.void
setAuthentication
(Authentication authentication) Deprecated.void
setBlacklisted
(boolean blacklisted) Deprecated.void
setBlocked
(boolean blocked) Deprecated.void
setLayout
(ArtifactRepositoryLayout layout) Deprecated.void
setMirroredRepositories
(List<ArtifactRepository> mirroredRepositories) Deprecated.void
Deprecated.void
Deprecated.void
setSnapshotUpdatePolicy
(ArtifactRepositoryPolicy snapshots) Deprecated.toString()
Deprecated.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
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, setId, setUrl
-
Constructor Details
-
DefaultArtifactRepository
Deprecated.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) Deprecated.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) Deprecated.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
Deprecated.- Specified by:
pathOf
in interfaceArtifactRepository
-
pathOfRemoteRepositoryMetadata
Deprecated.- Specified by:
pathOfRemoteRepositoryMetadata
in interfaceArtifactRepository
-
pathOfLocalRepositoryMetadata
public String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository) Deprecated.- Specified by:
pathOfLocalRepositoryMetadata
in interfaceArtifactRepository
-
setLayout
Deprecated.- Specified by:
setLayout
in interfaceArtifactRepository
-
getLayout
Deprecated.- Specified by:
getLayout
in interfaceArtifactRepository
-
setSnapshotUpdatePolicy
Deprecated.- Specified by:
setSnapshotUpdatePolicy
in interfaceArtifactRepository
-
getSnapshots
Deprecated.- Specified by:
getSnapshots
in interfaceArtifactRepository
-
setReleaseUpdatePolicy
Deprecated.- Specified by:
setReleaseUpdatePolicy
in interfaceArtifactRepository
-
getReleases
Deprecated.- Specified by:
getReleases
in interfaceArtifactRepository
-
getKey
Deprecated.- Specified by:
getKey
in interfaceArtifactRepository
-
isBlacklisted
public boolean isBlacklisted()Deprecated.- Specified by:
isBlacklisted
in interfaceArtifactRepository
-
setBlacklisted
public void setBlacklisted(boolean blacklisted) Deprecated.- Specified by:
setBlacklisted
in interfaceArtifactRepository
-
toString
Deprecated.- Overrides:
toString
in classorg.apache.maven.wagon.repository.Repository
-
find
Deprecated.- Specified by:
find
in interfaceArtifactRepository
-
findVersions
Deprecated.- Specified by:
findVersions
in interfaceArtifactRepository
-
isProjectAware
public boolean isProjectAware()Deprecated.- Specified by:
isProjectAware
in interfaceArtifactRepository
-
getAuthentication
Deprecated.- Specified by:
getAuthentication
in interfaceArtifactRepository
-
setAuthentication
Deprecated.- Specified by:
setAuthentication
in interfaceArtifactRepository
-
getProxy
Deprecated.- Specified by:
getProxy
in interfaceArtifactRepository
-
setProxy
Deprecated.- Specified by:
setProxy
in interfaceArtifactRepository
-
isUniqueVersion
public boolean isUniqueVersion()Deprecated.- Specified by:
isUniqueVersion
in interfaceArtifactRepository
-
getMirroredRepositories
Deprecated.- Specified by:
getMirroredRepositories
in interfaceArtifactRepository
-
setMirroredRepositories
Deprecated.- Specified by:
setMirroredRepositories
in interfaceArtifactRepository
-
isBlocked
public boolean isBlocked()Deprecated.- Specified by:
isBlocked
in interfaceArtifactRepository
-
setBlocked
public void setBlocked(boolean blocked) Deprecated.- Specified by:
setBlocked
in interfaceArtifactRepository
-