final List<Element> databaseDependencies = XmlUtils.findElements(
jdbcDatabase.getConfigPrefix() + "/dependencies/dependency",
configuration);
for (final Element dependencyElement : databaseDependencies) {
requiredDependencies.add(new Dependency(dependencyElement));
}
final List<Element> ormDependencies = XmlUtils.findElements(
ormProvider.getConfigPrefix() + "/dependencies/dependency",
configuration);
for (final Element dependencyElement : ormDependencies) {
requiredDependencies.add(new Dependency(dependencyElement));
}
// Hard coded to JPA & Hibernate Validator for now
final List<Element> jpaDependencies = XmlUtils
.findElements(
"/configuration/persistence/provider[@id = 'JPA']/dependencies/dependency",
configuration);
for (final Element dependencyElement : jpaDependencies) {
requiredDependencies.add(new Dependency(dependencyElement));
}
final List<Element> springDependencies = XmlUtils.findElements(
"/configuration/spring/dependencies/dependency", configuration);
for (final Element dependencyElement : springDependencies) {
requiredDependencies.add(new Dependency(dependencyElement));
}
// Remove redundant dependencies
final List<Dependency> redundantDependencies = new ArrayList<Dependency>();
redundantDependencies.addAll(getDependencies(databaseXPath,