/hazelcast-cloud-maven-plugin

Maven Plugin for Hazelcast Cloud

Primary LanguageJava

Hazelcast Viridian Maven Plugin

badge

The Hazelcast Viridian Maven Plugin is a Java development tool for testing and deploying cluster-side modules on Serverless clusters.

Before you Begin

Make sure that you have the following:

  • Maven

  • The JAVA_HOME environment variable set to the path of JDK 8, 9, or 11

Usage Example

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

Configuration

Parameter Description Example

clusterName

Cluster name

Find your cluster name in the Hazelcast Viridian console by clicking Connect Client.

pr-1234

apiKey

API key

Generate an API key and secret in the Hazelcast Viridian console.

N/A

apiSecret

API secret

N/A

Goals

Goal Description Example

deploy

Package your Maven project into an executable JAR file and upload that file to the connected Serverless cluster.

mvn clean package hazelcast-cloud:deploy

stream-logs

Stream the latest 1,000 lines of logs from a single member in the connected cluster.

mvn hazelcast-cloud:stream-logs