Class LocalRepository

java.lang.Object
org.eclipse.aether.repository.LocalRepository
All Implemented Interfaces:
ArtifactRepository

public final class LocalRepository extends Object implements 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 Details

    • LocalRepository

      public LocalRepository(String basedir)
      Creates a new local repository with the specified base directory and unknown type.
      Parameters:
      basedir - The base directory of the repository, may be null.
    • LocalRepository

      public LocalRepository(URI basedir)
      Creates 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
    • LocalRepository

      @Deprecated public LocalRepository(File basedir)
      Deprecated.
      Creates a new local repository with the specified base directory and unknown type.
      Parameters:
      basedir - The base directory of the repository, may be null.
    • LocalRepository

      public LocalRepository(Path basePath)
      Creates 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
    • LocalRepository

      @Deprecated public LocalRepository(File basedir, String type)
      Deprecated.
      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.
    • LocalRepository

      public LocalRepository(Path basePath, String type)
      Creates 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