Fork me on GitHub

Plugin Documentation

Goals available for this plugin:

Goal Description
cassandra:cleanup Runs nodetool cleanup on a Cassandra instance.
cassandra:compact Runs nodetool compact on a Cassandra instance.
cassandra:cql-exec Executes cql statements from maven.
cassandra:delete Deletes the Cassandra home directory that we create for running Cassandra.
cassandra:drop Drop the specified ColumnFamilies or, if no arguments are given, the specified Keyspace
cassandra:flush Runs nodetool flush on a Cassandra instance.
cassandra:help Display help information on cassandra-maven-plugin.
Call mvn cassandra:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
cassandra:load Loads a Cassandra CQL script into a Cassandra instance.
cassandra:repair Runs nodetool repair on a Cassandra instance.
cassandra:run Runs Cassandra in the foreground.
cassandra:start Starts a Cassandra instance in the background.
cassandra:start-cluster Starts a Cassandra instance in the background.
cassandra:stop Stops a background Cassandra instance.
cassandra:stop-cluster Stops a background Cassandra instance.
cassandra:truncate Executes the truncate command against the specified keyspace. Currently doing so via StorageProxy as a discussion point.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 3.6.3
JDK 1.8

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>cassandra-maven-plugin</artifactId>
          <version>4.0.0</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cassandra-maven-plugin</artifactId>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"