环境
JDK:OpenJDK 11 .0.19
MAVEN: apache-maven-3.8.2
PostgreSQL:postgresql-13.11-1-windows-x64
Node: node-v18.16.0-x64
npm: 9.5.1
yarn: 1.22.19
源码在官网git下来,maven中的配置镜像就设置为:
在我第一次发过的镜像中错误了,就换这两个。
先用第一个全部镜像拉取:
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<mirror>
<id>nexus-public-snapshots</id>
<mirrorOf>public-snapshots</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/repositories/snapshots/</url>
</mirror>
<mirror>
<id>nexus</id>
<name>internal nexus repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>maven-central</id>
<name>central</name>
<url>https://repo1.maven.org/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>uk</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
中间可能遇到错误:我这里是yarn拉取不下来,安装不成功。
在切换摘取第一个镜像设置为:反复拉取我是3.5.1和3.6.1版本都成功了,我试了有七八次左右成功了。
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
装好postgresSQL后要先创建thingboard数据库
在运行thingsboard-3.5.1\application\target\windows下的,这个就把数据库导入了