Interface LocalRepositorySupplierFactory


public interface LocalRepositorySupplierFactory
Provides a set of suppliers to be used to resolve maven repository folder.
Since:
1.0
  • Method Details

    • fixedFolderSupplier

      Supplier<File> fixedFolderSupplier(File folder)
      Parameters:
      folder - to use as repository
      Returns:
      a fixed supplier that will return the folder file as repository location.
    • environmentMavenRepositorySupplier

      Supplier<File> environmentMavenRepositorySupplier()
      This supplier will try to resolve the repository folder based on environment configuration.

      It will try to get the repository from the localRepository system property, if not set, then it will try to find the repo from $USER_HOME/.m2/repository folder.

      Returns:
      a supplier that resolves the local repository based on environment configuration.
    • composeSuppliers

      Supplier<File> composeSuppliers(Supplier<File>... suppliers)
      Compose several suppliers in order. Once a supplier returns a not null value, that supplier value will be return.
      Parameters:
      suppliers - set of suppliers to compose
      Returns:
      a new supplier which is a composition of #suppliers