Skip to content

Commit dc9b308

Browse files
committed
Add building.txt
1 parent f9726ee commit dc9b308

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Building.txt

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
1. Unit test
2+
==========================================================
3+
1.1 Run redis
4+
At first we run redis server using Docker, under jetcache directory, run:
5+
6+
docker-compose up
7+
8+
This will run 1 redis server with 2 slaves, 3 sentinels, and 6 redis cluster node (3 masters, 3 slaves).
9+
10+
1.2.a Run tests in Linux
11+
12+
mvn clean test
13+
14+
1.2.b Run tests in Mac
15+
16+
docker run -it --rm --network host -v $HOME/.m2:/root/.m2 -v `pwd`:/usr/src/mymaven -w /usr/src/mymaven maven:3.6.2-jdk-8 mvn clean test
17+
18+
1.2.c Run tests in Windows
19+
20+
docker run -it --rm --network host -v /c/Users/hl_20/.m2:/root/.m2 -v /IdeaProjects/jetcache/jetcache:/usr/src/mymaven -w /usr/src/mymaven maven:3.6.2-jdk-8 mvn clean install
21+
22+
You need change /c/Users/hl_20 and /IdeaProjects/jetcache/jetcache to your local path.
23+
24+
25+
2. Change pom version
26+
==========================================================
27+
Use this command to change version in all pom file:
28+
29+
mvn versions:set -DnewVersion=1.0.0-SNAPSHOT
30+
31+
3. Building your own version
32+
===========================================================
33+
mvn -DskipTests clean install

0 commit comments

Comments
 (0)