Page tree
Skip to end of metadata
Go to start of metadata

Source

$ 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

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

    $ mvn clean package
  • Build a single component

    $ 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

    $ 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>

 

  • No labels