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 TypeMethodDescriptionvoidaddDependency(Dependency dependency) Method addDependency.clone()Method clone.Method getDependencies.getLocation(Object key) Gets the location of the specified field in the input source.voidremoveDependency(Dependency dependency) Method removeDependency.voidsetDependencies(List<Dependency> dependencies) Set the dependencies specified here are not used until they are referenced in a POM within the group.voidsetLocation(Object key, InputLocation location) Sets the location of the specified field.voidsetOtherLocation(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:InputLocationTrackerGets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker- Parameters:
key- a key object.- Returns:
- InputLocation
-
setLocation
Description copied from interface:InputLocationTrackerSets the location of the specified field.- Specified by:
setLocationin 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.
-