Tigase服务7.1.5 即时通讯开发-开发环境搭建

一.下载源码

  1.仓库地址  https://github.com/tigase  下载版本7.5.1 , master 8.0需要jdk高版本支持 所以不用了

二.修改maven 配置


alimaven
*,!tigase
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/

使用镜像去掉tiagse 加载 使用项目中

三.导入项目 tigase-server

修改配置仓库为


    
        tigase
        Tigase repository
        http://maven-repo.tigase.org/repository/release
    
    
        tigase-snapshot
        Tigase repository
        http://maven-repo.tigase.org/repository/snapshot
        
            true
        
    

四.手动添加依赖

Tigase服务7.1.5 即时通讯开发-开发环境搭建_第1张图片

pom添加依赖:

		
		
			tigase
			tigase-mongodb
			1.1.0
		


		
		
			tigase
			tigase-muc
			2.4.2-SNAPSHOT
		

		
		
			tigase
			tigase-message-archiving
			1.1.0
		



		
		
			org.mongodb
			mongo-java-driver
			3.6.4
		

 一.修改配置文件 init.properties

config-type=--gen-config-def
[email protected]
--virt-hosts = 192.168.2.149
--debug=server

--comp-name-1=http
--comp-class-1=tigase.http.HttpMessageReceiver

http/setup/admin-credentials=admin:tigase

#数据库资源配置 可用mysql等其他存储  要加入  tigase-mongo 模块
--user-db=tigase.mongodb.MongoRepository
--auth-db=tigase.mongodb.MongoRepository
--user-db-uri=mongodb://127.0.0.1:27017/tigase

 

二.启动项目可以看到: 前提启动本地 mongo

mongodb 创建集合:

Tigase服务7.1.5 即时通讯开发-开发环境搭建_第2张图片

 

 

 

 

 

备注:官方文档地址  https://docs.tigase.net/

 

你可能感兴趣的:(即时通讯,xmpp,java)