public static void addDependencyManagement(File pom, Dependency dependency, Log logger) throws IOException, XmlPullParserException {
    """
	Add the Maven dependency to a POM file (in management section).
	
	@param pom
	@param dependency
	@throws IOException
	@throws XmlPullParserException
    """
		Model model = getModelFromPOM(pom, logger);
		
		DependencyManagement dMgmt = model.getDependencyManagement();
		if (dMgmt == null) {
			model.setDependencyManagement(new DependencyManagement());
			dMgmt = model.getDependencyManagement();
		}
		dMgmt.addDependency(dependency);
		
		writeModelToPOM(model, pom, logger);
	}
public static void addDependencyManagement(File pom, Dependency dependency, Log logger) throws IOException, XmlPullParserException {
		Model model = getModelFromPOM(pom, logger);
		
		DependencyManagement dMgmt = model.getDependencyManagement();
		if (dMgmt == null) {
			model.setDependencyManagement(new DependencyManagement());
			dMgmt = model.getDependencyManagement();
		}
		dMgmt.addDependency(dependency);
		
		writeModelToPOM(model, pom, logger);
	}
public static void addDependencyManagement ( File pom , Dependency dependency , Log logger ) throws IOException , XmlPullParserException { Model model = getModelFromPOM ( pom , logger ) ; DependencyManagement dMgmt = model . getDependencyManagement ( ) ; if ( dMgmt == null ) { model . setDependencyManagement ( new DependencyManagement ( ) ) ; dMgmt = model . getDependencyManagement ( ) ; } dMgmt . addDependency ( dependency ) ; writeModelToPOM ( model , pom , logger ) ; }
Add the Maven dependency to a POM file (in management section).

@param pom
@param dependency
@throws IOException
@throws XmlPullParserException
Add the Maven dependency to a POM file ( in management section ) .