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/repository
Method getMirrors.Method getPluginGroups.Method getProfiles.Method getProxies.Method getServers.boolean
Get whether Maven should attempt to interact with the user for input.boolean
Get 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, setUsePluginRegistry
Methods 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:Settings
Get the local repository.
Default value is:${user.home}/.m2/repository
- Overrides:
getLocalRepository
in classSettings
- Returns:
- String
-
isInteractiveMode
public boolean isInteractiveMode()Description copied from class:Settings
Get whether Maven should attempt to interact with the user for input.- Overrides:
isInteractiveMode
in classSettings
- Returns:
- boolean
-
isOffline
public boolean isOffline()Description copied from class:Settings
Get indicate whether maven should operate in offline mode full-time. -
getProxies
Description copied from class:Settings
Method getProxies.- Overrides:
getProxies
in classSettings
- Returns:
- List
-
getServers
Description copied from class:Settings
Method getServers.- Overrides:
getServers
in classSettings
- Returns:
- List
-
getMirrors
Description copied from class:Settings
Method getMirrors.- Overrides:
getMirrors
in classSettings
- Returns:
- List
-
getProfiles
Description copied from class:Settings
Method getProfiles.- Overrides:
getProfiles
in classSettings
- Returns:
- List
-
getActiveProfiles
Description copied from class:Settings
Method getActiveProfiles.- Overrides:
getActiveProfiles
in classSettings
- Returns:
- List
-
getPluginGroups
Description copied from class:Settings
Method getPluginGroups.- Overrides:
getPluginGroups
in classSettings
- Returns:
- List
-