Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build example project on maven:3.6.0-jdk-8-alpine #1111

Open
breadnarz opened this issue Sep 28, 2023 · 1 comment
Open

Can't build example project on maven:3.6.0-jdk-8-alpine #1111

breadnarz opened this issue Sep 28, 2023 · 1 comment

Comments

@breadnarz
Copy link

I'm trying to use the maven:3.6.0-jdk-8-alpine image to build the example project. I'm getting the following error:

[INFO] Running 'npm ci' in /tmp/frontend-maven-plugin/frontend-maven-plugin/src/it/example project
[DEBUG] Executing command line [/tmp/frontend-maven-plugin/frontend-maven-plugin/src/it/example project/node/node, /tmp/frontend-maven-plugin/frontend-maven-plugin/src/it/example project/node/node_modules/npm/bin/npm-cli.js, ci]
[INFO] Error relocating /tmp/frontend-maven-plugin/frontend-maven-plugin/src/it/example project/node/node: _ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev: symbol not found
[INFO] Error relocating /tmp/frontend-maven-plugin/frontend-maven-plugin/src/it/example project/node/node: _ZNSt19_Sp_make_shared_tag5_S_eqERKSt9type_info: symbol not found
[INFO] Error relocating /tmp/frontend-maven-plugin/frontend-maven-plugin/src/it/example project/node/node: _ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev: symbol not found
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.770 s
[INFO] Finished at: 2023-09-28T15:45:47Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.1:npm (npm ci) on project example: Failed to run task: 'npm ci' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 127 (Exit value: 127) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.1:npm (npm ci) on project example: Failed to run task

Should I be able to build this example project on that image? From reading the readme it seems like both maven and jdk requirements are met.

@neoxpert
Copy link

neoxpert commented Nov 3, 2023

Not a problem of the frontend maven plugin. Looks like you are using an incompatible NodeJS executable. Googling for the report error yields several results related to running NodeJS on Alpine Linux.

https://stackoverflow.com/questions/71983169/error-relocating-usr-bin-node-znst7-cxx1119basic-ostringstreamicst11char-tra
nodejs/node#41058

To fix this issue, you have to use a NodeJS version that is compatible with the Alpine Linux version of the chosen docker image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants