From b793f48f8264318add92daa73c83c3608e4aa4b4 Mon Sep 17 00:00:00 2001 From: Cosimo Damiano Prete Date: Fri, 19 Jun 2026 13:20:49 +0200 Subject: [PATCH] chore: Add 'localNpm' build profile to allow to build the UI with the already installed Node and NPM instead of downloading it since the download may be blocked (e.g.: in corporate environments) and 'npm.registry' Maven property to allow to change the registry to use --- pom.xml | 6 ++ spring-boot-admin-server-ui/pom.xml | 92 +++++++++++++++++++++++++++-- 2 files changed, 94 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index ed5ada13100..073d28436b9 100644 --- a/pom.xml +++ b/pom.xml @@ -88,6 +88,7 @@ 0.0.47 0.10.0 0.7.2 + 3.6.3 @@ -432,6 +433,11 @@ spring-configuration-property-documenter-maven-plugin ${spring-conf-prop-documenter-maven-plugin.version} + + org.codehaus.mojo + exec-maven-plugin + ${exec-maven-plugin.version} + diff --git a/spring-boot-admin-server-ui/pom.xml b/spring-boot-admin-server-ui/pom.xml index 6c8ef950d6a..8dd6fd44ca2 100644 --- a/spring-boot-admin-server-ui/pom.xml +++ b/spring-boot-admin-server-ui/pom.xml @@ -33,6 +33,13 @@ META-INF/spring-boot-admin-server-ui + + ci --prefer-offline --no-progress --no-audit --silent + run build + run lint + run test + + @@ -122,6 +129,83 @@ + + + localNpm + + + + com.github.eirslett + frontend-maven-plugin + + true + + + + + org.codehaus.mojo + exec-maven-plugin + + + npm-install + generate-resources + + exec + + + npm + ${npm.install.args} + + ${npm.registry} + + + + + npm-build + generate-resources + + exec + + + npm + ${npm.build.args} + + ${project.version} + + + + + npm-lint + verify + + exec + + + npm + ${npm.lint.args} + + + + npm-test + test + + exec + + + ${skipTests} + npm + ${npm.test.args} + + + + + + + @@ -155,7 +239,7 @@ npm - ci --prefer-offline --no-progress --no-audit --silent + ${npm.install.args} @@ -164,7 +248,7 @@ npm - run build + ${npm.build.args} ${project.version} @@ -177,7 +261,7 @@ verify - run lint + ${npm.lint.args} @@ -187,7 +271,7 @@ test - run test + ${npm.test.args}