java.io.Serializablepublic class Settings extends TrackableBase implements java.io.Serializable
GLOBAL_LEVEL, USER_LEVEL| Constructor | Description |
|---|---|
Settings() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addActiveProfile(java.lang.String string) |
Method addActiveProfile.
|
void |
addMirror(Mirror mirror) |
Method addMirror.
|
void |
addPluginGroup(java.lang.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 |
java.util.List<java.lang.String> |
getActiveProfiles() |
Method getActiveProfiles.
|
Proxy |
getActiveProxy() |
|
java.lang.Boolean |
getInteractiveMode() |
|
java.lang.String |
getLocalRepository() |
Get the local repository.
|
Mirror |
getMirrorOf(java.lang.String repositoryId) |
Deprecated.
|
java.util.List<Mirror> |
getMirrors() |
Method getMirrors.
|
java.lang.String |
getModelEncoding() |
Get the modelEncoding field.
|
java.util.List<java.lang.String> |
getPluginGroups() |
Method getPluginGroups.
|
java.util.List<Profile> |
getProfiles() |
Method getProfiles.
|
java.util.Map |
getProfilesAsMap() |
|
java.util.List<Proxy> |
getProxies() |
Method getProxies.
|
RuntimeInfo |
getRuntimeInfo() |
|
Server |
getServer(java.lang.String serverId) |
|
java.util.List<Server> |
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(java.lang.String string) |
Method removeActiveProfile.
|
void |
removeMirror(Mirror mirror) |
Method removeMirror.
|
void |
removePluginGroup(java.lang.String string) |
Method removePluginGroup.
|
void |
removeProfile(Profile profile) |
Method removeProfile.
|
void |
removeProxy(Proxy proxy) |
Method removeProxy.
|
void |
removeServer(Server server) |
Method removeServer.
|
void |
setActiveProfiles(java.util.List<java.lang.String> 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(java.lang.String localRepository) |
Set the local repository.
|
void |
setMirrors(java.util.List<Mirror> mirrors) |
Set configuration of download mirrors for repositories.
|
void |
setModelEncoding(java.lang.String modelEncoding) |
Set the modelEncoding field.
|
void |
setOffline(boolean offline) |
Set indicate whether maven should operate in offline mode
full-time.
|
void |
setPluginGroups(java.util.List<java.lang.String> pluginGroups) |
Set list of groupIds to search for a plugin when that plugin
groupId is not explicitly provided.
|
void |
setProfiles(java.util.List<Profile> profiles) |
Set configuration of build profiles for adjusting the build
according to environmental parameters.
|
void |
setProxies(java.util.List<Proxy> proxies) |
Set configuration for different proxy profiles.
|
void |
setRuntimeInfo(RuntimeInfo runtimeInfo) |
|
void |
setServers(java.util.List<Server> 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSourceLevel, setSourceLevelpublic void addActiveProfile(java.lang.String string)
string - public void addMirror(Mirror mirror)
mirror - public void addPluginGroup(java.lang.String string)
string - public void addProfile(Profile profile)
profile - public void addProxy(Proxy proxy)
proxy - public void addServer(Server server)
server - public java.util.List<java.lang.String> getActiveProfiles()
public java.lang.String getLocalRepository()
public java.util.List<Mirror> getMirrors()
public java.lang.String getModelEncoding()
public java.util.List<java.lang.String> getPluginGroups()
public java.util.List<Profile> getProfiles()
public java.util.List<Proxy> getProxies()
public java.util.List<Server> getServers()
public boolean isInteractiveMode()
public boolean isOffline()
public boolean isUsePluginRegistry()
public void removeActiveProfile(java.lang.String string)
string - public void removeMirror(Mirror mirror)
mirror - public void removePluginGroup(java.lang.String string)
string - public void removeProfile(Profile profile)
profile - public void removeProxy(Proxy proxy)
proxy - public void removeServer(Server server)
server - public void setActiveProfiles(java.util.List<java.lang.String> activeProfiles)
activeProfiles - public void setInteractiveMode(boolean interactiveMode)
interactiveMode - public void setLocalRepository(java.lang.String localRepository)
localRepository - public void setMirrors(java.util.List<Mirror> mirrors)
mirrors - public void setModelEncoding(java.lang.String modelEncoding)
modelEncoding - public void setOffline(boolean offline)
offline - public void setPluginGroups(java.util.List<java.lang.String> pluginGroups)
pluginGroups - public void setProfiles(java.util.List<Profile> profiles)
profiles - public void setProxies(java.util.List<Proxy> proxies)
proxies - public void setServers(java.util.List<Server> servers)
servers - public void setUsePluginRegistry(boolean usePluginRegistry)
usePluginRegistry - public java.lang.Boolean getInteractiveMode()
public void flushActiveProxy()
activeProxy field to nullpublic Proxy getActiveProxy()
public Server getServer(java.lang.String serverId)
@Deprecated public Mirror getMirrorOf(java.lang.String repositoryId)
public void flushProfileMap()
profileMap field to nullpublic java.util.Map getProfilesAsMap()
Profile#getId() as keyIdentifiableBase.getId()public void setRuntimeInfo(RuntimeInfo runtimeInfo)
public RuntimeInfo getRuntimeInfo()