in src/main/java/org/apache/sling/maven/bundlesupport/FsMountMojo.java [304:320]
private boolean isBundlePrerequisitesPreconditionsMet(
CloseableHttpClient httpClient, BundlePrerequisite bundlePrerequisite, URI targetUrl)
throws MojoExecutionException {
for (Bundle precondition : bundlePrerequisite.getPreconditions()) {
try {
if (!isBundleInstalled(httpClient, precondition, targetUrl)) {
getLog().debug("Bundle " + precondition.getSymbolicName() + " " + precondition.getOsgiVersion()
+ " (or higher) is not installed.");
return false;
}
} catch (IOException e) {
throw new MojoExecutionException(
"Reading bundle data for bundle " + precondition + " failed, cause: " + e.getMessage(), e);
}
}
return true;
}