Package org.eclipse.aether.repository
Interface LocalRepositoryManager
public interface LocalRepositoryManager
Manages access to a local repository.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(RepositorySystemSession session, LocalArtifactRegistration request) Registers an installed or resolved artifact with the local repository.voidadd(RepositorySystemSession session, LocalMetadataRegistration request) Registers installed or resolved metadata with the local repository.find(RepositorySystemSession session, LocalArtifactRequest request) Queries for the existence of an artifact in the local repository.find(RepositorySystemSession session, LocalMetadataRequest request) Queries for the existence of metadata in the local repository.default PathgetAbsolutePathForLocalArtifact(Artifact artifact) Gets the absolute path for a locally installed artifact.default PathgetAbsolutePathForLocalMetadata(Metadata metadata) Gets the absolute path for locally installed metadata.default PathgetAbsolutePathForRemoteArtifact(Artifact artifact, RemoteRepository repository, String context) Gets the absolute path for an artifact cached from a remote repository.default PathgetAbsolutePathForRemoteMetadata(Metadata metadata, RemoteRepository repository, String context) Gets the absolute path for metadata cached from a remote repository.getPathForLocalArtifact(Artifact artifact) Deprecated.getPathForLocalMetadata(Metadata metadata) Deprecated.getPathForRemoteArtifact(Artifact artifact, RemoteRepository repository, String context) getPathForRemoteMetadata(Metadata metadata, RemoteRepository repository, String context) Gets the description of the local repository being managed.
- 
Method Details- 
getRepositoryGets the description of the local repository being managed.- Returns:
- The description of the local repository, never null.
 
- 
getAbsolutePathForLocalArtifactGets the absolute 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.- Parameters:
- artifact- The artifact for which to determine the path, must not be- null.
- Returns:
- The path, relative to the local repository's base directory.
- Since:
- 2.0.5
 
- 
getPathForLocalArtifactDeprecated.Gets 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. The path uses the forward slash as directory separator regardless of the underlying file system.- Parameters:
- artifact- The artifact for which to determine the path, must not be- null.
- Returns:
- The path, relative to the local repository's base directory.
 
- 
getAbsolutePathForRemoteArtifactdefault Path getAbsolutePathForRemoteArtifact(Artifact artifact, RemoteRepository repository, String context) Gets the absolute 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.- Parameters:
- artifact- The artifact for which to determine the path, must not be- null.
- repository- The source repository of the artifact, must not be- null.
- context- The resolution context in which the artifact is being requested, may be- null.
- Returns:
- The path, relative to the local repository's base directory.
- Since:
- 2.0.5
 
- 
getPathForRemoteArtifact@Deprecated String getPathForRemoteArtifact(Artifact artifact, RemoteRepository repository, String context) Gets 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. The path uses the forward slash as directory separator regardless of the underlying file system.- Parameters:
- artifact- The artifact for which to determine the path, must not be- null.
- repository- The source repository of the artifact, must not be- null.
- context- The resolution context in which the artifact is being requested, may be- null.
- Returns:
- The path, relative to the local repository's base directory.
 
- 
getAbsolutePathForLocalMetadataGets the absolute path for locally installed metadata. Note that the metadata need not actually exist yet at the returned location, the path merely indicates where the metadata would eventually be stored.- Parameters:
- metadata- The metadata for which to determine the path, must not be- null.
- Returns:
- The path, relative to the local repository's base directory.
- Since:
- 2.0.5
 
- 
getPathForLocalMetadataDeprecated.Gets the relative path for locally installed metadata. Note that the metadata need not actually exist yet at the returned location, the path merely indicates where the metadata would eventually be stored. The path uses the forward slash as directory separator regardless of the underlying file system.- Parameters:
- metadata- The metadata for which to determine the path, must not be- null.
- Returns:
- The path, relative to the local repository's base directory.
 
- 
getAbsolutePathForRemoteMetadatadefault Path getAbsolutePathForRemoteMetadata(Metadata metadata, RemoteRepository repository, String context) Gets the absolute path for metadata cached from a remote repository. Note that the metadata need not actually exist yet at the returned location, the path merely indicates where the metadata would eventually be stored.- Parameters:
- metadata- The metadata for which to determine the path, must not be- null.
- repository- The source repository of the metadata, must not be- null.
- context- The resolution context in which the metadata is being requested, may be- null.
- Returns:
- The path, relative to the local repository's base directory.
- Since:
- 2.0.5
 
- 
getPathForRemoteMetadata@Deprecated String getPathForRemoteMetadata(Metadata metadata, RemoteRepository repository, String context) Gets the relative path for metadata cached from a remote repository. Note that the metadata need not actually exist yet at the returned location, the path merely indicates where the metadata would eventually be stored. The path uses the forward slash as directory separator regardless of the underlying file system.- Parameters:
- metadata- The metadata for which to determine the path, must not be- null.
- repository- The source repository of the metadata, must not be- null.
- context- The resolution context in which the metadata is being requested, may be- null.
- Returns:
- The path, relative to the local repository's base directory.
 
- 
findQueries for the existence of an artifact in the local repository. The request could be satisfied by a locally installed artifact or a previously downloaded artifact.- Parameters:
- session- The repository system session during which the request is made, must not be- null.
- request- The artifact request, must not be- null.
- Returns:
- The result of the request, never null.
 
- 
addRegisters an installed or resolved artifact with the local repository. Note that artifact registration is merely concerned about updating the local repository's internal state, not about actually installing the artifact or its accompanying metadata.- Parameters:
- session- The repository system session during which the registration is made, must not be- null.
- request- The registration request, must not be- null.
 
- 
findQueries for the existence of metadata in the local repository. The request could be satisfied by locally installed or previously downloaded metadata.- Parameters:
- session- The repository system session during which the request is made, must not be- null.
- request- The metadata request, must not be- null.
- Returns:
- The result of the request, never null.
 
- 
addRegisters installed or resolved metadata with the local repository. Note that metadata registration is merely concerned about updating the local repository's internal state, not about actually installing the metadata. However, this method MUST be called after the actual install to give the repository manager the opportunity to inspect the added metadata.- Parameters:
- session- The repository system session during which the registration is made, must not be- null.
- request- The registration request, must not be- null.
 
 
- 
getAbsolutePathForLocalArtifact(Artifact)