bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/AbstractBWMojo.java
protected List<Dependency> getDependencies(String dependencyType, boolean doIgnoreDependencies) throws IOException {
		ArrayList<Dependency> result = new ArrayList<Dependency>();
		List<Dependency> dependencies = readDependenciesFromFile(directory + "/resolved", dependencyType);
		
		for (Dependency dependency : dependencies) {
			if (doIgnoreDependencies) {
				if (dependenciesIgnored.indexOf(dependency.getGroupId() + ':' + dependency.getArtifactId()) >= 0) {
					continue;
				}
			}
			if (dependency.getType().equals(dependencyType)) {
				result.add(dependency);
			}
		}

		return result;
	}
protected List<Dependency> getDependencies(String dependencyType, boolean doIgnoreDependencies) throws IOException {
		ArrayList<Dependency> result = new ArrayList<Dependency>();
		List<Dependency> dependencies = readDependenciesFromFile(directory + "/resolved", dependencyType);
		
		for (Dependency dependency : dependencies) {
			if (doIgnoreDependencies) {
				if (dependenciesIgnored.indexOf(dependency.getGroupId() + ':' + dependency.getArtifactId()) >= 0) {
					continue;
				}
			}
			if (dependency.getType().equals(dependencyType)) {
				result.add(dependency);
			}
		}

		return result;
	}
This will retrieve only the dependencies of type dependencyType defined
in POM project as /dependencies/dependency/type="dependencyType".

The list is retrieved from an external file generated by the
'resolve-bw-dependencies' execution of the 'process-resources' phase.

@param dependencyType, the type of dependencies to retrieve
@param doIgnoreDependencies, specifies if the dependencies in the
{@link dependenciesIgnored} must be ignored
@return
@throws IOException