Class PluginRegistry
java.lang.Object
org.apache.maven.plugin.registry.TrackableBase
org.apache.maven.plugin.registry.PluginRegistry
- All Implemented Interfaces:
Serializable
Root element of the plugin registry file.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
Fields inherited from class TrackableBase
GLOBAL_LEVEL, USER_LEVEL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod addPlugin.voidGet specifies whether the user should be prompted to update plugins.Get whether to resolve plugin versions using LATEST metadata.Get the modelEncoding field.Method getPlugins.Get specifies how often to check for plugin updates.voidremovePlugin(Plugin plugin) Method removePlugin.voidsetAutoUpdate(String autoUpdate) Set specifies whether the user should be prompted to update plugins.voidsetCheckLatest(String checkLatest) Set whether to resolve plugin versions using LATEST metadata.voidsetModelEncoding(String modelEncoding) Set the modelEncoding field.voidsetPlugins(List<Plugin> plugins) Set specified plugin update policy information.voidsetRuntimeInfo(RuntimeInfo runtimeInfo) voidsetUpdateInterval(String updateInterval) Set specifies how often to check for plugin updates.Methods inherited from class TrackableBase
getSourceLevel, setSourceLevel
-
Constructor Details
-
PluginRegistry
public PluginRegistry()
-
-
Method Details
-
addPlugin
-
getAutoUpdate
Get specifies whether the user should be prompted to update plugins.- Returns:
- String
-
getCheckLatest
Get whether to resolve plugin versions using LATEST metadata.- Returns:
- String
-
getModelEncoding
-
getPlugins
-
getUpdateInterval
Get specifies how often to check for plugin updates. Valid values are: never, always, interval:XXX. For the interval specification, XXX denotes a terse interval specification, such as 4h. Where h=hours, m=minutes, d=days, w=weeks. The interval period should be specified in descending order of granularity, like this: '[n]w [n]d [n]h [n]m'. Any omitted level of granularity will be assumed to be a zero value.- Returns:
- String
-
removePlugin
-
setAutoUpdate
Set specifies whether the user should be prompted to update plugins.- Parameters:
autoUpdate- a autoUpdate object.
-
setCheckLatest
Set whether to resolve plugin versions using LATEST metadata.- Parameters:
checkLatest- a checkLatest object.
-
setModelEncoding
Set the modelEncoding field.- Parameters:
modelEncoding- a modelEncoding object.
-
setPlugins
-
setUpdateInterval
Set specifies how often to check for plugin updates. Valid values are: never, always, interval:XXX. For the interval specification, XXX denotes a terse interval specification, such as 4h. Where h=hours, m=minutes, d=days, w=weeks. The interval period should be specified in descending order of granularity, like this: '[n]w [n]d [n]h [n]m'. Any omitted level of granularity will be assumed to be a zero value.- Parameters:
updateInterval- a updateInterval object.
-
getPluginsByKey
-
flushPluginsByKey
public void flushPluginsByKey() -
setRuntimeInfo
-
getRuntimeInfo
-