From 7d5f2ee04f7a85d3d56509180f2fb0e3486988c1 Mon Sep 17 00:00:00 2001 From: teleivo Date: Thu, 19 Sep 2024 13:10:46 +0200 Subject: [PATCH 1/2] ci: use existing node installation on CI (#18612) --- dhis-2/dhis-web/dhis-web-apps/pom.xml | 141 ++++++++++++++++++-------- dhis-2/pom.xml | 14 ++- 2 files changed, 106 insertions(+), 49 deletions(-) diff --git a/dhis-2/dhis-web/dhis-web-apps/pom.xml b/dhis-2/dhis-web/dhis-web-apps/pom.xml index 86219ce61309..0c2c941d4aa6 100644 --- a/dhis-2/dhis-web/dhis-web-apps/pom.xml +++ b/dhis-2/dhis-web/dhis-web-apps/pom.xml @@ -18,56 +18,107 @@ dhis-web-apps + - - - com.github.eirslett - frontend-maven-plugin - 1.6 - - target - - ${project.build.directory} - ${project.artifactId} - ./apps-to-bundle.json - master - - - - - - install node and npm - - install-node-and-npm - - generate-resources + + + + local + + + env.CI + false + + + + + + com.github.eirslett + frontend-maven-plugin + 1.15.0 - v16.13.2 + target + + ${project.build.directory} + ${project.artifactId} + ./apps-to-bundle.json + master + - + + + install node and npm + + install-node-and-npm + + generate-resources + + v20.17.0 + + - - npm install - - npm - - generate-resources - + + npm install + + npm + + generate-resources + - - clone apps - - npm - - generate-resources + + bundle-apps + + npm + + generate-resources + + run bundle-apps + + + + + + + + + + ci + + + env.CI + true + + + + + + org.codehaus.mojo + exec-maven-plugin - run bundle-apps + npm + + run + bundle-apps + + + ${project.build.directory} + ${project.artifactId} + ./apps-to-bundle.json + master + - - - - - - - + + + bundle-apps + + exec + + package + + + + + + + diff --git a/dhis-2/pom.xml b/dhis-2/pom.xml index 722f97407742..2b10a730f7a8 100644 --- a/dhis-2/pom.xml +++ b/dhis-2/pom.xml @@ -64,7 +64,7 @@ - ${project.basedir}/src/main/java @@ -79,7 +79,7 @@ https://sonarcloud.io -Xmx2024m --illegal-access=permit - false @@ -229,6 +229,7 @@ 3.1.2 3.11.0 + 3.4.1 3.3.1 3.0.0-M7 3.5.0 @@ -1642,8 +1643,8 @@ ${mockito.version} test - org.mockito @@ -1888,6 +1889,11 @@ maven-surefire-plugin ${maven-surefire-plugin.version} + + org.codehaus.mojo + exec-maven-plugin + ${maven-exec-plugin.version} + org.apache.maven.plugins maven-failsafe-plugin From 492bd875b5fb582b9a4b6f9c4ad5b9e667277052 Mon Sep 17 00:00:00 2001 From: teleivo Date: Thu, 19 Sep 2024 14:22:53 +0200 Subject: [PATCH 2/2] ci: activate the local profile when CI=false and absent (#18617) --- dhis-2/dhis-web/dhis-web-apps/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dhis-2/dhis-web/dhis-web-apps/pom.xml b/dhis-2/dhis-web/dhis-web-apps/pom.xml index 0c2c941d4aa6..314a0f3141a4 100644 --- a/dhis-2/dhis-web/dhis-web-apps/pom.xml +++ b/dhis-2/dhis-web/dhis-web-apps/pom.xml @@ -26,8 +26,8 @@ local - env.CI - false + !env.CI +