Class AbstractStartStopMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    StartMojo, StopMojo

    public abstract class AbstractStartStopMojo
    extends org.apache.maven.plugin.AbstractMojo
    • Field Detail

      • skipLaunchpad

        @Parameter(property="maven.test.skip",
                   defaultValue="false")
        protected boolean skipLaunchpad
        Set this to "true" to skip starting the launchpad
      • servers

        @Parameter
        protected List<ServerConfiguration> servers
        Parameter containing the list of server configurations
      • systemPropertiesFile

        @Parameter(defaultValue="${project.build.directory}/launchpad-runner.properties")
        protected File systemPropertiesFile
        The system properties file will contain all started instances with their ports etc.
      • shouldBlockUntilKeyIsPressed

        @Parameter
        protected boolean shouldBlockUntilKeyIsPressed
        If true this mojo blocks until you press the Enter key.
    • Constructor Detail

      • AbstractStartStopMojo

        public AbstractStartStopMojo()
    • Method Detail

      • doExecute

        protected abstract void doExecute()
                                   throws org.apache.maven.plugin.MojoExecutionException,
                                          org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • 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
      • blockIfNecessary

        protected void blockIfNecessary()
                                 throws org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoFailureException