ThingBoard编译问题记录
整体参考
https://blog.csdn.net/onoeono/article/details/125339258
https://blog.csdn.net/devehe/article/details/121386080?spm=1001.2014.3001.5506
https://blog.csdn.net/qq_43751489/article/details/128535214
软件版本(建议下版本一样的)
补充问题:
[ERROR] Failed to execute goal org.thingsboard:gradle-maven-plugin:1.0.11:invoke (default) on project http: org.gradle.tooling.BuildException: Could not execute build using connection to Gradle distribution ‘https://services.gradle.org/distributions/gradle-7.1.1-bin.zip’. -> [Help 1]
原因:网络连接超时导致下载失败
解决方案0:自行解决网络问题,然后重新打包(mvn package)即可
mvn -T 0.8C package -DskipTests
如果尝试多次仍无法解决,参考
解决方案1:手动从https://services.gradle.org/distributions/gradle-7.1.1-bin.zip下载所需依赖,放入Maven本地仓库/org/thingsboard/gradle-maven-plugin/1.0.11/中,重新打包(mvn package)即可
解决方案2:如果方案1仍然报错,说明包不放在这个仓库,可以全局搜一下这个包还放在了什么地方,然后直接把完整的包覆盖掉。这里tb把包下到了Gradle仓库的默认位置,在C:\Users\用户名.gradle(win),例如笔者的包具体放在了C:\Users\Administrator.gradle\wrapper\dists\gradle-7.1.1-bin\f29rtwfnc96ub43tt7p47zsru\gradle-7.1.1-bin.zip