Newer Version Available
Step 3: Download and Build the Project
Before you can run the connector examples, download the Java source files and build the
Java project.
Prerequisites:
- Java Development Kit 8 (see Java Downloads)
- Eclipse IDE for Java Developers (get a recent version from http://www.eclipse.org/downloads/eclipse-packages/)
The EMP Connector project includes examples in the GitHub repository’s example folder that use the
connector to log in and subscribe to events. In the next steps, you run the following
examples locally on your system.
To download and build the EMP connector project:
-
To download the project files, do one of the following.
- Clone the EMP-Connector project using
git.
1git clone https://github.com/forcedotcom/EMP-Connector - Download the project zip file from GitHub, and then extract the zip to a local folder.
- Clone the EMP-Connector project using
git.
-
In Eclipse, import the Maven project from the folder where you cloned or extracted the
project.
The dependencies that are specified in the Maven’s pom.xml file, such as CometD, are added in the Java project in Eclipse.
- If the Java project wasn’t automatically built, build it.
Open Source Project
EMP Connector is an open-source project, so you can contribute to it with your own enhancements by submitting pull requests to the repository.