Step 2: Build the Client
Fork and clone the client from GitHub, and then build the client.
Prerequisites
- Java 11 (see Java SE 11 Archive Downloads)
- Apache Maven (see Installing Apache Maven)
- Fork and then clone the
pub-sub-api
GitHub repository: https://github.com/forcedotcom/pub-sub-api. For more information, see Fork a repository in GitHub Docs. Forking a repository enables you to save your changes in your forked repository. If you want to skip forking the repo, you can just clone the repo, but you can’t save changes that you make in thepub-sub-api
repo. - In a terminal window, go to the
java
folder in your clonedpub-sub-api
folder. - Build the Java client package and generate required sources from the proto file. From the
java
folder, enter:mvn clean install