Skip to content

Commit ac1c30a

Browse files
committed
O3-3430: Bundle WAR file to contain all modules including SPA
1 parent 393b7ba commit ac1c30a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

maven-plugin/src/main/java/org/openmrs/maven/plugins/BuildDistro.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,12 @@ private String buildDistro(File targetDirectory, Artifact distroArtifact, Distro
286286
owasDir.mkdir();
287287
downloadOWAs(targetDirectory, distroProperties, owasDir);
288288

289+
spaInstaller.installFromDistroProperties(tempDir, distroProperties, ignorePeerDependencies, overrideReuseNodeCache);
290+
File frontendDir = new File(tempDir, "frontend");
291+
if(frontendDir.exists()) {
292+
frontendDir.renameTo(new File(tempDir, "bundledFrontend"));
293+
}
294+
289295
warfile.addFolder(tempDir, new ZipParameters());
290296
try {
291297
FileUtils.deleteDirectory(tempDir);

0 commit comments

Comments
 (0)