From 1f9fe5cc9b4932ddb36fab564d90ca811f7d75d7 Mon Sep 17 00:00:00 2001 From: mrizzi Date: Tue, 8 Mar 2022 18:17:28 +0100 Subject: [PATCH 1/5] Fabric8 d-m-p for containerized build --- pom.xml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/pom.xml b/pom.xml index e5d247458..647b92fb4 100644 --- a/pom.xml +++ b/pom.xml @@ -38,6 +38,7 @@ 5.3.20.Final 2.2.5.Final 4.5.13 + clean install -DskipTests @@ -247,6 +248,38 @@ + + io.fabric8 + docker-maven-plugin + 0.39.1 + false + + + + + quay.io/mrizzi/windup-builder:20220307182148CET + + + + ./:/${project.artifactId}:Z + ${user.home}/.m2:${user.home}/.m2:Z + + + + Container build:: + blue + + root + mvn --settings ${user.home}/.m2/settings.xml -Dmaven.repo.local=${user.home}/.m2/repository ${build.args} -f /${project.artifactId} + + Finished at: + + + + + + + org.apache.maven.plugins maven-surefire-plugin From 0ed05c451442c16243c3c3e71a4d377eef3a7e69 Mon Sep 17 00:00:00 2001 From: mrizzi Date: Tue, 8 Mar 2022 18:38:23 +0100 Subject: [PATCH 2/5] Moved to provided 'settings.xml' file --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 647b92fb4..68648e78f 100644 --- a/pom.xml +++ b/pom.xml @@ -270,7 +270,7 @@ blue root - mvn --settings ${user.home}/.m2/settings.xml -Dmaven.repo.local=${user.home}/.m2/repository ${build.args} -f /${project.artifactId} + mvn --settings /${project.artifactId}/settings.xml -Dmaven.repo.local=${user.home}/.m2/repository ${build.args} -f /${project.artifactId} Finished at: From 40eeeadbd066d081c78ed0283ae3a00df23d9ac2 Mon Sep 17 00:00:00 2001 From: mrizzi Date: Wed, 9 Mar 2022 12:23:50 +0100 Subject: [PATCH 3/5] Added Maven 2 'user-settings' property for Furnace compatibility --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 68648e78f..1acc3a937 100644 --- a/pom.xml +++ b/pom.xml @@ -270,7 +270,7 @@ blue root - mvn --settings /${project.artifactId}/settings.xml -Dmaven.repo.local=${user.home}/.m2/repository ${build.args} -f /${project.artifactId} + mvn --settings /${project.artifactId}/settings.xml -Dorg.apache.maven.user-settings=/${project.artifactId}/settings.xml -Dmaven.repo.local=${user.home}/.m2/repository ${build.args} -f /${project.artifactId} Finished at: From a25c7cb4929e0bc7d3fed9aea7972fa993cdb660 Mon Sep 17 00:00:00 2001 From: mrizzi Date: Wed, 9 Mar 2022 19:09:44 +0100 Subject: [PATCH 4/5] Raised container build timeout to 8 hours --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1acc3a937..30e72c51f 100644 --- a/pom.xml +++ b/pom.xml @@ -273,7 +273,7 @@ mvn --settings /${project.artifactId}/settings.xml -Dorg.apache.maven.user-settings=/${project.artifactId}/settings.xml -Dmaven.repo.local=${user.home}/.m2/repository ${build.args} -f /${project.artifactId} Finished at: - + From d5e3e2cf2fd982177fdedd87d88aec5637eae834 Mon Sep 17 00:00:00 2001 From: mrizzi Date: Fri, 11 Mar 2022 11:53:10 +0100 Subject: [PATCH 5/5] Adopted 'frontend-maven-plugin' --- ui-pf4/pom.xml | 80 +++++++++++++++++++++++++++++++------------------- 1 file changed, 50 insertions(+), 30 deletions(-) diff --git a/ui-pf4/pom.xml b/ui-pf4/pom.xml index 758c68b42..d8fa63acb 100644 --- a/ui-pf4/pom.xml +++ b/ui-pf4/pom.xml @@ -14,6 +14,9 @@ development + v12.22.9 + v1.22.17 + 1.12.1 @@ -205,62 +208,79 @@ - org.codehaus.mojo - exec-maven-plugin + com.github.eirslett + frontend-maven-plugin + ${frontend-maven-plugin.version} + + src/main/webapp + ${project.build.directory} + - npm-install - compile + install node and npm - exec + install-node-and-yarn - - yarn - src/main/webapp - - install - + ${node.version} + ${yarn.version} + + + + yarn install + + yarn + + + install + + + + yarn-install + + yarn + + + install - webpack-build - compile - exec + yarn - - yarn - src/main/webapp production - - build - --profile - + build --profile - webpack-build-freemarker - compile - exec + yarn - - yarn - src/main/webapp - - build:freemarker - + build:freemarker + + + nodejs10 + + v10.24.1 + + + + nodejs14 + + v14.19.0 + + +