Package org.mule.maven.client.api
Interface LocalRepositorySupplierFactory
public interface LocalRepositorySupplierFactory
Provides a set of suppliers to be used to resolve maven repository folder.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptioncomposeSuppliers(Supplier<File>... suppliers) Compose several suppliers in order.This supplier will try to resolve the repository folder based on environment configuration.fixedFolderSupplier(File folder)
-
Method Details
-
fixedFolderSupplier
- Parameters:
folder- to use as repository- Returns:
- a fixed supplier that will return the
folderfile as repository location.
-
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
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
-