Class DefaultLocalRepositoryManager
java.lang.Object
org.apache.maven.impl.DefaultLocalRepositoryManager
- All Implemented Interfaces:
 Service,LocalRepositoryManager
@Named
@Singleton
public class DefaultLocalRepositoryManager
extends Object
implements LocalRepositoryManager
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetPathForLocalArtifact(Session session, LocalRepository local, Artifact artifact) Gets the relative path for a locally installed artifact.getPathForRemoteArtifact(Session session, LocalRepository local, RemoteRepository remote, Artifact artifact) Gets the relative path for an artifact cached from a remote repository. 
- 
Constructor Details
- 
DefaultLocalRepositoryManager
public DefaultLocalRepositoryManager() 
 - 
 - 
Method Details
- 
getPathForLocalArtifact
@Nonnull public Path getPathForLocalArtifact(@Nonnull Session session, @Nonnull LocalRepository local, @Nonnull Artifact artifact) Description copied from interface:LocalRepositoryManagerGets the relative path for a locally installed artifact. Note that the artifact need not actually exist yet at the returned location, the path merely indicates where the artifact would eventually be stored.- Specified by:
 getPathForLocalArtifactin interfaceLocalRepositoryManager- Parameters:
 session- The session to use, must not benull.artifact- The artifact for which to determine the path, must not benull.- Returns:
 - The path, resolved against the local repository's base directory.
 
 - 
getPathForRemoteArtifact
@Nonnull public Path getPathForRemoteArtifact(@Nonnull Session session, @Nonnull LocalRepository local, @Nonnull RemoteRepository remote, @Nonnull Artifact artifact) Description copied from interface:LocalRepositoryManagerGets the relative path for an artifact cached from a remote repository. Note that the artifact need not actually exist yet at the returned location, the path merely indicates where the artifact would eventually be stored.- Specified by:
 getPathForRemoteArtifactin interfaceLocalRepositoryManager- Parameters:
 session- The session to use, must not benull.local- The local repository, must not benull.remote- – The source repository of the artifact, must not benull.artifact- The artifact for which to determine the path, must not benull.- Returns:
 - The path, relative to the local repository's base directory.
 
 
 -