Class StartMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(threadSafe=true,
          name="start",
          defaultPhase=PRE_INTEGRATION_TEST)
    public final class StartMojo
    extends org.apache.maven.plugin.AbstractMojo
    Starts DynamoDB Local.
    Since:
    0.1
    • Constructor Detail

      • StartMojo

        public StartMojo()
    • Method Detail

      • run

        public void run​(Instances instances)
                 throws org.apache.maven.plugin.MojoFailureException
        Run custom functionality.
        Parameters:
        instances - Instances to work with
        Throws:
        org.apache.maven.plugin.MojoFailureException - If fails
      • environment

        public void environment()
                         throws org.apache.maven.plugin.MojoFailureException
        Set the project environment. AbstractEnviromentMojo.
        Throws:
        org.apache.maven.plugin.MojoFailureException - If fails
      • distdir

        protected File distdir()
        Location of DynamoDB Local distribution.
        Returns:
        File dist
      • homedir

        protected File homedir()
        Java home directory, where "bin/java" can be executed.
        Returns:
        File home
      • setSkip

        public final void setSkip​(boolean skp)
        Set skip option.
        Parameters:
        skp - Shall we skip execution?
      • execute

        public final void execute()
                           throws org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoFailureException
      • tcpPort

        protected final int tcpPort()
        Get TCP port we're on.
        Returns:
        Port number
      • args

        protected final List<String> args()
        Command line arguments.
        Returns:
        List of arguments