Package org.apache.maven.model
Class DependencyManagement
java.lang.Object
org.apache.maven.model.DependencyManagement
- All Implemented Interfaces:
Serializable
,Cloneable
,InputLocationTracker
public class DependencyManagement
extends Object
implements Serializable, Cloneable, InputLocationTracker
Section for management of default dependency information for use
in a group of
POMs.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependency
(Dependency dependency) Method addDependency.clone()
Method clone.Method getDependencies.getLocation
(Object key) Gets the ___location of the specified field in the input source.void
removeDependency
(Dependency dependency) Method removeDependency.void
setDependencies
(List<Dependency> dependencies) Set the dependencies specified here are not used until they are referenced in a POM within the group.void
setLocation
(Object key, InputLocation ___location) Sets the ___location of the specified field.void
setOtherLocation
(Object key, InputLocation ___location)
-
Constructor Details
-
DependencyManagement
public DependencyManagement()
-
-
Method Details
-
addDependency
Method addDependency.- Parameters:
dependency
- a dependency object.
-
clone
Method clone. -
getDependencies
Method getDependencies.- Returns:
- List
-
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.
-
removeDependency
Method removeDependency.- Parameters:
dependency
- a dependency object.
-
setDependencies
Set the dependencies specified here are not used until they are referenced in a POM within the group. This allows the specification of a "standard" version for a particular dependency.- Parameters:
dependencies
- a dependencies object.
-