Class 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 Detail

      • startWaitSeconds

        @Parameter(defaultValue="180")
        protected int startWaitSeconds
        How 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.
      • addJdk11Options

        @Parameter(property="cassandra.addJdk11Options",
                   defaultValue="false")
        protected boolean addJdk11Options
        If true, 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 Detail

      • StartCassandraMojo

        public StartCassandraMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException