ThingsBoard物联网平台编译失败,报以下错误:Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm
Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm (npm install) on project ui-ngx: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: -4048 (Exit value: -4048) -> [Help 1]
错误信息
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Thingsboard 3.0.0-SNAPSHOT:
[INFO]
[INFO] Thingsboard ........................................ SUCCESS [ 0.878 s]
[INFO] Netty MQTT Client .................................. SUCCESS [ 1.991 s]
[INFO] Thingsboard Server Commons ......................... SUCCESS [ 0.080 s]
[INFO] Thingsboard Server Common Data ..................... SUCCESS [ 5.836 s]
[INFO] Thingsboard Server Common Utils .................... SUCCESS [ 0.247 s]
[INFO] Thingsboard Server Common Messages ................. SUCCESS [ 9.960 s]
[INFO] Thingsboard Server Queue components ................ SUCCESS [ 0.542 s]
[INFO] Thingsboard Server Commons ......................... SUCCESS [ 0.027 s]
[INFO] Thingsboard Server Common Transport components ..... SUCCESS [ 10.231 s]
[INFO] Thingsboard MQTT Transport Common .................. SUCCESS [ 0.867 s]
[INFO] Thingsboard HTTP Transport Common .................. SUCCESS [ 0.491 s]
[INFO] Thingsboard CoAP Transport Common .................. SUCCESS [ 0.956 s]
[INFO] Thingsboard Server Common DAO API .................. SUCCESS [ 1.330 s]
[INFO] Thingsboard Extensions ............................. SUCCESS [ 0.041 s]
[INFO] Thingsboard Rule Engine API ........................ SUCCESS [ 1.035 s]
[INFO] Thingsboard Server DAO Layer ....................... SUCCESS [ 59.488 s]
[INFO] Thingsboard Rule Engine Components ................. SUCCESS [ 5.554 s]
[INFO] Thingsboard Server Transport Modules ............... SUCCESS [ 0.023 s]
[INFO] Thingsboard HTTP Transport Service ................. SUCCESS [ 9.798 s]
[INFO] Thingsboard MQTT Transport Service ................. SUCCESS [ 5.203 s]
[INFO] Thingsboard CoAP Transport Service ................. SUCCESS [ 4.718 s]
[INFO] ThingsBoard Server UI .............................. FAILURE [11:51 min]
[INFO] Thingsboard Server Tools ........................... SKIPPED
[INFO] Thingsboard Rest Client ............................ SKIPPED
[INFO] ThingsBoard Server Application ..................... SKIPPED
[INFO] ThingsBoard Microservices .......................... SKIPPED
[INFO] ThingsBoard Docker Images .......................... SKIPPED
[INFO] ThingsBoard JavaScript Executor Microservice ....... SKIPPED
[INFO] ThingsBoard Web UI Microservice .................... SKIPPED
[INFO] ThingsBoard Node Microservice ...................... SKIPPED
[INFO] ThingsBoard Transport Microservices ................ SKIPPED
[INFO] ThingsBoard MQTT Transport Microservice ............ SKIPPED
[INFO] ThingsBoard HTTP Transport Microservice ............ SKIPPED
[INFO] ThingsBoard COAP Transport Microservice ............ SKIPPED
[INFO] ThingsBoard Black Box Tests ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:51 min
[INFO] Finished at: 2020-03-05T20:49:00+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.5:npm (npm install) on project ui-ngx: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: -4048 (Exit value: -4048)
-> [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
解决方案:
检查是否使用了淘宝镜像源,如果是可以尝试切换回官方镜像源,然后执行一下步骤:
1、删除ui目录下面的node_modules文件夹
2、执行
cache clean --force
3、执行
npm update
4、执行
mvn clean install -DskipTests
相关推荐: ThingsBoard物联网平台之MQTT设备协议简介
ThingsBoard简介: ThingsBoard是一个开源的物联网平台,用于数据收集、处理、可视化和设备管理。它支持使用MQTT、CoAP和HTTP等标准物联网协议进行设备连接,并适用于云和本地部署。ThingsBoard提供可扩展、容错且高性能的服务,…