public class ArtifactResolverWrapper extends Object
| Modifier and Type | Method and Description | 
|---|---|
| String | getArtifactAbsolutePath(String groupId,
                       String artifactId,
                       String version)Return the artifact path in the local repository for an artifact defined by its  groupId,
 itsartifactIdand itsversion. | 
| protected ArtifactFactory | getFactory() | 
| static ArtifactResolverWrapper | getInstance(ArtifactResolver resolver,
           ArtifactFactory factory,
           ArtifactRepository localRepository,
           List remoteRepositories) | 
| String | getLocalArtifactPath(Artifact artifact)Gets the path to the specified artifact relative to the local repository's base directory. | 
| protected ArtifactRepository | getLocalRepository() | 
| protected List | getRemoteRepositories() | 
| protected ArtifactResolver | getResolver() | 
| protected void | setFactory(ArtifactFactory factory) | 
| protected void | setLocalRepository(ArtifactRepository localRepository) | 
| protected void | setRemoteRepositories(List remoteRepositories) | 
| protected void | setResolver(ArtifactResolver resolver) | 
public static ArtifactResolverWrapper getInstance(ArtifactResolver resolver, ArtifactFactory factory, ArtifactRepository localRepository, List remoteRepositories)
resolver - ArtifactResolverfactory - ArtifactFactorylocalRepository - ArtifactRepositoryremoteRepositories - XX.protected ArtifactFactory getFactory()
factoryprotected void setFactory(ArtifactFactory factory)
factory - ArtifactFactoryprotected ArtifactRepository getLocalRepository()
localRepositoryprotected void setLocalRepository(ArtifactRepository localRepository)
localRepository - set localRepositoryprotected List getRemoteRepositories()
remoteRepositoriesprotected void setRemoteRepositories(List remoteRepositories)
remoteRepositories - remoteRepositoriesprotected ArtifactResolver getResolver()
resolverprotected void setResolver(ArtifactResolver resolver)
resolver - resolverpublic 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(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.