Class ConfigurationContainer
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
- Direct Known Subclasses:
Plugin
,PluginExecution
,ReportPlugin
,ReportSet
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Method clone.GetGet whether any configuration should be propagated to child POMs.getLocation
(Object key) Gets the location of the specified field in the input source.boolean
boolean
void
setConfiguration
(Object configuration) Setvoid
setInherited
(boolean inherited) void
setInherited
(String inherited) Set whether any configuration should be propagated to child POMs.void
setLocation
(Object key, InputLocation location) Sets the location of the specified field.void
setOtherLocation
(Object key, InputLocation location) void
-
Constructor Details
-
ConfigurationContainer
public ConfigurationContainer()
-
-
Method Details
-
clone
Method clone. -
getConfiguration
GetThe configuration as DOM object.
By default, every element content is trimmed, but starting with Maven 3.1.0, you can add
xml:space="preserve"
to elements you want to preserve whitespace.You can control how child POMs inherit configuration from parent POMs by adding
combine.children
orcombine.self
attributes to the children of the configuration element:combine.children
: available values aremerge
(default) andappend
,combine.self
: available values aremerge
(default) andoverride
.
See POM Reference documentation and Xpp3DomUtils for more information.
- Returns:
- Object
-
getInherited
Get whether any configuration should be propagated to child POMs. Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
. Default value istrue
.- Returns:
- String
-
getLocation
Description copied from interface:InputLocationTracker
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.- Returns:
- InputLocation
-
setLocation
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Parameters:
key
- a key object.location
- a location object.
-
setOtherLocation
- Parameters:
key
- a key object.location
- a location object.
-
setConfiguration
SetThe configuration as DOM object.
By default, every element content is trimmed, but starting with Maven 3.1.0, you can add
xml:space="preserve"
to elements you want to preserve whitespace.You can control how child POMs inherit configuration from parent POMs by adding
combine.children
orcombine.self
attributes to the children of the configuration element:combine.children
: available values aremerge
(default) andappend
,combine.self
: available values aremerge
(default) andoverride
.
See POM Reference documentation and Xpp3DomUtils for more information.
- Parameters:
configuration
- a configuration object.
-
setInherited
Set whether any configuration should be propagated to child POMs. Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
. Default value istrue
.- Parameters:
inherited
- a inherited object.
-
isInherited
public boolean isInherited() -
setInherited
public void setInherited(boolean inherited) -
unsetInheritanceApplied
public void unsetInheritanceApplied() -
isInheritanceApplied
public boolean isInheritanceApplied()
-