Class MavenArtifactRepository
java.lang.Object
org.apache.maven.artifact.repository.MavenArtifactRepository
- All Implemented Interfaces:
- ArtifactRepository
- Direct Known Subclasses:
- DelegatingLocalArtifactRepository,- LocalArtifactRepository
Abstraction of an artifact repository. Artifact repositories can be remote, local, or even build reactor or
 IDE workspace.
- 
Constructor SummaryConstructorsConstructorDescriptionMavenArtifactRepository(String id, String url, ArtifactRepositoryLayout layout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) Create a remote download repository.
- 
Method SummaryModifier and TypeMethodDescriptionprotected static <T> booleaneq(T s1, T s2) booleanfindVersions(Artifact artifact) Finds the versions of the specified artifact that are available in this repository.getId()getKey()getProxy()getUrl()inthashCode()booleanbooleanbooleanIndicates whether this repository is backed by actual projects.booleanpathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository) pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata) voidsetAuthentication(Authentication authentication) voidsetBlacklisted(boolean blackListed) voidsetBlocked(boolean blocked) voidvoidsetLayout(ArtifactRepositoryLayout layout) voidsetMirroredRepositories(List<ArtifactRepository> mirroredRepositories) voidvoidvoidsetSnapshotUpdatePolicy(ArtifactRepositoryPolicy snapshots) voidtoString()
- 
Constructor Details- 
MavenArtifactRepositorypublic MavenArtifactRepository()
- 
MavenArtifactRepositorypublic MavenArtifactRepository(String id, String url, ArtifactRepositoryLayout layout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases) 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- 
pathOf- Specified by:
- pathOfin interface- ArtifactRepository
 
- 
pathOfRemoteRepositoryMetadata- Specified by:
- pathOfRemoteRepositoryMetadatain interface- ArtifactRepository
 
- 
pathOfLocalRepositoryMetadatapublic String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository) - Specified by:
- pathOfLocalRepositoryMetadatain interface- ArtifactRepository
 
- 
setLayout- Specified by:
- setLayoutin interface- ArtifactRepository
 
- 
getLayout- Specified by:
- getLayoutin interface- ArtifactRepository
 
- 
setSnapshotUpdatePolicy- Specified by:
- setSnapshotUpdatePolicyin interface- ArtifactRepository
 
- 
getSnapshots- Specified by:
- getSnapshotsin interface- ArtifactRepository
 
- 
setReleaseUpdatePolicy- Specified by:
- setReleaseUpdatePolicyin interface- ArtifactRepository
 
- 
getReleases- Specified by:
- getReleasesin interface- ArtifactRepository
 
- 
getKey- Specified by:
- getKeyin interface- ArtifactRepository
 
- 
toString
- 
find- Specified by:
- findin interface- ArtifactRepository
- Parameters:
- artifact- an artifact
- Returns:
- found artifact
 
- 
findVersionsDescription 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.
 
- 
getId- Specified by:
- getIdin interface- ArtifactRepository
 
- 
getUrl- Specified by:
- getUrlin interface- ArtifactRepository
 
- 
getBasedir- Specified by:
- getBasedirin interface- ArtifactRepository
 
- 
getProtocol- Specified by:
- getProtocolin interface- ArtifactRepository
 
- 
setId- Specified by:
- setIdin interface- ArtifactRepository
 
- 
setUrl- Specified by:
- setUrlin interface- ArtifactRepository
 
- 
hashCodepublic int hashCode()
- 
equals
- 
eqprotected static <T> boolean eq(T s1, T s2) 
- 
getAuthentication- Specified by:
- getAuthenticationin interface- ArtifactRepository
- Returns:
- repository authentication
 
- 
setAuthentication- Specified by:
- setAuthenticationin interface- ArtifactRepository
- Parameters:
- authentication- authentication
 
- 
getProxy- Specified by:
- getProxyin interface- ArtifactRepository
- Returns:
- repository proxy
 
- 
setProxy- Specified by:
- setProxyin interface- ArtifactRepository
- Parameters:
- proxy- proxy
 
- 
isBlacklistedpublic boolean isBlacklisted()- Specified by:
- isBlacklistedin interface- ArtifactRepository
 
- 
setBlacklistedpublic void setBlacklisted(boolean blackListed) - Specified by:
- setBlacklistedin interface- ArtifactRepository
 
- 
isUniqueVersionpublic boolean isUniqueVersion()- Specified by:
- isUniqueVersionin interface- ArtifactRepository
 
- 
isProjectAwarepublic boolean isProjectAware()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.
 
- 
getMirroredRepositories- Specified by:
- getMirroredRepositoriesin interface- ArtifactRepository
- Returns:
- the repositories mirrored by the actual one
 
- 
setMirroredRepositories- Specified by:
- setMirroredRepositoriesin interface- ArtifactRepository
- Parameters:
- mirroredRepositories- the repositories that the actual one mirrors
 
- 
isBlockedpublic boolean isBlocked()- Specified by:
- isBlockedin interface- ArtifactRepository
- Returns:
- whether the repository is blocked
 
- 
setBlockedpublic void setBlocked(boolean blocked) - Specified by:
- setBlockedin interface- ArtifactRepository
- Parameters:
- blocked- block the repository?
 
 
-