From e941b489faba7d5236b245e3648aafc0207dd6a3 Mon Sep 17 00:00:00 2001 From: Michael Folz Date: Fri, 27 Oct 2023 11:37:07 +0200 Subject: [PATCH] #215 - Use wagon-maven-plugin for Ontology Download - use wagon-maven-plugin for the download part of the ontology download/unpack process --- pom.xml | 70 +++++++++++++++++++++++++++++++-------------------------- 1 file changed, 38 insertions(+), 32 deletions(-) diff --git a/pom.xml b/pom.xml index 19f4aa15..b2991bd7 100644 --- a/pom.xml +++ b/pom.xml @@ -310,7 +310,6 @@ feasibilityBackend - org.springframework.boot @@ -381,6 +380,9 @@ false + + ontology/ + @@ -416,42 +418,49 @@ + + + + org.codehaus.mojo + wagon-maven-plugin + 2.0.2 + - create-ontology-subdirectories + download-ontology generate-resources - exec + download-single - mkdir - - ontology/migration - ontology/ui_trees - + https://github.com/medizininformatik-initiative/fhir-ontology-generator/raw/${ontology-tag}/example/mii_core_data_set/ontology + backend.zip + ${downloadDirectory.base} - - download-ontology-backend + download-mapping generate-resources - exec + download-single - curl - - -L - https://github.com/medizininformatik-initiative/fhir-ontology-generator/raw/${ontology-tag}/example/mii_core_data_set/ontology/backend.zip - -o - ontology/backend.zip - + https://github.com/medizininformatik-initiative/fhir-ontology-generator/raw/${ontology-tag}/example/mii_core_data_set/ontology + mapping.zip + ${downloadDirectory.base} + + + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + unpack-ontology-backend - generate-resources + process-resources exec @@ -466,40 +475,37 @@ - move-db-script - generate-resources + create-ontology-subdirectory + process-resources exec - mv + mkdir - ontology/ui_trees/R__Load_latest_ui_profile.sql ontology/migration/ - download-ontology-mapping - generate-resources + move-db-script + process-resources exec - curl + mv - -L - https://github.com/medizininformatik-initiative/fhir-ontology-generator/raw/${ontology-tag}/example/mii_core_data_set/ontology/mapping.zip - -o - ontology/mapping.zip + ontology/ui_trees/R__Load_latest_ui_profile.sql + ontology/migration/ unpack-ontology-mapping - generate-resources + process-resources exec @@ -515,7 +521,7 @@ delete-zip-files - generate-resources + process-resources exec