Package org.apache.maven.execution
Class SettingsAdapter
java.lang.Object
org.apache.maven.settings.TrackableBase
org.apache.maven.settings.Settings
org.apache.maven.execution.SettingsAdapter
- All Implemented Interfaces:
Serializable,Cloneable
Adapt a
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.-
Field Summary
FieldsFields inherited from class org.apache.maven.settings.TrackableBase
GLOBAL_LEVEL, USER_LEVEL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod getActiveProfiles.Get the local repository.
Default value is:${user.home}/.m2/repositoryMethod getMirrors.Method getPluginGroups.Method getProfiles.Method getProxies.Method getServers.booleanGet whether Maven should attempt to interact with the user for input.booleanGet indicate whether maven should operate in offline mode full-time.Methods inherited from class org.apache.maven.settings.Settings
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, setUsePluginRegistryMethods inherited from class org.apache.maven.settings.TrackableBase
getSourceLevel, setSourceLevel
-
Field Details
-
request
-
runtimeInfo
-
-
Constructor Details
-
SettingsAdapter
SettingsAdapter(MavenExecutionRequest request)
-
-
Method Details
-
getLocalRepository
Description copied from class:SettingsGet the local repository.
Default value is:${user.home}/.m2/repository- Overrides:
getLocalRepositoryin classSettings- Returns:
- String
-
isInteractiveMode
public boolean isInteractiveMode()Description copied from class:SettingsGet whether Maven should attempt to interact with the user for input.- Overrides:
isInteractiveModein classSettings- Returns:
- boolean
-
isOffline
public boolean isOffline()Description copied from class:SettingsGet indicate whether maven should operate in offline mode full-time. -
getProxies
Description copied from class:SettingsMethod getProxies.- Overrides:
getProxiesin classSettings- Returns:
- List
-
getServers
Description copied from class:SettingsMethod getServers.- Overrides:
getServersin classSettings- Returns:
- List
-
getMirrors
Description copied from class:SettingsMethod getMirrors.- Overrides:
getMirrorsin classSettings- Returns:
- List
-
getProfiles
Description copied from class:SettingsMethod getProfiles.- Overrides:
getProfilesin classSettings- Returns:
- List
-
getActiveProfiles
Description copied from class:SettingsMethod getActiveProfiles.- Overrides:
getActiveProfilesin classSettings- Returns:
- List
-
getPluginGroups
Description copied from class:SettingsMethod getPluginGroups.- Overrides:
getPluginGroupsin classSettings- Returns:
- List
-