public interface SettingsSupplierFactory
Modifier and Type | Field and Description |
---|---|
static String |
GLOBAL_SETTINGS_SYSTEM_PROPERTY |
static String |
USER_SETTINGS_SYSTEM_PROPERTY |
Modifier and Type | Method and Description |
---|---|
Optional<File> |
environmentGlobalSettingsSupplier()
This supplier will try to resolve the maven global settings file based on environment variables.
|
Optional<File> |
environmentUserSettingsSupplier()
This supplier will try to resolve the maven user settings file based on the environmentMavenRepositorySupplier.
|
static final String USER_SETTINGS_SYSTEM_PROPERTY
static final String GLOBAL_SETTINGS_SYSTEM_PROPERTY
Optional<File> environmentGlobalSettingsSupplier()
It will try to get the global settings file from MAVEN_CMD_LINE_ARGS environment variable by parsing command line arguments,
if not set, then it will try with a environment or system property GLOBAL_SETTINGS_SYSTEM_PROPERTY
, if not set, finally it will
try to find it from $M2_HOME/conf/settings.xml or $MAVEN_HOME/conf/settings.xml (both environment variables or
using system property $maven.home/conf/settings.xml).
Optional<File> environmentUserSettingsSupplier()
It will try to get the global settings file from MAVEN_CMD_LINE_ARGS environment variable by parsing command line arguments,
if not set, then it will try with a environment or system property USER_SETTINGS_SYSTEM_PROPERTY
, if not set, finally it will
try to get the user settings file from the $USER_HOME/.m2/settings.xml.
Copyright © 2018. All rights reserved.