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 SummaryConstructorsConstructorDescriptionDefaultArtifactRepository(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 SummaryModifier and TypeMethodDescriptionDeprecated.findVersions(Artifact artifact) Deprecated.Finds the versions of the specified artifact that are available in this repository.Deprecated.getKey()Deprecated.Deprecated.Deprecated.getProxy()Deprecated.Deprecated.Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.Indicates whether this repository is backed by actual projects.booleanDeprecated.Deprecated.pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository) Deprecated.pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata) Deprecated.voidsetAuthentication(Authentication authentication) Deprecated.voidsetBlacklisted(boolean blacklisted) Deprecated.voidsetBlocked(boolean blocked) Deprecated.voidsetLayout(ArtifactRepositoryLayout layout) Deprecated.voidsetMirroredRepositories(List<ArtifactRepository> mirroredRepositories) Deprecated.voidDeprecated.voidDeprecated.voidsetSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots) Deprecated.toString()Deprecated.Methods inherited from class org.apache.maven.wagon.repository.Repositoryequals, getBasedir, getHost, getId, getName, getParameter, getPassword, getPermissions, getPort, getProtocol, getUrl, getUsername, hashCode, setBasedir, setId, setName, setParameters, setPermissions, setPort, setProtocol, setUrlMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.artifact.repository.ArtifactRepositorygetBasedir, getId, getProtocol, getUrl, setId, setUrl
- 
Constructor Details- 
DefaultArtifactRepositoryDeprecated.Create a local repository or a test repository.- Parameters:
- id- the unique identifier of the repository
- url- the URL of the repository
- layout- the layout of the repository
 
- 
DefaultArtifactRepositorypublic DefaultArtifactRepository(String id, String url, ArtifactRepositoryLayout layout, boolean uniqueVersion) Deprecated.Create a remote deployment repository.- Parameters:
- id- the unique identifier of the repository
- url- the URL of the repository
- layout- the layout of the repository
- uniqueVersion- whether to assign each snapshot a unique version
 
- 
DefaultArtifactRepositorypublic DefaultArtifactRepository(String id, String url, ArtifactRepositoryLayout layout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) Deprecated.Create a remote download repository.- Parameters:
- id- the unique identifier of the repository
- url- the URL of the repository
- layout- the layout of the repository
- snapshots- the policies to use for snapshots
- releases- the policies to use for releases
 
 
- 
- 
Method Details- 
pathOfDeprecated.- Specified by:
- pathOfin interface- ArtifactRepository
 
- 
pathOfRemoteRepositoryMetadataDeprecated.- Specified by:
- pathOfRemoteRepositoryMetadatain interface- ArtifactRepository
 
- 
pathOfLocalRepositoryMetadatapublic String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository) Deprecated.- Specified by:
- pathOfLocalRepositoryMetadatain interface- ArtifactRepository
 
- 
setLayoutDeprecated.- Specified by:
- setLayoutin interface- ArtifactRepository
 
- 
getLayoutDeprecated.- Specified by:
- getLayoutin interface- ArtifactRepository
 
- 
setSnapshotUpdatePolicyDeprecated.- Specified by:
- setSnapshotUpdatePolicyin interface- ArtifactRepository
 
- 
getSnapshotsDeprecated.- Specified by:
- getSnapshotsin interface- ArtifactRepository
 
- 
setReleaseUpdatePolicyDeprecated.- Specified by:
- setReleaseUpdatePolicyin interface- ArtifactRepository
 
- 
getReleasesDeprecated.- Specified by:
- getReleasesin interface- ArtifactRepository
 
- 
getKeyDeprecated.- Specified by:
- getKeyin interface- ArtifactRepository
 
- 
isBlacklistedpublic boolean isBlacklisted()Deprecated.- Specified by:
- isBlacklistedin interface- ArtifactRepository
 
- 
setBlacklistedpublic void setBlacklisted(boolean blacklisted) Deprecated.- Specified by:
- setBlacklistedin interface- ArtifactRepository
 
- 
toStringDeprecated.- Overrides:
- toStringin class- org.apache.maven.wagon.repository.Repository
 
- 
findDeprecated.- Specified by:
- findin interface- ArtifactRepository
- Parameters:
- artifact- an artifact
- Returns:
- found artifact
 
- 
findVersionsDeprecated.Description copied from interface:ArtifactRepositoryFinds the versions of the specified artifact that are available in this repository.- Specified by:
- findVersionsin interface- ArtifactRepository
- Parameters:
- artifact- The artifact whose available versions should be determined, must not be- null.
- Returns:
- The available versions of the artifact or an empty list if none, never null.
 
- 
isProjectAwarepublic 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 interface- ArtifactRepository
- Returns:
- trueif the repository is backed by actual projects,- falseotherwise.
 
- 
getAuthenticationDeprecated.- Specified by:
- getAuthenticationin interface- ArtifactRepository
- Returns:
- repository authentication
 
- 
setAuthenticationDeprecated.- Specified by:
- setAuthenticationin interface- ArtifactRepository
- Parameters:
- authentication- authentication
 
- 
getProxyDeprecated.- Specified by:
- getProxyin interface- ArtifactRepository
- Returns:
- repository proxy
 
- 
setProxyDeprecated.- Specified by:
- setProxyin interface- ArtifactRepository
- Parameters:
- proxy- proxy
 
- 
isUniqueVersionpublic boolean isUniqueVersion()Deprecated.- Specified by:
- isUniqueVersionin interface- ArtifactRepository
 
- 
getMirroredRepositoriesDeprecated.- Specified by:
- getMirroredRepositoriesin interface- ArtifactRepository
- Returns:
- the repositories mirrored by the actual one
 
- 
setMirroredRepositoriesDeprecated.- Specified by:
- setMirroredRepositoriesin interface- ArtifactRepository
- Parameters:
- mirroredRepositories- the repositories that the actual one mirrors
 
- 
isBlockedpublic boolean isBlocked()Deprecated.- Specified by:
- isBlockedin interface- ArtifactRepository
- Returns:
- whether the repository is blocked
 
- 
setBlockedpublic void setBlocked(boolean blocked) Deprecated.- Specified by:
- setBlockedin interface- ArtifactRepository
- Parameters:
- blocked- block the repository?
 
 
-