Package org.eclipse.aether.repository
Class LocalRepository
java.lang.Object
org.eclipse.aether.repository.LocalRepository
- All Implemented Interfaces:
- ArtifactRepository
A repository on the local file system used to cache contents of remote repositories and to store locally installed
 artifacts. Note that this class merely describes such a repository, actual access to the contained artifacts is
 handled by a 
LocalRepositoryManager which is usually determined from the type of
 the repository.- 
Constructor SummaryConstructorsConstructorDescriptionLocalRepository(File basedir) Deprecated.LocalRepository(File basedir, String type) Deprecated.UseLocalRepository(Path, String)instead.LocalRepository(String basedir) Creates a new local repository with the specified base directory and unknown type.LocalRepository(URI basedir) Creates a new local repository with the specified base directory and unknown type.LocalRepository(Path basePath) Creates a new local repository with the specified base directory and unknown type.LocalRepository(Path basePath, String type) Creates a new local repository with the specified properties.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanDeprecated.UsegetBasePath()instead.Gets the base directory of the repository.Gets the type of the repository, for example "default".getId()Gets the identifier of this repository.inthashCode()toString()
- 
Constructor Details- 
LocalRepositoryCreates a new local repository with the specified base directory and unknown type.- Parameters:
- basedir- The base directory of the repository, may be- null.
 
- 
LocalRepositoryCreates a new local repository with the specified base directory and unknown type.- Parameters:
- basedir- The base directory of the repository, may be- null.
- Since:
- 2.0.0
 
- 
LocalRepositoryDeprecated.UseLocalRepository(Path)instead.Creates a new local repository with the specified base directory and unknown type.- Parameters:
- basedir- The base directory of the repository, may be- null.
 
- 
LocalRepositoryCreates a new local repository with the specified base directory and unknown type.- Parameters:
- basePath- The base directory of the repository, may be- null.
- Since:
- 2.0.0
 
- 
LocalRepositoryDeprecated.UseLocalRepository(Path, String)instead.Creates a new local repository with the specified properties.- Parameters:
- basedir- The base directory of the repository, may be- null.
- type- The type of the repository, may be- null.
 
- 
LocalRepositoryCreates a new local repository with the specified properties.- Parameters:
- basePath- The base directory of the repository, may be- null.
- type- The type of the repository, may be- null.
- Since:
- 2.0.0
 
 
- 
- 
Method Details- 
getContentTypeDescription copied from interface:ArtifactRepositoryGets the type of the repository, for example "default".- Specified by:
- getContentTypein interface- ArtifactRepository
- Returns:
- The (case-sensitive) type of the repository, never null.
 
- 
getIdDescription copied from interface:ArtifactRepositoryGets the identifier of this repository.- Specified by:
- getIdin interface- ArtifactRepository
- Returns:
- The (case-sensitive) identifier, never null.
 
- 
getBasedirDeprecated.UsegetBasePath()instead.Gets the base directory of the repository.- Returns:
- The base directory or nullif none.
 
- 
getBasePathGets the base directory of the repository.- Returns:
- The base directory or nullif none.
- Since:
- 2.0.0
 
- 
toString
- 
equals
- 
hashCode
 
- 
LocalRepository(Path)instead.