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 .