public class ArtifactResolverWrapper extends Object
Modifier and Type | Method | Description |
---|---|---|
String |
getArtifactAbsolutePath(String groupId,
String artifactId,
String version) |
Return the artifact path in the local repository for an artifact defined by its
groupId ,
its artifactId and its version . |
protected org.apache.maven.artifact.factory.ArtifactFactory |
getFactory() |
|
static ArtifactResolverWrapper |
getInstance(org.apache.maven.artifact.resolver.ArtifactResolver resolver,
org.apache.maven.artifact.factory.ArtifactFactory factory,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
List remoteRepositories) |
|
String |
getLocalArtifactPath(org.apache.maven.artifact.Artifact artifact) |
Gets the path to the specified artifact relative to the local repository's base directory.
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
getLocalRepository() |
|
protected List |
getRemoteRepositories() |
|
protected org.apache.maven.artifact.resolver.ArtifactResolver |
getResolver() |
|
protected void |
setFactory(org.apache.maven.artifact.factory.ArtifactFactory factory) |
|
protected void |
setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository) |
|
protected void |
setRemoteRepositories(List remoteRepositories) |
|
protected void |
setResolver(org.apache.maven.artifact.resolver.ArtifactResolver resolver) |
public static ArtifactResolverWrapper getInstance(org.apache.maven.artifact.resolver.ArtifactResolver resolver, org.apache.maven.artifact.factory.ArtifactFactory factory, org.apache.maven.artifact.repository.ArtifactRepository localRepository, List remoteRepositories)
resolver
- ArtifactResolver
factory
- ArtifactFactory
localRepository
- ArtifactRepository
remoteRepositories
- XX
.protected org.apache.maven.artifact.factory.ArtifactFactory getFactory()
factory
protected void setFactory(org.apache.maven.artifact.factory.ArtifactFactory factory)
factory
- ArtifactFactory
protected org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
localRepository
protected void setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)
localRepository
- set localRepository
protected List getRemoteRepositories()
remoteRepositories
protected void setRemoteRepositories(List remoteRepositories)
remoteRepositories
- remoteRepositories
protected org.apache.maven.artifact.resolver.ArtifactResolver getResolver()
resolver
protected void setResolver(org.apache.maven.artifact.resolver.ArtifactResolver resolver)
resolver
- resolver
public String getArtifactAbsolutePath(String groupId, String artifactId, String version) throws IOException
groupId
,
its artifactId
and its version
.groupId
- The groupId.artifactId
- The artifactId.version
- The version.IOException
- if anypublic String getLocalArtifactPath(org.apache.maven.artifact.Artifact artifact)
artifact
- The artifact whose path should be determined, must not be null
.null
.Copyright © 2002–2019 The Apache Software Foundation. All rights reserved.