Skip to main content

Setup and building

Prerequisites

DependencyDescription
GitThe source code of Pulsar is hosted on GitHub as a git repository. To work with the git repository, please install git. We highly recommend that you also set up a Git mergetool for resolving merge conflicts.
JDKThe source code of Pulsar is primarily written in Java. Therefore, you need a working Java Development Kit (JDK) to build it. It recommended to use SDKMAN to install Corretto OpenJDK 21 and 17, see "Setting up JDKs and Maven using SDKMAN" for details.
MavenThe source code of Pulsar is managed by Apache Maven The recommended Maven version is 3.9.9. It is recommended to use SDKMAN to install Maven, see "Setting up JDKs and Maven using SDKMAN" for details.
ZipThe build process requires Zip as a utility tool.
note

On Windows, replace ./mvnw with mvnw.cmd in the commands below.

note

Pulsar does not support running server on Windows yet, you have to use Docker to run Pulsar. Please consider checking Run Pulsar In Docker

Clone

Clone the source code to your development machine:

git clone https://github.com/apache/pulsar

The following commands are assumed to be executed from the project root directory:

cd pulsar

Build

Compile and install to local Maven repository:

./mvnw clean install -DskipTests

Run

bin/pulsar standalone

Connect

bin/pulsar-shell