BUILDING 1005 字节
Newer Older
1
Build Instructions for Apache RocketMQ
L
lollipop 已提交
2 3 4

====================================================

5
(1) Prerequisites
L
lollipop 已提交
6

7
    JDK 1.7+ is required in order to compile and run RocketMQ.
L
lollipop 已提交
8

9 10
    RocketMQ utilizes Maven as a distribution management and packaging tool. Version 3.0.3 or later is required.
    Maven installation and configuration instructions can be found here:
L
lollipop 已提交
11

12
    http://maven.apache.org/run-maven/index.html
L
lollipop 已提交
13 14


15
(2) Run test cases
L
lollipop 已提交
16

17
    Execute the following command in order to compile and run test cases of each components:
L
lollipop 已提交
18

19
    $ mvn test
L
lollipop 已提交
20 21


22
(3) Import projects to Eclipse IDE
L
lollipop 已提交
23

24
    First, generate eclipse project files:
L
lollipop 已提交
25

26
    $ mvn -U eclipse:eclipse
L
lollipop 已提交
27

28
    Then, import to eclipse by specifying the root directory of the project via:
L
lollipop 已提交
29

30
    [File] > [Import] > [Existing Projects into Workspace].
L
lollipop 已提交
31 32


33
(4) Build distribution packages
L
lollipop 已提交
34

35
    Execute the following command in order to build the tar.gz packages and install JAR into local repository:
L
lollipop 已提交
36

37
    $ mvn -Prelease-all -DskipTests clean package install -U