源代码编译ThingsBoard-3.3.2

ThingsBoard-3.3.2项目地址
好的安装文章

一.编译环境

编译环境:JDK11
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

二.编译命令

#初始化,跳过测试
mvn clean install -DskipTests
# 清除maven,并打印日志
mvn clean install -DskipTests -X
不清除maven,打印日志
mvn install -DskipTests -X

三.maven问题

[ERROR] Failed to execute goal org.thingsboard:gradle-maven-plugin:1.0.11:invoke (default) on project http: Execution default of goal org.thingsboard:gradle-maven-plugin
:1.0.11:invoke failed: Plugin org.thingsboard:gradle-maven-plugin:1.0.11 or one of its dependencies could not be resolved: Failure to find org.gradle:gradle-tooling-api:
jar:7.1.1 in https://maven.aliyun.com/repository/public was cached in the local repository, resolution will not be reattempted until the update interval of aliyunmaven h
as elapsed or updates are forced -> [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/PluginResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf org.thingsboard.transport:http

参考文章:Failure to find org.gradle:gradle-tooling-api:jar:6.3
找到对应jar包版本
maven仓库地址
Windows安装,Dfile为jar目录地址

mvn install:install-file -Dfile="C:\Users\10172\Downloads\gradle-tooling-api-7.1.1.jar" -DgroupId=org.gradle -DartifactId=gradle-tooling-api -Dversion=7.1.1 -Dpackaging=jar

在这里插入图片描述
安装成功:
在这里插入图片描述

四.Git问题

在这里插入图片描述

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:yarn (yarn install) on project ui-ngx: Failed to run task: 'yarn install' failed. org.apa
che.commons.exec.ExecuteException: Process exited with an error: 128 (Exit value: 128) -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ui-ngx

参考文章1

查看package.json发现,有三个依赖是从github下载的,格式为git://xxx.git,查资料已经被github禁用,改用https://xxx.git。
在这里插入图片描述

git config --global url."https://".insteadOf git://

参考文章2:Connection refused
参考文章3:git动态代理
参考文章4:Windows系统Git配置教程
在这里插入图片描述

查看git配置

全局级别配置
git config --global -l
系统级别配置
git config --system -l

在这里插入图片描述
在这里插入图片描述

[INFO] fatal: unable to access 'https://github.com/MichaelZinsmaier/CurvedLines.git/': OpenSSL SSL_read: Connection was reset, errno 10054

不检查SSL证书

git config --global http.sslVerify "false"
git config --global https.sslVerify "false"

js-executor

Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.0:npm (npm install) on project js-executor: Failed to run task: 'npm install' failed.

js-executor

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值