Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Children Display

Table of Contents

Source

Code Block
$ git clone https://git.apache.org/incubator-distributedlog.git <distributedlog>

Build

DistributedLog uses maven as its build system. Basic commands are listed as below:

  • Build all the components without running tests

    Code Block
    $ mvn clean package -DskipTests
  • Build all the components and run all the tests

    Code Block
    $ mvn clean package
  • Build a single component

    Code Block
    $ mvn clean install -DskipTests // as distributedlog is using shade plugin. shade only run when packaging so pre-install the dependencies.
    $ mvn -pl :<module-name> package [-DskipTests] // example: mvn-pl :distributedlog-core package
  • Test a single class

    Code Block
    $ mvn clean install -DskipTests // as bookkeeper is using shade plugin. shade only run when packaging so pre-install the dependencies.
    $ mvn -pl :<module-name> clean test -Dtest=<test-class-name>