org.apache.maven.model
Class DependencyManagement

java.lang.Object
  extended by org.apache.maven.model.DependencyManagement
All Implemented Interfaces:
Serializable

public class DependencyManagement
extends Object
implements Serializable

Section for management of default dependency information for use in a group of POMs.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
DependencyManagement()
           
 
Method Summary
 void addDependency(Dependency dependency)
          Method addDependency.
 List getDependencies()
          Method getDependencies.
 String getModelEncoding()
           
 void removeDependency(Dependency dependency)
          Method removeDependency.
 void setDependencies(List dependencies)
          Set the dependencies specified here are not used until they are referenced in a POM within the group.
 void setModelEncoding(String modelEncoding)
          Set an encoding used for reading/writing the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyManagement

public DependencyManagement()
Method Detail

addDependency

public void addDependency(Dependency dependency)
Method addDependency.

Parameters:
dependency -

getDependencies

public List getDependencies()
Method getDependencies.

Returns:
java.util.List

removeDependency

public void removeDependency(Dependency dependency)
Method removeDependency.

Parameters:
dependency -

setDependencies

public void setDependencies(List 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 -

setModelEncoding

public void setModelEncoding(String modelEncoding)
Set an encoding used for reading/writing the model.

Parameters:
modelEncoding - the encoding used when reading/writing the model.

getModelEncoding

public String getModelEncoding()
Returns:
the current encoding used when reading/writing this model.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.