public interface ArtifactRepository
Modifier and Type | Method and Description |
---|---|
boolean |
containsArtifact(GAV gav)
Checks whether this Maven repository contains the specified artifact (GAV).
|
void |
delete(GAV gav)
Delete an artifact from the repository
|
void |
deploy(String pom,
org.eclipse.aether.artifact.Artifact... artifacts)
Deploy a list of artifact into a repository
|
File |
getArtifactFileFromRepository(GAV gav)
Return an artifact from the repository
|
String |
getName()
Returns the name of the repository, an identifier
|
String |
getRootDir()
Return the root dir of a repository, if it doesn't have one, return null
|
boolean |
isPomRepository()
Identifies if is a repository that admit pom artifacts
|
boolean |
isRepository()
Identifies if is a repository that admit artifacts
|
Collection<org.eclipse.aether.artifact.Artifact> |
listArtifacts(List<String> wildcards)
List repository artifacts filtered by wildcards
|
Collection<File> |
listFiles(List<String> wildcards)
List repository files filtered by wildcards
|
String getName()
String getRootDir()
Collection<File> listFiles(List<String> wildcards)
wildcards
- the filtering wildcardsCollection<org.eclipse.aether.artifact.Artifact> listArtifacts(List<String> wildcards)
wildcards
- the filtering wildcardsvoid deploy(String pom, org.eclipse.aether.artifact.Artifact... artifacts)
pom
- the artifact pomartifacts
- the list of artifactsvoid delete(GAV gav)
gav
- the GAV identifier of the artifact to be deletedboolean containsArtifact(GAV gav)
As opposed to ${code getArtifactFileFromRepository(GAV)
}, this method will not log any WARNings in case
the artifact is not present (the Aether exception is only logged as TRACE message).
gav
- artifact GAV, never nullFile getArtifactFileFromRepository(GAV gav)
gav
- the GAV identifierboolean isRepository()
boolean isPomRepository()
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.