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
Root element of the user configuration file.
- Version:
- $Revision$ $Date$
- See Also:
- 
Field SummaryFields inherited from class org.apache.maven.settings.TrackableBaseGLOBAL_LEVEL, USER_LEVEL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddActiveProfile(String string) Method addActiveProfile.voidMethod addMirror.voidaddPluginGroup(String string) Method addPluginGroup.voidaddProfile(Profile profile) Method addProfile.voidMethod addProxy.voidMethod addServer.clone()Method clone.voidReset theactiveProxyfield tonullvoidReset theprofileMapfield tonullMethod getActiveProfiles.Get the local repository.
 Default value is:${user.home}/.m2/repositorygetMirrorOf(String repositoryId) Deprecated.Method getMirrors.Get the modelEncoding field.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.booleanGet whether Maven should use the plugin-registry.xml file to manage plugin versions.voidremoveActiveProfile(String string) Method removeActiveProfile.voidremoveMirror(Mirror mirror) Method removeMirror.voidremovePluginGroup(String string) Method removePluginGroup.voidremoveProfile(Profile profile) Method removeProfile.voidremoveProxy(Proxy proxy) Method removeProxy.voidremoveServer(Server server) Method removeServer.voidsetActiveProfiles(List<String> activeProfiles) Set list of manually-activated build profiles, specified in the order in which they should be applied.voidsetInteractiveMode(boolean interactiveMode) Set whether Maven should attempt to interact with the user for input.voidsetLocalRepository(String localRepository) Set the local repository.
 Default value is:${user.home}/.m2/repositoryvoidsetMirrors(List<Mirror> mirrors) Set configuration of download mirrors for repositories.voidsetModelEncoding(String modelEncoding) Set the modelEncoding field.voidsetOffline(boolean offline) Set indicate whether maven should operate in offline mode full-time.voidsetPluginGroups(List<String> pluginGroups) Set list of groupIds to search for a plugin when that plugin groupId is not explicitly provided.voidsetProfiles(List<Profile> profiles) Set configuration of build profiles for adjusting the build according to environmental parameters.voidsetProxies(List<Proxy> proxies) Set configuration for different proxy profiles.voidsetServers(List<Server> servers) Set configuration of server-specific settings, mainly authentication method.voidsetUsePluginRegistry(boolean usePluginRegistry) Set whether Maven should use the plugin-registry.xml file to manage plugin versions.Methods inherited from class org.apache.maven.settings.TrackableBasegetSourceLevel, setSourceLevel
- 
Constructor Details- 
Settingspublic Settings()
 
- 
- 
Method Details- 
addActiveProfileMethod addActiveProfile.- Parameters:
- string- a string object.
 
- 
addMirrorMethod addMirror.- Parameters:
- mirror- a mirror object.
 
- 
addPluginGroupMethod addPluginGroup.- Parameters:
- string- a string object.
 
- 
addProfileMethod addProfile.- Parameters:
- profile- a profile object.
 
- 
addProxyMethod addProxy.- Parameters:
- proxy- a proxy object.
 
- 
addServerMethod addServer.- Parameters:
- server- a server object.
 
- 
cloneMethod clone.- Overrides:
- clonein class- TrackableBase
- Returns:
- Settings
 
- 
getActiveProfilesMethod getActiveProfiles.- Returns:
- List
 
- 
getLocalRepositoryGet the local repository.
 Default value is:${user.home}/.m2/repository- Returns:
- String
 
- 
getMirrorsMethod getMirrors.- Returns:
- List
 
- 
getModelEncodingGet the modelEncoding field.- Returns:
- String
 
- 
getPluginGroupsMethod getPluginGroups.- Returns:
- List
 
- 
getProfilesMethod getProfiles.- Returns:
- List
 
- 
getProxiesMethod getProxies.- Returns:
- List
 
- 
getServersMethod getServers.- Returns:
- List
 
- 
isInteractiveModepublic boolean isInteractiveMode()Get whether Maven should attempt to interact with the user for input.- Returns:
- boolean
 
- 
isOfflinepublic boolean isOffline()Get indicate whether maven should operate in offline mode full-time.- Returns:
- boolean
 
- 
isUsePluginRegistrypublic boolean isUsePluginRegistry()Get whether Maven should use the plugin-registry.xml file to manage plugin versions.- Returns:
- boolean
 
- 
removeActiveProfileMethod removeActiveProfile.- Parameters:
- string- a string object.
 
- 
removeMirrorMethod removeMirror.- Parameters:
- mirror- a mirror object.
 
- 
removePluginGroupMethod removePluginGroup.- Parameters:
- string- a string object.
 
- 
removeProfileMethod removeProfile.- Parameters:
- profile- a profile object.
 
- 
removeProxyMethod removeProxy.- Parameters:
- proxy- a proxy object.
 
- 
removeServerMethod removeServer.- Parameters:
- server- a server object.
 
- 
setActiveProfilesSet list of manually-activated build profiles, specified in the order in which they should be applied.- Parameters:
- activeProfiles- a activeProfiles object.
 
- 
setInteractiveModepublic void setInteractiveMode(boolean interactiveMode) Set whether Maven should attempt to interact with the user for input.- Parameters:
- interactiveMode- a interactiveMode object.
 
- 
setLocalRepositorySet the local repository.
 Default value is:${user.home}/.m2/repository- Parameters:
- localRepository- a localRepository object.
 
- 
setMirrorsSet configuration of download mirrors for repositories.- Parameters:
- mirrors- a mirrors object.
 
- 
setModelEncodingSet the modelEncoding field.- Parameters:
- modelEncoding- a modelEncoding object.
 
- 
setOfflinepublic void setOffline(boolean offline) Set indicate whether maven should operate in offline mode full-time.- Parameters:
- offline- a offline object.
 
- 
setPluginGroupsSet list of groupIds to search for a plugin when that plugin groupId is not explicitly provided.- Parameters:
- pluginGroups- a pluginGroups object.
 
- 
setProfilesSet configuration of build profiles for adjusting the build according to environmental parameters.- Parameters:
- profiles- a profiles object.
 
- 
setProxiesSet configuration for different proxy profiles. Multiple proxy profiles might come in handy for anyone working from a notebook or other mobile platform, to enable easy switching of entire proxy configurations by simply specifying the profile id, again either from the command line or from the defaults section below.- Parameters:
- proxies- a proxies object.
 
- 
setServersSet configuration of server-specific settings, mainly authentication method. This allows configuration of authentication on a per-server basis.- Parameters:
- servers- a servers object.
 
- 
setUsePluginRegistrypublic void setUsePluginRegistry(boolean usePluginRegistry) Set whether Maven should use the plugin-registry.xml file to manage plugin versions.- Parameters:
- usePluginRegistry- a usePluginRegistry object.
 
- 
getInteractiveMode
- 
flushActiveProxypublic void flushActiveProxy()Reset theactiveProxyfield tonull
- 
getActiveProxy- Returns:
- the first active proxy
 
- 
getServer
- 
getMirrorOfDeprecated.
- 
flushProfileMappublic void flushProfileMap()Reset theprofileMapfield tonull
- 
getProfilesAsMap- Returns:
- a Map of profiles field with Profile#getId()as key
- See Also:
 
 
-