public static void addDependency(File pom, Dependency dependency, Log logger) throws IOException, XmlPullParserException {
		Model model = getModelFromPOM(pom, logger);

		model.addDependency(dependency);
		
		writeModelToPOM(model, pom, logger);
	}
public static void addDependency(File pom, Dependency dependency, Log logger) throws IOException, XmlPullParserException {
		Model model = getModelFromPOM(pom, logger);

		model.addDependency(dependency);
		
		writeModelToPOM(model, pom, logger);
	}
public static void addDependency ( File pom , Dependency dependency , Log logger ) throws IOException , XmlPullParserException { Model model = getModelFromPOM ( pom , logger ) ; model . addDependency ( dependency ) ; writeModelToPOM ( model , pom , logger ) ; }
Add the Maven dependency to a POM file.

@param pom
@param dependency
@throws IOException
@throws XmlPullParserException
Add the Maven dependency to a POM file .