code: public static boolean dependencyExists(File pom, Dependency dependency, Log logger) throws IOException, XmlPullParserException {
  		Model model = getModelFromPOM(pom, logger);
  		
  		return dependencyExists(dependency, model.getDependencies());
  	}
docs: Check whether a dependency exists in a POM.
  
  @param pom
  @param dependency
  @param logger
  @return true if the dependency exists in the POM
  @throws IOException
  @throws XmlPullParserException