public static boolean dependencyExists(File pom, Dependency dependency, Log logger) throws IOException, XmlPullParserException {
    """
	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
    """
		Model model = getModelFromPOM(pom, logger);
		
		return dependencyExists(dependency, model.getDependencies());
	}
public static boolean dependencyExists(File pom, Dependency dependency, Log logger) throws IOException, XmlPullParserException {
		Model model = getModelFromPOM(pom, logger);
		
		return dependencyExists(dependency, model.getDependencies());
	}
public static boolean dependencyExists ( File pom , Dependency dependency , Log logger ) throws IOException , XmlPullParserException { Model model = getModelFromPOM ( pom , logger ) ; return dependencyExists ( dependency , model . getDependencies ( ) ) ; }
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
Check whether a dependency exists in a POM .