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 Details

    • DependencyManagement

      public DependencyManagement()
  • Method Details

    • addDependency

      public void addDependency(Dependency dependency)
      Method addDependency.
      Parameters:
      dependency - a dependency object.
    • clone

      public DependencyManagement clone()
      Method clone.
      Overrides:
      clone in class Object
      Returns:
      DependencyManagement
    • getDependencies

      public List<Dependency> getDependencies()
      Method getDependencies.
      Returns:
      List
    • getLocation

      public InputLocation getLocation(Object key)
      Description copied from interface: InputLocationTracker
      Gets the location of the specified field in the input source.
      Specified by:
      getLocation in interface InputLocationTracker
      Parameters:
      key - a key object.
      Returns:
      InputLocation
    • setLocation

      public void setLocation(Object key, InputLocation location)
      Description copied from interface: InputLocationTracker
      Sets the location of the specified field.
      Specified by:
      setLocation in interface InputLocationTracker
      Parameters:
      key - a key object.
      location - a location object.
    • setOtherLocation

      public void setOtherLocation(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(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.