sparta icon indicating copy to clipboard operation
sparta copied to clipboard

Stratio Sparta Front module compile failed

Open dongbin86 opened this issue 8 years ago • 7 comments

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 ?

dongbin86 avatar Dec 18 '16 16:12 dongbin86

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

compae avatar Dec 23 '16 08:12 compae

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

compae avatar Mar 16 '17 11:03 compae

@sumpan your question was ok?

wfeng1982 avatar Apr 26 '17 08:04 wfeng1982

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 ?

sfpprxy avatar Apr 26 '17 09:04 sfpprxy

I also got the same issue

wfeng1982 avatar Apr 26 '17 09:04 wfeng1982

I also got the same issue,how solve it?

lingbo229 avatar Jul 11 '17 09:07 lingbo229

@wfeng1982 @sumpan I have the same question ,have you been sloved yet?

zhenglu696 avatar May 03 '18 02:05 zhenglu696