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