Package org.codehaus.mojo.cassandra
Class StartCassandraMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.cassandra.AbstractCassandraMojo
org.codehaus.mojo.cassandra.AbstractCqlExecMojo
org.codehaus.mojo.cassandra.AbstractCqlLoadMojo
org.codehaus.mojo.cassandra.StartCassandraMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="start",
threadSafe=true,
defaultPhase=PRE_INTEGRATION_TEST)
public class StartCassandraMojo
extends AbstractCqlLoadMojo
Starts a Cassandra instance in the background.
- Author:
- stephenc
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanIftrue, the java options --add-exports and --add-opens will be added to the cassandra start.protected FileThe CassandraUnit dataSet to load.protected intHow long to wait for Cassandra to be started before finishing the goal.Fields inherited from class org.codehaus.mojo.cassandra.AbstractCqlExecMojo
cqlEncoding, useCqlLexerFields inherited from class org.codehaus.mojo.cassandra.AbstractCassandraMojo
addMainClasspath, addTestClasspath, cassandraDir, jmxPort, keyspace, listenAddress, logLevel, maxMemory, nativeTransportPort, project, rpcAddress, rpcPort, session, skip, startNativeTransport, stopKey, stopPort, storagePort, systemPropertyVariablesFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codehaus.mojo.cassandra.AbstractCqlLoadMojo
execCqlFileMethods inherited from class org.codehaus.mojo.cassandra.AbstractCqlExecMojo
executeCql, readFile, splitStatementsUsingCqlLexerMethods inherited from class org.codehaus.mojo.cassandra.AbstractCassandraMojo
createCassandraHome, createCassandraHome, createCassandraJar, createCassandraJar, createEnvironmentVars, getToolchain, newJavaCommandLine, newNodetoolCommandLine, newServiceCommandLine, newServiceCommandLineMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
startWaitSeconds
@Parameter(defaultValue="180") protected int startWaitSecondsHow long to wait for Cassandra to be started before finishing the goal. A value of 0 will wait indefinitely. A value of -1 will not wait at all. -
cuDataSet
The CassandraUnit dataSet to load.- Since:
- 1.2.1-2
-
addJdk11Options
@Parameter(property="cassandra.addJdk11Options", defaultValue="false") protected boolean addJdk11OptionsIftrue, the java options --add-exports and --add-opens will be added to the cassandra start. Which is needed, if cassandra runs with a Java runtime >= 11- Since:
- 3.7
-
-
Constructor Details
-
StartCassandraMojo
public StartCassandraMojo()
-
-
Method Details
-
useJdk11Options
protected boolean useJdk11Options()- Overrides:
useJdk11Optionsin classAbstractCassandraMojo
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-