Skip to main content

Hazelcast Cloud Maven Plugin

This Maven plugin is a Java development tool for testing and deploying cluster-side modules.

note

This plugin is for Cloud Standard clusters only.

Before you Begin​

Make sure that you have the following:

  • Maven

  • The JAVA_HOME environment variable set to the path of your JDK

    note

    Hazelcast Cloud requires JDK 17 or later.

Usage Example​

xml
<build>
<plugins>
<plugin>
<groupId>com.hazelcast.cloud</groupId>
<artifactId>hazelcast-cloud-maven-plugin</artifactId>
<version>0.2.0</version>
<configuration>
<apiBaseUrl>https://api.cloud.hazelcast.com</apiBaseUrl>
<clusterId>${clusterId}</clusterId>
<apiKey>${apiKey}</apiKey>
<apiSecret>${apiSecret}</apiSecret>
</configuration>
</plugin>
</plugins>
</build>

Configuration​

ParameterDescriptionExample
clusterId

Cluster ID

Find your cluster id in the Cloud console.

a1b2c3d4
apiKey

API key

Generate an API key and secret in the Cloud console.

N/A
apiSecretAPI secretN/A

Goals​

GoalDescriptionExample
deployPackage your Maven project into an executable JAR file and upload that file to the connected cluster.
bash
mvn clean package hazelcast-cloud:deploy
stream-logsStream the latest 1,000 lines of logs from a single member in the connected cluster.
bash
mvn hazelcast-cloud:stream-logs