Class StopMojo

  • All Implemented Interfaces:
    ConfigHelper.Customizer, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

    @Mojo(name="stop",
          defaultPhase=POST_INTEGRATION_TEST)
    public class StopMojo
    extends AbstractDockerMojo
    Mojo for stopping containers. If called together with docker:start (i.e. when configured for integration testing in a lifefcycle phase), then only the container started by this goal will be stopped and removed by default (this can be tuned with the system property docker.keepContainer). If this goal is called standalone, then all containers are stopped, for which images has been configured in the pom.xml
    Since:
    26.03.14
    Author:
    roland
    • Field Detail

      • autoCreateCustomNetworks

        @Parameter(property="docker.autoCreateCustomNetworks",
                   defaultValue="false")
        protected boolean autoCreateCustomNetworks
        Whether to create the customs networks (user-defined bridge networks) before starting automatically
      • skip

        @Parameter(property="docker.skip",
                   defaultValue="false")
        protected boolean skip
    • Constructor Detail

      • StopMojo

        public StopMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Description copied from class: AbstractDockerMojo
        Entry point for this plugin. It will set up the helper class and then calls AbstractDockerMojo.executeInternal(ServiceHub) which must be implemented by subclass.
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class AbstractDockerMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException