Class DefaultArtifactRepository
- java.lang.Object
-
- org.apache.maven.wagon.repository.Repository
-
- org.apache.maven.artifact.repository.DefaultArtifactRepository
-
- All Implemented Interfaces:
java.io.Serializable,ArtifactRepository
- Direct Known Subclasses:
MetadataBridge.MetadataRepository
@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 transfered.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private AuthenticationauthenticationDeprecated.private booleanblacklistedDeprecated.private ArtifactRepositoryLayoutlayoutDeprecated.private java.util.List<ArtifactRepository>mirroredRepositoriesDeprecated.private ProxyproxyDeprecated.private ArtifactRepositoryPolicyreleasesDeprecated.private ArtifactRepositoryPolicysnapshotsDeprecated.
-
Constructor Summary
Constructors Constructor Description DefaultArtifactRepository(java.lang.String id, java.lang.String url, ArtifactRepositoryLayout layout)Deprecated.Create a local repository or a test repository.DefaultArtifactRepository(java.lang.String id, java.lang.String url, ArtifactRepositoryLayout layout, boolean uniqueVersion)Deprecated.Create a remote deployment repository.DefaultArtifactRepository(java.lang.String id, java.lang.String url, ArtifactRepositoryLayout layout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases)Deprecated.Create a remote download repository.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Artifactfind(Artifact artifact)Deprecated.java.util.List<java.lang.String>findVersions(Artifact artifact)Deprecated.Finds the versions of the specified artifact that are available in this repository.AuthenticationgetAuthentication()Deprecated.java.lang.StringgetKey()Deprecated.ArtifactRepositoryLayoutgetLayout()Deprecated.java.util.List<ArtifactRepository>getMirroredRepositories()Deprecated.ProxygetProxy()Deprecated.ArtifactRepositoryPolicygetReleases()Deprecated.ArtifactRepositoryPolicygetSnapshots()Deprecated.booleanisBlacklisted()Deprecated.booleanisProjectAware()Deprecated.Indicates whether this repository is backed by actual projects.booleanisUniqueVersion()Deprecated.java.lang.StringpathOf(Artifact artifact)Deprecated.java.lang.StringpathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)Deprecated.java.lang.StringpathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)Deprecated.voidsetAuthentication(Authentication authentication)Deprecated.voidsetBlacklisted(boolean blacklisted)Deprecated.voidsetLayout(ArtifactRepositoryLayout layout)Deprecated.voidsetMirroredRepositories(java.util.List<ArtifactRepository> mirroredRepositories)Deprecated.voidsetProxy(Proxy proxy)Deprecated.voidsetReleaseUpdatePolicy(ArtifactRepositoryPolicy releases)Deprecated.voidsetSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots)Deprecated.java.lang.StringtoString()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
-
-
-
-
Field Detail
-
layout
private ArtifactRepositoryLayout layout
Deprecated.
-
snapshots
private ArtifactRepositoryPolicy snapshots
Deprecated.
-
releases
private ArtifactRepositoryPolicy releases
Deprecated.
-
blacklisted
private boolean blacklisted
Deprecated.
-
authentication
private Authentication authentication
Deprecated.
-
proxy
private Proxy proxy
Deprecated.
-
mirroredRepositories
private java.util.List<ArtifactRepository> mirroredRepositories
Deprecated.
-
-
Constructor Detail
-
DefaultArtifactRepository
public DefaultArtifactRepository(java.lang.String id, java.lang.String url, 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(java.lang.String id, java.lang.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(java.lang.String id, java.lang.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 Detail
-
pathOf
public java.lang.String pathOf(Artifact artifact)
Deprecated.- Specified by:
pathOfin interfaceArtifactRepository
-
pathOfRemoteRepositoryMetadata
public java.lang.String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
Deprecated.- Specified by:
pathOfRemoteRepositoryMetadatain interfaceArtifactRepository
-
pathOfLocalRepositoryMetadata
public java.lang.String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
Deprecated.- Specified by:
pathOfLocalRepositoryMetadatain interfaceArtifactRepository
-
setLayout
public void setLayout(ArtifactRepositoryLayout layout)
Deprecated.- Specified by:
setLayoutin interfaceArtifactRepository
-
getLayout
public ArtifactRepositoryLayout getLayout()
Deprecated.- Specified by:
getLayoutin interfaceArtifactRepository
-
setSnapshotUpdatePolicy
public void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots)
Deprecated.- Specified by:
setSnapshotUpdatePolicyin interfaceArtifactRepository
-
getSnapshots
public ArtifactRepositoryPolicy getSnapshots()
Deprecated.- Specified by:
getSnapshotsin interfaceArtifactRepository
-
setReleaseUpdatePolicy
public void setReleaseUpdatePolicy(ArtifactRepositoryPolicy releases)
Deprecated.- Specified by:
setReleaseUpdatePolicyin interfaceArtifactRepository
-
getReleases
public ArtifactRepositoryPolicy getReleases()
Deprecated.- Specified by:
getReleasesin interfaceArtifactRepository
-
getKey
public java.lang.String getKey()
Deprecated.- Specified by:
getKeyin interfaceArtifactRepository
-
isBlacklisted
public boolean isBlacklisted()
Deprecated.- Specified by:
isBlacklistedin interfaceArtifactRepository
-
setBlacklisted
public void setBlacklisted(boolean blacklisted)
Deprecated.- Specified by:
setBlacklistedin interfaceArtifactRepository
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classorg.apache.maven.wagon.repository.Repository
-
find
public Artifact find(Artifact artifact)
Deprecated.- Specified by:
findin interfaceArtifactRepository
-
findVersions
public java.util.List<java.lang.String> findVersions(Artifact artifact)
Deprecated.Description copied from interface:ArtifactRepositoryFinds the versions of the specified artifact that are available in this repository.- Specified by:
findVersionsin interfaceArtifactRepository- Parameters:
artifact- The artifact whose available versions should be determined, must not benull.- Returns:
- The available versions of the artifact or an empty list if none, never
null.
-
isProjectAware
public boolean isProjectAware()
Deprecated.Description copied from interface:ArtifactRepositoryIndicates whether this repository is backed by actual projects. For instance, the build reactor or IDE workspace are examples of such repositories.- Specified by:
isProjectAwarein interfaceArtifactRepository- Returns:
trueif the repository is backed by actual projects,falseotherwise.
-
getAuthentication
public Authentication getAuthentication()
Deprecated.- Specified by:
getAuthenticationin interfaceArtifactRepository
-
setAuthentication
public void setAuthentication(Authentication authentication)
Deprecated.- Specified by:
setAuthenticationin interfaceArtifactRepository
-
getProxy
public Proxy getProxy()
Deprecated.- Specified by:
getProxyin interfaceArtifactRepository
-
setProxy
public void setProxy(Proxy proxy)
Deprecated.- Specified by:
setProxyin interfaceArtifactRepository
-
isUniqueVersion
public boolean isUniqueVersion()
Deprecated.- Specified by:
isUniqueVersionin interfaceArtifactRepository
-
getMirroredRepositories
public java.util.List<ArtifactRepository> getMirroredRepositories()
Deprecated.- Specified by:
getMirroredRepositoriesin interfaceArtifactRepository- Returns:
- the repositories mirrored by the actual one
-
setMirroredRepositories
public void setMirroredRepositories(java.util.List<ArtifactRepository> mirroredRepositories)
Deprecated.- Specified by:
setMirroredRepositoriesin interfaceArtifactRepository- Parameters:
mirroredRepositories- the repositories that the actual one mirrors
-
-