1、概述

2、下载安装

1)JDK 11.0.13
# JAVA_HOME
D:\Program Files\Java\jdk-11.0.13

# CLASSPATH
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar

# Path
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

java -version
2)node(14.15.4)及yarn(1.22.17)
npm install -g yarn
yarn config set registry https://registry.npm.taobao.org -g 
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g

// release-3.4分支:
node版本:v16.14.0  
yarn版本:v1.22.19
3)Maven 3.6.1
# MAVEN_HOME
D:\Program Files\apache-maven-3.6.1-bin

# MAVEN_OPTS
-Xms128m -Xmx1024m

# Path
%MAVEN_HOME%\bin
4)PostgreSQL 12
  • 安装时设置密码:postgres
  • Navicat Premium 15
5) Git 2.30.0
git clone https://github.com/thingsboard/thingsboard.git
git checkout release-3.3

3、配置及编译

  • 查找 pom.xmllicense-maven-plugin,将整个plugin注释掉
  • 修改 ui-ngx/pom.xmlnodeyarn 版本号
  • 修改 Maven 中央仓库设置(D:\Program Files\apache-maven-3.6.1-bin\conf\settings.xml
<mirrors>
    <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>
</mirrors>
  • 编译源码

    mvn clean install -DskipTests

4、数据初始化

  • 创建 thingsboard数据库(Navicat Premium 15或pgAdmin4)
  • 进入编译好的文件: application\target\windows
  • 运行 install_dev_db.bat

5、运行


风晴雪sheep
16 声望5 粉丝