|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.settings.TrackableBase org.apache.maven.settings.Settings
public class Settings
Root element of the user configuration file.
Field Summary |
---|
Fields inherited from class org.apache.maven.settings.TrackableBase |
---|
GLOBAL_LEVEL, USER_LEVEL |
Constructor Summary | |
---|---|
Settings()
|
Method Summary | |
---|---|
void |
addActiveProfile(String string)
Method addActiveProfile. |
void |
addMirror(Mirror mirror)
Method addMirror. |
void |
addPluginGroup(String string)
Method addPluginGroup. |
void |
addProfile(Profile profile)
Method addProfile. |
void |
addProxy(Proxy proxy)
Method addProxy. |
void |
addServer(Server server)
Method addServer. |
void |
flushActiveProxy()
Reset the activeProxy field to null |
void |
flushProfileMap()
Reset the profileMap field to null |
List |
getActiveProfiles()
Method getActiveProfiles. |
Proxy |
getActiveProxy()
|
Boolean |
getInteractiveMode()
|
String |
getLocalRepository()
Get The local repository. |
Mirror |
getMirrorOf(String repositoryId)
|
List |
getMirrors()
Method getMirrors. |
String |
getModelEncoding()
|
List |
getPluginGroups()
Method getPluginGroups. |
List |
getProfiles()
Method getProfiles. |
Map |
getProfilesAsMap()
|
List |
getProxies()
Method getProxies. |
RuntimeInfo |
getRuntimeInfo()
|
Server |
getServer(String serverId)
|
List |
getServers()
Method getServers. |
boolean |
isInteractiveMode()
Get Whether Maven should attempt to interact with the user for input. |
boolean |
isOffline()
Get Indicate whether maven should operate in offline mode full-time. |
boolean |
isUsePluginRegistry()
Get Whether Maven should use the plugin-registry.xml file to manage plugin versions. |
void |
removeActiveProfile(String string)
Method removeActiveProfile. |
void |
removeMirror(Mirror mirror)
Method removeMirror. |
void |
removePluginGroup(String string)
Method removePluginGroup. |
void |
removeProfile(Profile profile)
Method removeProfile. |
void |
removeProxy(Proxy proxy)
Method removeProxy. |
void |
removeServer(Server server)
Method removeServer. |
void |
setActiveProfiles(List activeProfiles)
Set List of manually-activated build profiles, specified in the order in which they should be applied. |
void |
setInteractiveMode(boolean interactiveMode)
Set Whether Maven should attempt to interact with the user for input. |
void |
setLocalRepository(String localRepository)
Set The local repository. |
void |
setMirrors(List mirrors)
Set Configuration of download mirrors for repositories. |
void |
setModelEncoding(String modelEncoding)
Set an encoding used for reading/writing the model. |
void |
setOffline(boolean offline)
Set Indicate whether maven should operate in offline mode full-time. |
void |
setPluginGroups(List pluginGroups)
Set List of groupIds to search for a plugin when that plugin groupId is not explicitly provided. |
void |
setProfiles(List profiles)
Set Configuration of build profiles for adjusting the build according to environmental parameters. |
void |
setProxies(List proxies)
Set Configuration for different proxy profiles. |
void |
setRuntimeInfo(RuntimeInfo runtimeInfo)
|
void |
setServers(List servers)
Set Configuration of server-specific settings, mainly authentication method. |
void |
setUsePluginRegistry(boolean usePluginRegistry)
Set Whether Maven should use the plugin-registry.xml file to manage plugin versions. |
Methods inherited from class org.apache.maven.settings.TrackableBase |
---|
getSourceLevel, setSourceLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Settings()
Method Detail |
---|
public void addActiveProfile(String string)
string
- public void addMirror(Mirror mirror)
mirror
- public void addPluginGroup(String string)
string
- public void addProfile(Profile profile)
profile
- public void addProxy(Proxy proxy)
proxy
- public void addServer(Server server)
server
- public List getActiveProfiles()
public String getLocalRepository()
public List getMirrors()
public List getPluginGroups()
public List getProfiles()
public List getProxies()
public List getServers()
public boolean isInteractiveMode()
public boolean isOffline()
public boolean isUsePluginRegistry()
public void removeActiveProfile(String string)
string
- public void removeMirror(Mirror mirror)
mirror
- public void removePluginGroup(String string)
string
- public void removeProfile(Profile profile)
profile
- public void removeProxy(Proxy proxy)
proxy
- public void removeServer(Server server)
server
- public void setActiveProfiles(List activeProfiles)
activeProfiles
- public void setInteractiveMode(boolean interactiveMode)
interactiveMode
- public void setLocalRepository(String localRepository)
localRepository
- public void setMirrors(List mirrors)
mirrors
- public void setOffline(boolean offline)
offline
- public void setPluginGroups(List pluginGroups)
pluginGroups
- public void setProfiles(List profiles)
profiles
- public void setProxies(List proxies)
proxies
- public void setServers(List servers)
servers
- public void setUsePluginRegistry(boolean usePluginRegistry)
usePluginRegistry
- public Boolean getInteractiveMode()
public void flushActiveProxy()
activeProxy
field to null
public Proxy getActiveProxy()
public Server getServer(String serverId)
public Mirror getMirrorOf(String repositoryId)
public void flushProfileMap()
profileMap
field to null
public Map getProfilesAsMap()
Profile#getId()
as keyIdentifiableBase.getId()
public void setRuntimeInfo(RuntimeInfo runtimeInfo)
public RuntimeInfo getRuntimeInfo()
public void setModelEncoding(String modelEncoding)
setModelEncoding
in class TrackableBase
modelEncoding
- the encoding used when reading/writing the model.public String getModelEncoding()
getModelEncoding
in class TrackableBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |