打包Thingsboard遇到以下错误
[ERROR] Failed to execute goal org.thingsboard:gradle-maven-plugin:1.0.10:invoke (default) on project http: org.gradle.tooling.BuildException: Could not execut
e build using Gradle distribution 'https://services.gradle.org/distributions/gradle-6.3-bin.zip'. -> [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 org.thingsboard.transport:http
意思就是下载不到这个包
修改 maven setttings,xml的阿里云镜像源就可以了,遇到不能通过的 我就在这两个写法上切换,最终成功的 那一刻写法就是上面这个了
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<!--
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
-->
看到success了
[INFO] ThingsBoard COAP Transport Microservice ............ SUCCESS [ 0.090 s]
[INFO] ThingsBoard Black Box Tests 3.1.1 .................. SUCCESS [ 0.358 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 09:34 min
[INFO] Finished at: 2021-08-01T23:44:16+08:00
[INFO] ------------------------------------------------------------------------