Class ContainerInstallMojo

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

    @Mojo(name="install",
          requiresDependencyResolution=COMPILE,
          threadSafe=true)
    public class ContainerInstallMojo
    extends AbstractCargoMojo
    Installs a container into a given directory. If the container is already installed nothing happens. The container is defined using the <container> element as described in the Cargo Maven 3 plugin reference guide.
    • Constructor Detail

      • ContainerInstallMojo

        public ContainerInstallMojo()
    • Method Detail

      • doExecute

        public void doExecute()
                       throws org.apache.maven.plugin.MojoExecutionException
        Executes the plugin.

        This method must be implemented by all Mojos extending this class. The reason for this pattern is because we want the AbstractCargoMojo.execute() method to always be called so that necessary plugin initialization can be performed. Without this pattern Mojos extending this class could "forget" to call super.execute() thus leading to unpredictible results.

        Specified by:
        doExecute in class AbstractCargoMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException - in case of error