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 7cbdca88..d14147ab 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 @@ -283,9 +283,11 @@ public String setup(Server server, boolean isCreatePlatform, boolean isCopyDepen } private void installOWAs(Server server, DistroProperties distroProperties) throws MojoExecutionException { - File owasDir = new File(server.getServerDirectory(), "owa"); - owasDir.mkdirs(); - downloadOWAs(server.getServerDirectory(), distroProperties, owasDir); + if (distroProperties != null) { + File owasDir = new File(server.getServerDirectory(), "owa"); + owasDir.mkdirs(); + downloadOWAs(server.getServerDirectory(), distroProperties, owasDir); + } } private void downloadOWAs(File targetDirectory, DistroProperties distroProperties, File owasDir) throws MojoExecutionException {