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, setUsePluginRegistry
getSourceLevel, setSourceLevel
private MavenExecutionRequest request
private RuntimeInfo runtimeInfo
SettingsAdapter(MavenExecutionRequest request)
public java.lang.String getLocalRepository()
Settings
getLocalRepository
in class Settings
public boolean isInteractiveMode()
Settings
isInteractiveMode
in class Settings
public boolean isOffline()
Settings
public java.util.List<Proxy> getProxies()
Settings
getProxies
in class Settings
public java.util.List<Server> getServers()
Settings
getServers
in class Settings
public java.util.List<Mirror> getMirrors()
Settings
getMirrors
in class Settings
public java.util.List<Profile> getProfiles()
Settings
getProfiles
in class Settings
public java.util.List<java.lang.String> getActiveProfiles()
Settings
getActiveProfiles
in class Settings
public java.util.List<java.lang.String> getPluginGroups()
Settings
getPluginGroups
in class Settings