sparta
sparta copied to clipboard
Stratio Sparta Front module compile failed
hi , using command "mvn clean package -Ppackage -Dmaven.test.skip=true" compile failed at "Stratio Sparta Front " module:
Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.28:grunt (grunt build) on project web: Failed to run task: 'grunt build --no-color' failed. (error code 6) -> [Help 1]
in china downloading node,grunt and some Front tools like that is too slowly, could you tell me how to install them in advance ?
Hi @sumpan ,
the build failed if you have in your home inside the file .npmrc the next lines:
repository="http://sodio.stratio.com/nexus/content/repositories/npmjs/ registry=http://sodio.stratio.com/nexus/content/repositories/npmjs/
If your delete this lines fail too??
Thanks
If you don't have this lines, it's possible that you need to move the folder ./web/node_modules/npm to ./web/npm and remove ./web/node_modules
@sumpan your question was ok?
Got the same issue here
[INFO] Running "concurrent:dist" (concurrent) task [INFO] Warning: Loading "sass.js" tasks...ERROR [INFO] >> Error: /root/sparta/web/node_modules/node-sass/vendor/linux-x64-14/binding.node: ELF load command past end of file [INFO] Warning: Task "sass:dist" failed. Use --force to continue. [INFO] [INFO] Aborted due to warnings. [INFO] [INFO] [INFO] Execution Time (2017-04-26 08:59:16 UTC) [INFO] loading tasks 8ms ▇▇▇▇▇▇▇▇▇▇▇▇ 29% [INFO] loading grunt-sass 19ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 68% [INFO] Total 28ms Use --force to continue. [INFO] [INFO] Aborted due to warnings. [INFO] [INFO] [INFO] Execution Time (2017-04-26 08:59:15 UTC) [INFO] loading tasks 7ms ▇ 1% [INFO] loading grunt-contrib-clean 6ms ▇ 1% [INFO] clean:server 7ms ▇ 1% [INFO] loading grunt-usemin 33ms ▇▇▇ 7% [INFO] useminPrepare:html 24ms ▇▇ 5% [INFO] loading grunt-concurrent 7ms ▇ 1% [INFO] concurrent:dist 399ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 82% [INFO] Total 486ms [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.557 s [INFO] Finished at: 2017-04-26T16:59:16+08:00 [INFO] Final Memory: 25M/570M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "package" could not be activated because it does not exist. [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.28:grunt (grunt build) on project web: Failed to run task: 'grunt build --no-color' failed. (error code 6) -> [Help 1]
If you don't have this lines, it's possible that you need to move the folder ./web/node_modules/npm to ./web/npm and remove ./web/node_modules
This did not solve the problem. And I did not find npm in ./web/node_modules/,
it is in ./web/node/node_modules/
in current version. Can you please explain the reason for doing so ?
I also got the same issue
I also got the same issue,how solve it?
@wfeng1982 @sumpan I have the same question ,have you been sloved yet?