bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java
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