Building Java Projects with Maven

Apache Maven is a software management tool that can be used to build, install, and distribute Java-based projects. You can build Java-based projects with the Solace Java RTO API.

For the Solace Java RTO API, you can obtain the artifacts from Maven Central.

To build a project with Maven that requires the Solace Java RTO API, the following artifacts are provided when you add the required dependency to your pom.xml. For an example, see Solace Java RTO API.

  • solclientj-common-10.x.x.jar
  • solclientj-native-common-10.x.x.jar

Obtaining Artifacts from Maven Central

The Solace Java RTO API can be retrieved using Maven (pom.xml) or Gradle (build.gradle).

For example, using Maven:

<dependencies>
  <dependency>
    <groupId>com.solacesystems</groupId>
    <artifactId>solclientj</artifactId>
    <version>10.9.0</version>
    <type>pom</type>
  </dependency>
</dependencies>

Using Gradle:

...
...
dependencies {
//Solace Messaging API Dependencies
implementation group: 'com.solacesystems', name: 'solclientj', version: '10.9.0'
...
}