public interface Repository
Repository is a container holding repositories. Unlike in case of Maven repositories, artifacts in XMvn repository
don't necessarily need to have unique paths -- one artifact can be stored in one of multiple locations. Methods or
Repository
interface support multiple artifact paths.
Modifier and Type | Method and Description |
---|---|
void |
configure(List<Stereotype> stereotypes,
Properties properties,
org.codehaus.plexus.util.xml.Xpp3Dom configuration)
Configure this repository with given set of properties and repository-specific XML configuration.
|
List<RepositoryPath> |
getArtifactPaths(org.sonatype.aether.artifact.Artifact artifact)
Get list of possible paths to given artifact in this repository.
|
List<RepositoryPath> |
getArtifactPaths(org.sonatype.aether.artifact.Artifact artifact,
boolean ignoreType)
Get list of possible paths to given artifact in this repository.
|
List<RepositoryPath> |
getArtifactPaths(List<org.sonatype.aether.artifact.Artifact> artifact)
Get list of possible paths to given artifacts in this repository.
|
List<RepositoryPath> |
getArtifactPaths(List<org.sonatype.aether.artifact.Artifact> artifact,
boolean ignoreType)
Get list of possible paths to given artifacts in this repository.
|
String |
getNamespace() |
RepositoryPath |
getPrimaryArtifactPath(org.sonatype.aether.artifact.Artifact artifact)
Obtain the preferred path to given artifact in this repository.
|
RepositoryPath |
getPrimaryArtifactPath(org.sonatype.aether.artifact.Artifact artifact,
boolean ignoreType)
Obtain the preferred path to given artifact in this repository.
|
void |
setNamespace(String namespace) |
void configure(List<Stereotype> stereotypes, Properties properties, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
The meaning of properties and XML configuration is dependent on particular repository implementation.
stereotypes
- properties
- configuration
- RepositoryPath getPrimaryArtifactPath(org.sonatype.aether.artifact.Artifact artifact)
Returned path is relative to the repository base.
artifact
- RepositoryPath getPrimaryArtifactPath(org.sonatype.aether.artifact.Artifact artifact, boolean ignoreType)
Returned path is relative to the repository base.
artifact
- ignoreType
- whether repository artifact type should be ignoredList<RepositoryPath> getArtifactPaths(org.sonatype.aether.artifact.Artifact artifact)
All returned paths are relative to the repository base.
artifact
- List<RepositoryPath> getArtifactPaths(org.sonatype.aether.artifact.Artifact artifact, boolean ignoreType)
All returned paths are relative to the repository base.
artifact
- ignoreType
- whether repository artifact type should be ignoredList<RepositoryPath> getArtifactPaths(List<org.sonatype.aether.artifact.Artifact> artifact)
All returned paths are relative to the repository base.
artifacts
- list of artifacts to lookupList<RepositoryPath> getArtifactPaths(List<org.sonatype.aether.artifact.Artifact> artifact, boolean ignoreType)
All returned paths are relative to the repository base.
artifacts
- list of artifacts to lookupignoreType
- whether repository artifact type should be ignoredString getNamespace()
void setNamespace(String namespace)
Copyright © 2012-2016 Red Hat, Inc.. All Rights Reserved.