There is a problem with amd64 jdk on amd64 windows and maven-frontend-plugin:
When mvn compile is ran, it grabs amd64 version of node.exe
, which is expected; then it tries to run npm.cmd install
, to install deps.
Problem is that after that, everything fails:
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm install) on project {projectName}: Failed to run task: 'npm install' failed. java.io.IOException: Cannot run program "D:\Projects\job\projectPath\target\node\node.exe" (in directory "D:\Projects\job\projectPath\src\main\webapp"): CreateProcess error=193, %1 is not a valid Win32 application -> [Help 1]
In case I run x86 jdk, it doesn't fail and builds as normal.
Is the problem on my side, a bug in node.js, in maven-frontend-plugin or in maven itself?