Openhab-webui build fails

This is my first attempt at building openHAB (openhab-webui only). I am not sure yet of what I’m actually doing :wink: and might be missing prerequisites that are obvious to devs such as env variables I might need to set. So bare with me. Consider my build system to be ‘virgin’.
I followed Developer Guide | openHAB and openhab-webui/CONTRIBUTING.md at main · openhab/openhab-webui · GitHub

My builds using variants of mvn clean install -o -e -X -DskipChecks now fail because the build run tries to install some version of nodejs it cannot find for download.
I don’t understand why it tries to at all, though. As seen below nodejs and npm are there.
I also manually updated them. I tried on debian x86 and Raspi OS, same error.

How do I tell the build process to use the installed nodejs/npm ?

markus@emspc:/volatile/work/openhab-webui $ nodejs --version
v16.15.1
markus@emspc:/volatile/work/openhab-webui $ npm --version
8.11.0

[...]

[DEBUG] Creating temporary directory /volatile/work/openhab-webui/bundles/org.openhab.ui/web/node/tmp
[INFO] Downloading https://nodejs.org/dist/v16.15.1/node-v16.15.1-linux-x86.tar.gz to /home/markus/.m2/repository/com/github/eirslett/node/16.15.1/node-16.15.1-linux-x86.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for openHAB UIs 3.3.0-SNAPSHOT:
[INFO]
[INFO] openHAB UIs ........................................ SUCCESS [01:58 min]
[INFO] openHAB UI :: Bundles .............................. SUCCESS [02:39 min]
[INFO] openHAB UI :: Bundles :: Main UI ................... FAILURE [01:02 min]
[INFO] openHAB UI :: Bundles :: Basic UI .................. SKIPPED
[INFO] openHAB UI :: Bundles :: CometVisu :: Backend ...... SKIPPED
[INFO] openHAB UI :: Bundles :: CometVisu :: PHP Support .. SKIPPED
[INFO] openHAB UI :: Bundles :: HABot Interactive Bot ..... SKIPPED
[INFO] openHAB UI :: Bundles :: HABPanel UI ............... SKIPPED
[INFO] openHAB UI :: Bundles :: Icon Set :: Classic ....... SKIPPED
[INFO] openHAB UI :: BOM .................................. SKIPPED
[INFO] openHAB UI :: BOM :: openHAB UI .................... SKIPPED
[INFO] openHAB UI :: Features ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  05:42 min
[INFO] Finished at: 2022-06-19T09:38:30+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.9.0:install-node-and-npm (Install node and npm) on project org.openhab.ui: Could not download Node.js: Got error code 404 from the server. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.9.0:install-node-and-npm (Install node and npm) on project org.openhab.ui: Could not download Node.js: Got error code 404 from the server.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.

Have a look at javascript - can frontend-maven-plugin use node, npm already installed? - Stack Overflow this seems to have an answer.

Thanks. I tried editing pom.xml to insert the skip option but this always seems to produce syntax errors so I tried -Dskip.installnodenpm -Dskip.npm like in the linked issue, this got me a little further.

EDIT:
mvn clean install -DskipChecks -Dskip.installnodenpm -Dskip.npm -Dohc.version=3.3.0.M6 now finally got me to compile things, without -Dohc I got nothing but errors of various sort. Still I don’t feel that I know what I’m doing here…