记录第二次部署ThingsBoard IOT版本3.5.1遇到的问题

环境

                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下的,这个就把数据库导入了

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值