Package org.apache.maven.plugin.registry
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 org.apache.maven.plugin.registry.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method addPlugin.void
Get 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.void
removePlugin
(Plugin plugin) Method removePlugin.void
setAutoUpdate
(String autoUpdate) Set specifies whether the user should be prompted to update plugins.void
setCheckLatest
(String checkLatest) Set whether to resolve plugin versions using LATEST metadata.void
setModelEncoding
(String modelEncoding) Set the modelEncoding field.void
setPlugins
(List<Plugin> plugins) Set specified plugin update policy information.void
setRuntimeInfo
(RuntimeInfo runtimeInfo) void
setUpdateInterval
(String updateInterval) Set specifies how often to check for plugin updates.Methods inherited from class org.apache.maven.plugin.registry.TrackableBase
getSourceLevel, setSourceLevel
-
Constructor Details
-
PluginRegistry
public PluginRegistry()
-
-
Method Details
-
addPlugin
Method addPlugin.- Parameters:
plugin
- a plugin object.
-
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
Get the modelEncoding field.- Returns:
- String
-
getPlugins
Method getPlugins.- Returns:
- List
-
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
Method removePlugin.- Parameters:
plugin
- a plugin object.
-
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
Set specified plugin update policy information.- Parameters:
plugins
- a plugins object.
-
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
-