From 06622e9aa19f7e1c493f8cdb89fd37632474bf33 Mon Sep 17 00:00:00 2001 From: rbuisson Date: Fri, 14 Jun 2024 15:58:37 +0200 Subject: [PATCH] OZ-429: Copy Superset config via Maven Dependency plugin instead of Maven Resource plugin --- distro/pom.xml | 125 +++++++++++++++++++++++++++++++------------------ 1 file changed, 80 insertions(+), 45 deletions(-) diff --git a/distro/pom.xml b/distro/pom.xml index 87ee9b9..7751dae 100644 --- a/distro/pom.xml +++ b/distro/pom.xml @@ -106,6 +106,13 @@ ${eipERPNextOpenMRSVersion} + + com.ozonehis + ozone-superset-configs + ${project.version} + zip + + @@ -153,12 +160,13 @@ - com.ozonehis - ${eipOpenMRSSenaiteArtifactId} - ${eipOpenMRSSenaiteVersion} - jar - true - ${project.build.directory}/${project.artifactId}-${project.version}/binaries/${eipOpenMRSSenaiteArtifactId} + com.ozonehis + ${eipOpenMRSSenaiteArtifactId} + ${eipOpenMRSSenaiteVersion} + jar + true + + ${project.build.directory}/${project.artifactId}-${project.version}/binaries/${eipOpenMRSSenaiteArtifactId} true @@ -172,38 +180,40 @@ copy - - - com.ozonehis - ${eipOdooOpenMRSArtifactId} - ${eipOdooOpenMRSVersion} - jar - true - ${project.build.directory}/${project.artifactId}-${project.version}/binaries/${eipOdooOpenMRSArtifactId} - - + + + com.ozonehis + ${eipOdooOpenMRSArtifactId} + ${eipOdooOpenMRSVersion} + jar + true + + ${project.build.directory}/${project.artifactId}-${project.version}/binaries/${eipOdooOpenMRSArtifactId} + + - - Copy EIP ERPNext OpenMRS JAR - prepare-package - - copy - - - - - com.ozonehis - ${eipERPNextOpenMRSArtifactId} - ${eipERPNextOpenMRSVersion} - jar - true - ${project.build.directory}/${project.artifactId}-${project.version}/binaries/${eipERPNextOpenMRSArtifactId} - - - - + + Copy EIP ERPNext OpenMRS JAR + prepare-package + + copy + + + + + com.ozonehis + ${eipERPNextOpenMRSArtifactId} + ${eipERPNextOpenMRSVersion} + jar + true + + ${project.build.directory}/${project.artifactId}-${project.version}/binaries/${eipERPNextOpenMRSArtifactId} + + + + Unpack OpenMRS Ref App in a temporary location @@ -230,6 +240,20 @@ referenceapplication-frontend + + + Unpack Superset configs sub-module + generate-resources + + unpack-dependencies + + + true + ${project.build.directory}/${project.artifactId}-${project.version}/configs/superset + ozone-superset-configs + + + @@ -270,11 +294,15 @@ ${project.basedir}/configs + + + superset/ + - + Copy local data/ resources @@ -359,7 +387,8 @@ Remove non-OMODs from Modules - process-resources @@ -373,19 +402,22 @@ - + Rename spa-assemble-config.json to reference-application-spa-assemble-config.json generate-resources - + - + - + @@ -459,7 +491,8 @@ process-resources - + @@ -472,7 +505,8 @@ process-resources - + @@ -558,7 +592,8 @@ - + @@ -590,4 +625,4 @@ - + \ No newline at end of file