首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >从源代码构建ThingsBoard时出错- Thingsboard服务器UI失败

从源代码构建ThingsBoard时出错- Thingsboard服务器UI失败
EN

Stack Overflow用户
提问于 2018-05-20 03:23:20
回答 2查看 1.2K关注 0票数 1

我想要生成Thingsboard依赖jars,我想在我的应用程序中使用它从java应用程序调用Thingsboard API。

要使用Thingsboard依赖jars,我必须构建应用程序,因为这些jars在公共存储库中不可用。

我正在尝试从源代码构建ThingsBoard应用程序,我正在遵循link - https://thingsboard.io/docs/user-guide/install/building-from-source/中提到的说明

我克隆了ThingsBoard报告,然后签出了"release-1.4“分支,并运行了mvn clean install命令。

应用程序构建失败,出现下面提到的错误。

代码语言:javascript
运行
复制
[INFO] Installing npm version 3.10.8
[INFO] Unpacking /var/root/.m2/repository/com/github/eirslett/npm/3.10.8/npm-3.10.8.tar.gz into /Users/admin/workspaces/IOT/ThingsBoard/source/thingsboard/ui/target/node/node_modules
[INFO] Installed npm locally.
[INFO] 
[INFO] --- frontend-maven-plugin:1.0:npm (npm install) @ ui ---
[INFO] Running 'npm install' in /Users/admin/workspaces/IOT/ThingsBoard/source/thingsboard/ui
[WARNING] npm WARN deprecated angular-ui-router@0.3.2: This npm package 'angular-ui-router' has been renamed to '@uirouter/angularjs'. Please update your package.json. See https://ui-router.github.io/blog/uirouter-scoped-packages/
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/fabiobiondi/angular-fullscreen.git /Users/admin/.npm/_git-remotes/git-github-com-fabiobiondi-angular-fullscreen-git-master-2346b489: Cloning into bare repository '/Users/admin/.npm/_git-remotes/git-github-com-fabiobiondi-angular-fullscreen-git-master-2346b489'...
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/fabiobiondi/angular-fullscreen.git /Users/admin/.npm/_git-remotes/git-github-com-fabiobiondi-angular-fullscreen-git-master-2346b489: fatal: unable to connect to github.com:
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/fabiobiondi/angular-fullscreen.git /Users/admin/.npm/_git-remotes/git-github-com-fabiobiondi-angular-fullscreen-git-master-2346b489: github.com[0: 192.30.253.113]: errno=Operation timed out
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/fabiobiondi/angular-fullscreen.git /Users/admin/.npm/_git-remotes/git-github-com-fabiobiondi-angular-fullscreen-git-master-2346b489: github.com[1: 192.30.253.112]: errno=Operation timed out
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/thingsboard/flot.git /Users/admin/.npm/_git-remotes/git-github-com-thingsboard-flot-git-0-9-work-799e39f1: Cloning into bare repository '/Users/admin/.npm/_git-remotes/git-github-com-thingsboard-flot-git-0-9-work-799e39f1'...
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/thingsboard/flot.git /Users/admin/.npm/_git-remotes/git-github-com-thingsboard-flot-git-0-9-work-799e39f1: fatal: unable to connect to github.com:
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/thingsboard/flot.git /Users/admin/.npm/_git-remotes/git-github-com-thingsboard-flot-git-0-9-work-799e39f1: github.com[0: 192.30.253.113]: errno=Operation timed out
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/thingsboard/flot.git /Users/admin/.npm/_git-remotes/git-github-com-thingsboard-flot-git-0-9-work-799e39f1: github.com[1: 192.30.253.112]: errno=Operation timed out
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/MichaelZinsmaier/CurvedLines.git /Users/admin/.npm/_git-remotes/git-github-com-MichaelZinsmaier-CurvedLines-git-master-843e4689: Cloning into bare repository '/Users/admin/.npm/_git-remotes/git-github-com-MichaelZinsmaier-CurvedLines-git-master-843e4689'...
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/MichaelZinsmaier/CurvedLines.git /Users/admin/.npm/_git-remotes/git-github-com-MichaelZinsmaier-CurvedLines-git-master-843e4689: fatal: unable to connect to github.com:
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/MichaelZinsmaier/CurvedLines.git /Users/admin/.npm/_git-remotes/git-github-com-MichaelZinsmaier-CurvedLines-git-master-843e4689: github.com[0: 192.30.253.113]: errno=Operation timed out
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/MichaelZinsmaier/CurvedLines.git /Users/admin/.npm/_git-remotes/git-github-com-MichaelZinsmaier-CurvedLines-git-master-843e4689: github.com[1: 192.30.253.112]: errno=Operation timed out
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/alenaksu/mdPickers.git /Users/admin/.npm/_git-remotes/git-github-com-alenaksu-mdPickers-git-0-7-5-ca6ad268: Cloning into bare repository '/Users/admin/.npm/_git-remotes/git-github-com-alenaksu-mdPickers-git-0-7-5-ca6ad268'...
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/alenaksu/mdPickers.git /Users/admin/.npm/_git-remotes/git-github-com-alenaksu-mdPickers-git-0-7-5-ca6ad268: fatal: unable to connect to github.com:
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/alenaksu/mdPickers.git /Users/admin/.npm/_git-remotes/git-github-com-alenaksu-mdPickers-git-0-7-5-ca6ad268: github.com[0: 192.30.253.113]: errno=Operation timed out
[ERROR] npm ERR! git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/alenaksu/mdPickers.git /Users/admin/.npm/_git-remotes/git-github-com-alenaksu-mdPickers-git-0-7-5-ca6ad268: github.com[1: 192.30.253.112]: errno=Operation timed out
[ERROR] npm ERR! Darwin 16.7.0
[ERROR] npm ERR! argv "/Users/admin/workspaces/IOT/ThingsBoard/source/thingsboard/ui/target/node/node" "/Users/admin/workspaces/IOT/ThingsBoard/source/thingsboard/ui/target/node/node_modules/npm/bin/npm-cli.js" "install"
[ERROR] npm ERR! node v6.9.1
[ERROR] npm ERR! npm  v3.10.8
[ERROR] npm ERR! code 128
[ERROR] 
[ERROR] npm ERR! Command failed: git clone --template=/Users/admin/.npm/_git-remotes/_templates --mirror git://github.com/fabiobiondi/angular-fullscreen.git /Users/admin/.npm/_git-remotes/git-github-com-fabiobiondi-angular-fullscreen-git-master-2346b489
[ERROR] npm ERR! Cloning into bare repository '/Users/admin/.npm/_git-remotes/git-github-com-fabiobiondi-angular-fullscreen-git-master-2346b489'...
[ERROR] npm ERR! fatal: unable to connect to github.com:
[ERROR] npm ERR! github.com[0: 192.30.253.113]: errno=Operation timed out
[ERROR] npm ERR! github.com[1: 192.30.253.112]: errno=Operation timed out
---
---
[INFO] Thingsboard ........................................ SUCCESS [  1.895 s]
[INFO] Thingsboard Server Commons ......................... SUCCESS [  0.070 s]
[INFO] Thingsboard Server Common Data ..................... SUCCESS [  4.105 s]
[INFO] Thingsboard Server Common Messages ................. SUCCESS [  0.716 s]
[INFO] Thingsboard Server Common Transport components ..... SUCCESS [  0.739 s]
[INFO] Thingsboard Server DAO Layer ....................... SUCCESS [  8.202 s]
[INFO] Thingsboard Server Extensions API .................. SUCCESS [  1.109 s]
[INFO] Thingsboard Server Core Extensions ................. SUCCESS [  4.167 s]
[INFO] Thingsboard Extensions ............................. SUCCESS [  0.054 s]
[INFO] Thingsboard Server RabbitMQ Extension .............. SUCCESS [  1.810 s]
[INFO] Thingsboard Server REST API Call Extension ......... SUCCESS [  0.704 s]
[INFO] Thingsboard Server Kafka Extension ................. SUCCESS [  2.283 s]
[INFO] Thingsboard Server MQTT Extension .................. SUCCESS [  0.536 s]
[INFO] Thingsboard Server SQS Extension ................... SUCCESS [  3.292 s]
[INFO] Thingsboard Server SNS Extension ................... SUCCESS [  1.418 s]
[INFO] Thingsboard Server Transport Modules ............... SUCCESS [  0.028 s]
[INFO] Thingsboard HTTP Transport ......................... SUCCESS [  0.511 s]
[INFO] Thingsboard COAP Transport ......................... SUCCESS [  1.111 s]
[INFO] Thingsboard MQTT Transport ......................... SUCCESS [  0.711 s]
[INFO] Thingsboard Server UI .............................. FAILURE [02:53 min]
[INFO] Thingsboard Server Tools ........................... SKIPPED
[INFO] ThingsBoard Server Application ..................... SKIPPED

任何帮助都是非常感谢的。

EN

回答 2

Stack Overflow用户

发布于 2019-02-21 17:38:59

我用几个步骤就解决了这个问题

代码语言:javascript
运行
复制
1. Restart System, so that it can close if in use.

 2. Open command prompt with admin previleges

 3. Run mvn clean install -DskipTests

确保你安装了java 8,maven 3.0 +& git。如果问题仍然存在,则从系统中删除node/npm,并重复所有这些点。

票数 2
EN

Stack Overflow用户

发布于 2019-02-12 14:32:37

根据您的日志,很明显您在连接到github.com时遇到了问题。也许是一些暂时的问题。试着重建。如果不是,请尝试清理ui/node_modules文件夹,然后重新构建。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50428701

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档