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
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Dependency>
dependencies
Field dependencies.private InputLocation
dependenciesLocation
Field dependenciesLocation.private InputLocation
location
Field location.private java.util.Map<java.lang.Object,InputLocation>
locations
Field locations.
-
Constructor Summary
Constructors Constructor Description DependencyManagement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDependency(Dependency dependency)
Method addDependency.DependencyManagement
clone()
Method clone.java.util.List<Dependency>
getDependencies()
Method getDependencies.InputLocation
getLocation(java.lang.Object key)
Gets the location of the specified field in the input source.private InputLocation
getOtherLocation(java.lang.Object key)
void
removeDependency(Dependency dependency)
Method removeDependency.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.void
setLocation(java.lang.Object key, InputLocation location)
Sets the location of the specified field.void
setOtherLocation(java.lang.Object key, InputLocation location)
-
-
-
Field Detail
-
dependencies
private java.util.List<Dependency> dependencies
Field dependencies.
-
locations
private java.util.Map<java.lang.Object,InputLocation> locations
Field locations.
-
location
private InputLocation location
Field location.
-
dependenciesLocation
private InputLocation dependenciesLocation
Field dependenciesLocation.
-
-
Method Detail
-
addDependency
public void addDependency(Dependency dependency)
Method addDependency.- Parameters:
dependency
-
-
clone
public DependencyManagement clone()
Method clone.- Overrides:
clone
in 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:InputLocationTracker
Gets the location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Parameters:
key
-- Returns:
- InputLocation
-
setLocation
public void setLocation(java.lang.Object key, InputLocation location)
Description copied from interface:InputLocationTracker
Sets the location of the specified field.- Specified by:
setLocation
in interfaceInputLocationTracker
- Parameters:
key
-location
-
-
setOtherLocation
public void setOtherLocation(java.lang.Object key, InputLocation location)
- Parameters:
key
-location
-
-
getOtherLocation
private InputLocation getOtherLocation(java.lang.Object key)
- Parameters:
key
-- Returns:
- InputLocation
-
removeDependency
public void removeDependency(Dependency dependency)
Method removeDependency.- Parameters:
dependency
-
-
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
-
-
-