Package org.apache.maven.model
Class DependencyManagement
- java.lang.Object
-
- org.apache.maven.model.DependencyManagement
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,InputLocationTracker
public class DependencyManagement extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
Section for management of default dependency information for use in a group of POMs.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DependencyManagement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDependency(Dependency dependency)Method addDependency.DependencyManagementclone()Method clone.java.util.List<Dependency>getDependencies()Method getDependencies.InputLocationgetLocation(java.lang.Object key)Gets the location of the specified field in the input source.voidremoveDependency(Dependency dependency)Method removeDependency.voidsetDependencies(java.util.List<Dependency> dependencies)Set the dependencies specified here are not used until they are referenced in a POM within the group.voidsetLocation(java.lang.Object key, InputLocation location)Sets the location of the specified field.voidsetOtherLocation(java.lang.Object key, InputLocation location)
-
-
-
Method Detail
-
addDependency
public void addDependency(Dependency dependency)
Method addDependency.- Parameters:
dependency- a dependency object.
-
clone
public DependencyManagement clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- DependencyManagement
-
getDependencies
public java.util.List<Dependency> getDependencies()
Method getDependencies.- Returns:
- List
-
getLocation
public InputLocation getLocation(java.lang.Object key)
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
public void setLocation(java.lang.Object key, InputLocation location)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
public void setOtherLocation(java.lang.Object key, InputLocation location)- Parameters:
key- a key object.location- a location object.
-
removeDependency
public void removeDependency(Dependency dependency)
Method removeDependency.- Parameters:
dependency- a dependency object.
-
setDependencies
public void setDependencies(java.util.List<Dependency> dependencies)
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.
-
-