diff --git a/maven-plugin/src/main/java/org/openmrs/maven/plugins/Setup.java b/maven-plugin/src/main/java/org/openmrs/maven/plugins/Setup.java index 9cc88878..4d1d2107 100644 --- a/maven-plugin/src/main/java/org/openmrs/maven/plugins/Setup.java +++ b/maven-plugin/src/main/java/org/openmrs/maven/plugins/Setup.java @@ -371,7 +371,7 @@ private void installConfiguration(Server server, DistroProperties distroProperti // If such a folder is found in the downloaded artifact, use it. Otherwise, use the entire zip contents File tempConfigDir = new File(server.getServerTmpDirectory(), UUID.randomUUID().toString()); try { - if (!tempConfigDir.mkdir()) { + if (!tempConfigDir.mkdirs()) { throw new MojoExecutionException("Unable to create temporary directory " + tempConfigDir.getAbsolutePath() + "\n"); } moduleInstaller.installAndUnpackModule(configArtifact, tempConfigDir.getAbsolutePath());