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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultArtifactRepository(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.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.Repository
equals, 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
pathOfin interfaceArtifactRepository
-
pathOfRemoteRepositoryMetadata
Deprecated.- Specified by:
pathOfRemoteRepositoryMetadatain interfaceArtifactRepository
-
pathOfLocalRepositoryMetadata
public String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository) Deprecated.- Specified by:
pathOfLocalRepositoryMetadatain interfaceArtifactRepository
-
setLayout
Deprecated.- Specified by:
setLayoutin interfaceArtifactRepository
-
getLayout
Deprecated.- Specified by:
getLayoutin interfaceArtifactRepository
-
setSnapshotUpdatePolicy
Deprecated.- Specified by:
setSnapshotUpdatePolicyin interfaceArtifactRepository
-
getSnapshots
Deprecated.- Specified by:
getSnapshotsin interfaceArtifactRepository
-
setReleaseUpdatePolicy
Deprecated.- Specified by:
setReleaseUpdatePolicyin interfaceArtifactRepository
-
getReleases
Deprecated.- Specified by:
getReleasesin interfaceArtifactRepository
-
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
Deprecated.- Overrides:
toStringin classorg.apache.maven.wagon.repository.Repository
-
find
Deprecated.- Specified by:
findin interfaceArtifactRepository- Parameters:
artifact- an artifact- Returns:
- found artifact
-
findVersions
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
Deprecated.- Specified by:
getAuthenticationin interfaceArtifactRepository- Returns:
- repository authentication
-
setAuthentication
Deprecated.- Specified by:
setAuthenticationin interfaceArtifactRepository- Parameters:
authentication- authentication
-
getProxy
Deprecated.- Specified by:
getProxyin interfaceArtifactRepository- Returns:
- repository proxy
-
setProxy
Deprecated.- Specified by:
setProxyin interfaceArtifactRepository- Parameters:
proxy- proxy
-
isUniqueVersion
public boolean isUniqueVersion()Deprecated.- Specified by:
isUniqueVersionin interfaceArtifactRepository
-
getMirroredRepositories
Deprecated.- Specified by:
getMirroredRepositoriesin interfaceArtifactRepository- Returns:
- the repositories mirrored by the actual one
-
setMirroredRepositories
Deprecated.- Specified by:
setMirroredRepositoriesin interfaceArtifactRepository- Parameters:
mirroredRepositories- the repositories that the actual one mirrors
-
isBlocked
public boolean isBlocked()Deprecated.- Specified by:
isBlockedin interfaceArtifactRepository- Returns:
- whether the repository is blocked
-
setBlocked
public void setBlocked(boolean blocked) Deprecated.- Specified by:
setBlockedin interfaceArtifactRepository- Parameters:
blocked- block the repository?
-