1 Star 0 Fork 48

zxs/JetCache

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Building.txt 1.64 KB
一键复制 编辑 原始数据 按行查看 历史
黄理 提交于 2024-06-02 13:22 . update version update command
0. Unit test in IDE under Windows
==========================================================
Run redis in docker:
docker run --rm -it -p 6379-6381:6379-6381 -p 26379-26381:26379-26381 areyouok/redis-sentinel
It starts 3 sentinel instances (port 16379,16380,16381) and 3 redis servers(port 6379,6380,6381) and can be connected from 127.0.0.1
Then you can run tests in IDE or command line, but all tests which need redis cluster mode will be skipped.
1. Unit test (to run all tests)
==========================================================
1.1 Run redis
At first we run redis server using Docker, under jetcache directory, run:
docker-compose up
This will run 1 redis server with 2 slaves, 3 sentinels, and 6 redis cluster node (3 masters, 3 slaves).
1.2.a Run tests in Linux
mvn clean test
1.2.b Run tests in macOS
docker run -it --rm --network host -v $HOME/.m2:/root/.m2 -v `pwd`:/usr/src/mymaven -w /usr/src/mymaven maven:3.9-eclipse-temurin-17 mvn clean test
1.2.c Run tests in Windows
docker run -it --rm --network host -v /c/Users/hl_20/.m2:/root/.m2 -v /c/Users/hl_20/IdeaProjects/jetcache/jetcache:/usr/src/mymaven -w /usr/src/mymaven maven:3.9-eclipse-temurin-17 mvn clean test
You need change /c/Users/hl_20 and /c/Users/hl_20/IdeaProjects/jetcache/jetcache to your local path.
2. Change pom version
==========================================================
Use this command to change version in all pom file:
mvn versions:set -DnewVersion=x.x.x-SNAPSHOT -DprocessAllModules=true
3. Building your own version
===========================================================
mvn -DskipTests clean install
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/zxs_qz/JetCache.git
git@gitee.com:zxs_qz/JetCache.git
zxs_qz
JetCache
JetCache
master

搜索帮助