public class Settings extends TrackableBase implements Serializable, Cloneable
GLOBAL_LEVEL, USER_LEVEL
Constructor and Description |
---|
Settings() |
Modifier and Type | Method and Description |
---|---|
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.
|
Settings |
clone()
Method clone.
|
void |
flushActiveProxy()
Reset the
activeProxy field to null |
void |
flushProfileMap()
Reset the
profileMap field to null |
List<String> |
getActiveProfiles()
Method getActiveProfiles.
|
Proxy |
getActiveProxy() |
Boolean |
getInteractiveMode() |
String |
getLocalRepository()
Get the local repository.
|
Mirror |
getMirrorOf(String repositoryId)
Deprecated.
|
List<Mirror> |
getMirrors()
Method getMirrors.
|
String |
getModelEncoding()
Get the modelEncoding field.
|
List<String> |
getPluginGroups()
Method getPluginGroups.
|
List<Profile> |
getProfiles()
Method getProfiles.
|
Map<String,Profile> |
getProfilesAsMap() |
List<Proxy> |
getProxies()
Method getProxies.
|
Server |
getServer(String serverId) |
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(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<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(String localRepository)
Set the local repository.
|
void |
setMirrors(List<Mirror> mirrors)
Set configuration of download mirrors for repositories.
|
void |
setModelEncoding(String modelEncoding)
Set the modelEncoding field.
|
void |
setOffline(boolean offline)
Set indicate whether maven should operate in offline mode
full-time.
|
void |
setPluginGroups(List<String> pluginGroups)
Set list of groupIds to search for a plugin when that plugin
groupId is not explicitly provided.
|
void |
setProfiles(List<Profile> profiles)
Set configuration of build profiles for adjusting the build
according to environmental parameters.
|
void |
setProxies(List<Proxy> proxies)
Set configuration for different proxy profiles.
|
void |
setServers(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.
|
getSourceLevel, setSourceLevel
public Settings()
public void addActiveProfile(String string)
string
- public void addPluginGroup(String string)
string
- public void addProfile(Profile profile)
profile
- public Settings clone()
clone
in class TrackableBase
public List<String> getActiveProfiles()
public String getLocalRepository()
public List<Mirror> getMirrors()
public String getModelEncoding()
public List<String> getPluginGroups()
public List<Profile> getProfiles()
public List<Proxy> getProxies()
public List<Server> 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<String> activeProfiles)
activeProfiles
- public void setInteractiveMode(boolean interactiveMode)
interactiveMode
- public void setLocalRepository(String localRepository)
localRepository
- public void setMirrors(List<Mirror> mirrors)
mirrors
- public void setModelEncoding(String modelEncoding)
modelEncoding
- public void setOffline(boolean offline)
offline
- public void setPluginGroups(List<String> pluginGroups)
pluginGroups
- public void setProfiles(List<Profile> profiles)
profiles
- public void setProxies(List<Proxy> proxies)
proxies
- public void setServers(List<Server> servers)
servers
- public void setUsePluginRegistry(boolean usePluginRegistry)
usePluginRegistry
- public Boolean getInteractiveMode()
public void flushActiveProxy()
activeProxy
field to null
public Proxy getActiveProxy()
@Deprecated public Mirror getMirrorOf(String repositoryId)
public void flushProfileMap()
profileMap
field to null
public Map<String,Profile> getProfilesAsMap()
Profile#getId()
as keyIdentifiableBase.getId()
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.