Package org.apache.maven.settings
Class Settings
java.lang.Object
org.apache.maven.settings.BaseObject
org.apache.maven.settings.TrackableBase
org.apache.maven.settings.Settings
- All Implemented Interfaces:
Serializable
,Cloneable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.settings.BaseObject
BaseObject.ChildrenTracking
-
Field Summary
Fields inherited from class org.apache.maven.settings.TrackableBase
GLOBAL_LEVEL, PROJECT_LEVEL, USER_LEVEL
Fields inherited from class org.apache.maven.settings.BaseObject
childrenTracking, delegate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addActiveProfile
(String activeProfile) void
void
addPluginGroup
(String pluginGroup) void
addPluginRepository
(Repository pluginRepository) void
addProfile
(Profile profile) void
void
addRepository
(Repository repository) void
clone()
boolean
void
Reset theactiveProxy
field tonull
void
Reset theprofileMap
field tonull
getMirrorOf
(String repositoryId) Deprecated.int
hashCode()
boolean
boolean
boolean
void
removeActiveProfile
(String activeProfile) void
removeMirror
(Mirror mirror) void
removePluginGroup
(String pluginGroup) void
removePluginRepository
(Repository pluginRepository) void
removeProfile
(Profile profile) void
removeProxy
(Proxy proxy) void
removeRepository
(Repository repository) void
removeServer
(Server server) protected 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
setPluginRepositories
(List<Repository> pluginRepositories) void
setProfiles
(List<Profile> profiles) void
setProxies
(List<Proxy> proxies) void
setRepositories
(List<Repository> repositories) 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
Methods inherited from class org.apache.maven.settings.BaseObject
update
-
Constructor Details
-
Settings
public Settings() -
Settings
-
Settings
-
-
Method Details
-
clone
- Overrides:
clone
in classTrackableBase
-
getDelegate
- Overrides:
getDelegate
in classTrackableBase
-
equals
- Overrides:
equals
in classTrackableBase
-
hashCode
public int hashCode()- Overrides:
hashCode
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
-
removeProxy
-
getServers
-
setServers
-
addServer
-
removeServer
-
getMirrors
-
setMirrors
-
addMirror
-
removeMirror
-
getRepositories
-
setRepositories
-
addRepository
-
removeRepository
-
getPluginRepositories
-
setPluginRepositories
-
addPluginRepository
-
removePluginRepository
-
getProfiles
-
setProfiles
-
addProfile
-
removeProfile
-
getActiveProfiles
-
setActiveProfiles
-
addActiveProfile
-
removeActiveProfile
-
getPluginGroups
-
setPluginGroups
-
addPluginGroup
-
removePluginGroup
-
replace
- Overrides:
replace
in classTrackableBase
-
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:
-