in src/main/java/org/apache/sling/maven/bundlesupport/deploy/method/WebDavPutDeployMethod.java [40:54]
public void deploy(URI targetURL, File file, String bundleSymbolicName, DeployContext context) throws IOException {
try {
performPut(targetURL, file, context);
} catch (HttpResponseException e) {
if (e.getStatusCode() == HttpStatus.SC_CONFLICT) {
context.getLog()
.debug(
"Bundle not installed due missing parent folders. Attempting to create parent structure.");
createIntermediaryPaths(targetURL, context);
context.getLog().debug("Re-attempting bundle install after creating parent folders.");
performPut(targetURL, file, context);
}
}
}