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
FieldsModifier and TypeFieldDescriptionprivate String
Specifies whether the user should be prompted to update plugins.private String
Whether to resolve plugin versions using LATEST metadata.private String
Field modelEncoding.Field plugins.private Map
private RuntimeInfo
private String
Specifies how often to check for plugin updates.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
-
Field Details
-
updateInterval
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. -
autoUpdate
Specifies whether the user should be prompted to update plugins. -
checkLatest
Whether to resolve plugin versions using LATEST metadata. -
plugins
Field plugins. -
modelEncoding
Field modelEncoding. -
pluginsByKey
-
runtimeInfo
-
-
Constructor Details
-
PluginRegistry
public PluginRegistry()
-
-
Method Details
-
addPlugin
Method addPlugin.- Parameters:
plugin
-
-
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
-
-
setAutoUpdate
Set specifies whether the user should be prompted to update plugins.- Parameters:
autoUpdate
-
-
setCheckLatest
Set whether to resolve plugin versions using LATEST metadata.- Parameters:
checkLatest
-
-
setModelEncoding
Set the modelEncoding field.- Parameters:
modelEncoding
-
-
setPlugins
Set specified plugin update policy information.- Parameters:
plugins
-
-
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
-
-
getPluginsByKey
-
flushPluginsByKey
public void flushPluginsByKey() -
setRuntimeInfo
-
getRuntimeInfo
-