class SettingsAdapter extends Settings
MavenExecutionRequest to a Settings object for use in the Maven core.
We want to make sure that what is ask for in the execution request overrides what is in the settings.
The CLI feeds into an execution request so if a particular value is present in the execution request
then we will take that over the value coming from the user settings.| Modifier and Type | Field and Description |
|---|---|
private MavenExecutionRequest |
request |
private RuntimeInfo |
runtimeInfo |
GLOBAL_LEVEL, USER_LEVEL| Constructor and Description |
|---|
SettingsAdapter(MavenExecutionRequest request) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getActiveProfiles()
Method getActiveProfiles.
|
java.lang.String |
getLocalRepository()
Get the local repository.
Default value is: ${user.home}/.m2/repository |
java.util.List<Mirror> |
getMirrors()
Method getMirrors.
|
java.util.List<java.lang.String> |
getPluginGroups()
Method getPluginGroups.
|
java.util.List<Profile> |
getProfiles()
Method getProfiles.
|
java.util.List<Proxy> |
getProxies()
Method getProxies.
|
java.util.List<Server> |
getServers()
Method getServers.
|
boolean |
isInteractiveMode()
Get whether Maven should attempt to interact with the user
for input.
|
boolean |
isOffline()
Get indicate whether maven should operate in offline mode
full-time.
|
addActiveProfile, addMirror, addPluginGroup, addProfile, addProxy, addServer, clone, flushActiveProxy, flushProfileMap, getActiveProxy, getInteractiveMode, getMirrorOf, getModelEncoding, getProfilesAsMap, getServer, isUsePluginRegistry, removeActiveProfile, removeMirror, removePluginGroup, removeProfile, removeProxy, removeServer, setActiveProfiles, setInteractiveMode, setLocalRepository, setMirrors, setModelEncoding, setOffline, setPluginGroups, setProfiles, setProxies, setServers, setUsePluginRegistrygetSourceLevel, setSourceLevelprivate MavenExecutionRequest request
private RuntimeInfo runtimeInfo
SettingsAdapter(MavenExecutionRequest request)
public java.lang.String getLocalRepository()
SettingsgetLocalRepository in class Settingspublic boolean isInteractiveMode()
SettingsisInteractiveMode in class Settingspublic boolean isOffline()
Settingspublic java.util.List<Proxy> getProxies()
SettingsgetProxies in class Settingspublic java.util.List<Server> getServers()
SettingsgetServers in class Settingspublic java.util.List<Mirror> getMirrors()
SettingsgetMirrors in class Settingspublic java.util.List<Profile> getProfiles()
SettingsgetProfiles in class Settingspublic java.util.List<java.lang.String> getActiveProfiles()
SettingsgetActiveProfiles in class Settingspublic java.util.List<java.lang.String> getPluginGroups()
SettingsgetPluginGroups in class Settings