From ffde3ddbad002e9333a874c99a46e667897c7d83 Mon Sep 17 00:00:00 2001 From: Ian <52504170+ibacher@users.noreply.github.com> Date: Fri, 16 Feb 2024 08:14:50 -0500 Subject: [PATCH] OZ-196: Maven Parent: Copy locally defined OMODs (#46) --- distro/pom.xml | 21 +++++++++-- maven-parent/pom.xml | 89 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+), 3 deletions(-) diff --git a/distro/pom.xml b/distro/pom.xml index d21c262..6c3317b 100644 --- a/distro/pom.xml +++ b/distro/pom.xml @@ -128,10 +128,8 @@ true true ${project.build.directory}/openmrs_modules/ - + jar, omod - com.ozonehis @@ -328,6 +326,23 @@ + + Remove non-OMODs from Modules + + process-resources + + run + + + + + + + + + + Rename spa-assemble-config.json to reference-application-spa-assemble-config.json generate-resources diff --git a/maven-parent/pom.xml b/maven-parent/pom.xml index 8f57505..d47f235 100644 --- a/maven-parent/pom.xml +++ b/maven-parent/pom.xml @@ -67,6 +67,22 @@ ozone + + + Copy OpenMRS modules to a temporary location + generate-resources + + copy-dependencies + + + true + true + ${project.build.directory}/openmrs_modules/ + + jar, omod + + + Unpack Ozone Scripts generate-resources @@ -241,6 +257,79 @@ + + + + Copy OpenMRS modules + prepare-package + + copy-resources + + + + ${project.build.directory}/${project.artifactId}-${project.version}/binaries/openmrs/modules + true + + + ${project.build.directory}/openmrs_modules + + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + Determine if we need custom OMODs + process-resources + + run + + + + + + + + + + + + Rename JAR to OMOD + process-resources + + run + + + + + + + + + + + + + Remove non-OMODs from Modules + + process-resources + + run + + + + + + + + +