Package org.apache.maven.settings
Class Settings
java.lang.Object
org.apache.maven.settings.TrackableBase
org.apache.maven.settings.Settings
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class org.apache.maven.settings.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addActiveProfile
(String activeProfile) void
void
addPluginGroup
(String pluginGroup) void
addProfile
(Profile profile) void
void
clone()
void
Reset theactiveProxy
field tonull
void
Reset theprofileMap
field tonull
getMirrorOf
(String repositoryId) Deprecated.boolean
boolean
boolean
void
setActiveProfiles
(List<String> activeProfiles) void
setInteractiveMode
(boolean interactiveMode) void
setLocalRepository
(String localRepository) void
setMirrors
(List<Mirror> mirrors) void
setOffline
(boolean offline) void
setPluginGroups
(List<String> pluginGroups) void
setProfiles
(List<Profile> profiles) void
setProxies
(List<Proxy> proxies) void
setServers
(List<Server> servers) settingsToApiV3
(List<Settings> list) settingsToApiV4
(List<Settings> list) void
setUsePluginRegistry
(boolean usePluginRegistry) Methods inherited from class org.apache.maven.settings.TrackableBase
getSourceLevel, setSourceLevel, trackableBaseToApiV3, trackableBaseToApiV4
-
Constructor Details
-
Settings
public Settings() -
Settings
-
-
Method Details
-
clone
- Overrides:
clone
in classTrackableBase
-
getDelegate
- Overrides:
getDelegate
in classTrackableBase
-
getModelEncoding
-
getLocalRepository
-
setLocalRepository
-
isInteractiveMode
public boolean isInteractiveMode() -
setInteractiveMode
public void setInteractiveMode(boolean interactiveMode) -
isUsePluginRegistry
public boolean isUsePluginRegistry() -
setUsePluginRegistry
public void setUsePluginRegistry(boolean usePluginRegistry) -
isOffline
public boolean isOffline() -
setOffline
public void setOffline(boolean offline) -
getProxies
-
setProxies
-
addProxy
-
getServers
-
setServers
-
addServer
-
getMirrors
-
setMirrors
-
addMirror
-
getProfiles
-
setProfiles
-
addProfile
-
getActiveProfiles
-
setActiveProfiles
-
addActiveProfile
-
getPluginGroups
-
setPluginGroups
-
addPluginGroup
-
settingsToApiV4
-
settingsToApiV3
-
getInteractiveMode
-
flushActiveProxy
public void flushActiveProxy()Reset theactiveProxy
field tonull
-
getActiveProxy
- Returns:
- the first active proxy
-
getServer
-
getMirrorOf
Deprecated. -
flushProfileMap
public void flushProfileMap()Reset theprofileMap
field tonull
-
getProfilesAsMap
- Returns:
- a Map of profiles field with
Profile#getId()
as key - See Also:
-