@Component(role=Repository.class, hint="maven", instantiationStrategy="per-lookup") public class MavenRepository extends Object
Example: g/r/o/u/p/artifact/ver/artifact-ver.ext
WARNING: This class is part of internal implementation of XMvn and it is marked as public only for technical reasons. This class is not part of XMvn API. Client code using XMvn should not reference it directly.
| Constructor and Description |
|---|
MavenRepository() |
| 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.
|
protected Path |
getArtifactPath(String groupId,
String artifactId,
String extension,
String classifier,
String version) |
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> artifacts)
Get list of possible paths to given artifacts in this repository.
|
List<RepositoryPath> |
getArtifactPaths(List<org.sonatype.aether.artifact.Artifact> artifacts,
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) |
protected Path getArtifactPath(String groupId, String artifactId, String extension, String classifier, String version)
public RepositoryPath getPrimaryArtifactPath(org.sonatype.aether.artifact.Artifact artifact, boolean ignoreType)
RepositoryReturned path is relative to the repository base.
ignoreType - whether repository artifact type should be ignoredpublic List<RepositoryPath> getArtifactPaths(List<org.sonatype.aether.artifact.Artifact> artifacts, boolean ignoreType)
RepositoryAll returned paths are relative to the repository base.
ignoreType - whether repository artifact type should be ignoredpublic void configure(List<Stereotype> stereotypes, Properties properties, org.codehaus.plexus.util.xml.Xpp3Dom configuration)
RepositoryThe meaning of properties and XML configuration is dependent on particular repository implementation.
public String getNamespace()
getNamespace in interface Repositorypublic void setNamespace(String namespace)
setNamespace in interface Repositorypublic RepositoryPath getPrimaryArtifactPath(org.sonatype.aether.artifact.Artifact artifact)
RepositoryReturned path is relative to the repository base.
getPrimaryArtifactPath in interface Repositorypublic List<RepositoryPath> getArtifactPaths(org.sonatype.aether.artifact.Artifact artifact)
RepositoryAll returned paths are relative to the repository base.
getArtifactPaths in interface Repositorypublic List<RepositoryPath> getArtifactPaths(org.sonatype.aether.artifact.Artifact artifact, boolean ignoreType)
RepositoryAll returned paths are relative to the repository base.
getArtifactPaths in interface RepositoryignoreType - whether repository artifact type should be ignoredpublic List<RepositoryPath> getArtifactPaths(List<org.sonatype.aether.artifact.Artifact> artifacts)
RepositoryAll returned paths are relative to the repository base.
getArtifactPaths in interface RepositoryCopyright © 2012-2014 Red Hat, Inc.. All Rights Reserved.