From d7e8e01304481e9b4a7fcb9755c959995441df80 Mon Sep 17 00:00:00 2001 From: Matthias Villiger Date: Mon, 26 Feb 2024 11:41:30 +0100 Subject: [PATCH] Support build on root pom Write npm_update.marker file after the npm-update has actually run and include a timestamp in the filename to ensure no markers from previous builds are used. 369036, 371565 --- maven_rt_plugin_config-master/pom.xml | 54 ++++++++++++++++++++------- 1 file changed, 41 insertions(+), 13 deletions(-) diff --git a/maven_rt_plugin_config-master/pom.xml b/maven_rt_plugin_config-master/pom.xml index dbbd4d5..74eaa7d 100644 --- a/maven_rt_plugin_config-master/pom.xml +++ b/maven_rt_plugin_config-master/pom.xml @@ -34,12 +34,12 @@ false ${project.basedir} - ${master_npm_workspace_dir}${file.separator}target${file.separator}node + ${master_npm_workspace_dir}/target/node ${master_node_dir}/node_modules ${env.NODE_OPTIONS} https://nodejs.org/dist/ - + --progress=false --clean=false target/karma-reports @@ -66,7 +66,7 @@ - + @@ -101,7 +101,7 @@ - + @@ -114,7 +114,7 @@ - + @@ -127,7 +127,7 @@ - + @@ -139,7 +139,7 @@ com.github.eirslett frontend-maven-plugin - ${master_node_dir}${file.separator}.. + ${master_node_dir}/.. ${master_nodeDownloadRoot} ${master_node_version} @@ -159,11 +159,11 @@ adjust-master_npm_workspace_dir-for-parent-build - ${basedir}${file.separator}..${file.separator}pnpm-workspace.yaml + ${basedir}/../pnpm-workspace.yaml - ${project.basedir}${file.separator}.. + ${basedir}/.. @@ -285,7 +285,7 @@ ${project.build.directory}/generated-sources/annotations - + @@ -585,7 +585,8 @@ - ${master_npm_workspace_dir}${file.separator}target${file.separator}npm_update.marker + + ${master_npm_workspace_dir}/target/npm_update_${maven.build.timestamp}.marker @@ -596,16 +597,42 @@ maven-antrun-plugin - check-npm-install-workspace + check-install-node-tools run - generate-sources + initialize true + + + + + check-npm-update + + run + + process-sources + + true + + + + + + mark-npm-update-done + + run + + generate-resources + + + + ${master_skip_npm_update} + @@ -692,6 +719,7 @@ +