-
Notifications
You must be signed in to change notification settings - Fork 222
Error on build #123
Copy link
Copy link
Open
Description
There's something wrong with how Maven installs Node/NPM, it seems:
$ docker run -it --rm --name hmdm-build -v "$(pwd)":/opt/project -w /opt/project maven:3.9-amazoncorretto-11-alpine mvn install
...
[INFO] Installing node version v18.16.0
[INFO] Downloading https://nodejs.org/dist/v18.16.0/node-v18.16.0-linux-arm64.tar.gz to /root/.m2/repository/com/github/eirslett/node/18.16.0/node-18.16.0-linux-arm64.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
[INFO] Unpacking /root/.m2/repository/com/github/eirslett/node/18.16.0/node-18.16.0-linux-arm64.tar.gz into /opt/project/server/webtarget/node/tmp
[INFO] Copying node binary from /opt/project/server/webtarget/node/tmp/node-v18.16.0-linux-arm64/bin/node to /opt/project/server/webtarget/node/node
[INFO] Installed node locally.
[INFO] Installing npm version 9.5.1
[INFO] Downloading https://registry.npmjs.org/npm/-/npm-9.5.1.tgz to /root/.m2/repository/com/github/eirslett/npm/9.5.1/npm-9.5.1.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
[INFO] Unpacking /root/.m2/repository/com/github/eirslett/npm/9.5.1/npm-9.5.1.tar.gz into /opt/project/server/webtarget/node/node_modules
[INFO] Installed npm locally.
[INFO]
[INFO] --- frontend:1.7.6:npm (npm install) @ server ---
[INFO] Running 'npm install' in /opt/project/server/webtarget
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Headwind MDM 0.1.0 ................................. SUCCESS [ 1.471 s]
[INFO] Core for MDM API 0.1.0 ............................. SUCCESS [ 18.200 s]
[INFO] JWT Auth for MDM API 0.2.0 ......................... SUCCESS [ 0.562 s]
[INFO] Push Notifications for MDM API 0.1.0 ............... SUCCESS [ 1.585 s]
[INFO] Plugins for MDM Server 0.1.0 ....................... SUCCESS [ 0.007 s]
[INFO] Plugin Platform for MDM Server 0.1.0 ............... SUCCESS [ 0.141 s]
[INFO] Device Log Plugin for MDM Server 0.1.0 ............. SUCCESS [ 0.007 s]
[INFO] Device Log Plugin for MDM Server - Core 0.1.0 ...... SUCCESS [ 0.107 s]
[INFO] Device Log Plugin for MDM Server - Postgres 0.1.0 .. SUCCESS [ 0.090 s]
[INFO] Audit Plugin for MDM Server 0.1.0 .................. SUCCESS [ 0.085 s]
[INFO] Device Detailed Info Plugin for MDM Server 0.1.0 ... SUCCESS [ 0.629 s]
[INFO] Messaging Plugin for MDM Server 0.1.0 .............. SUCCESS [ 0.092 s]
[INFO] Push Messaging Plugin for MDM Server 0.1.0 ......... SUCCESS [ 0.083 s]
[INFO] A Promo plugin 0.1.0 ............................... SUCCESS [ 0.065 s]
[INFO] Swagger UI 0.1.0 ................................... SUCCESS [ 2.027 s]
[INFO] MDM Server 0.1.0 ................................... FAILURE [ 44.610 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:10 min
[INFO] Finished at: 2025-12-04T03:14:14Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.6:npm (npm install) on project server: Failed to run task: 'npm install' failed. java.io.IOException: Cannot run program "/opt/project/server/webtarget/node/node" (in directory "/opt/project/server/webtarget"): error=2, No such file or directory -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :server
$Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels