Class AbstractDeployerMojo

    • Constructor Detail

      • AbstractDeployerMojo

        public AbstractDeployerMojo()
    • 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
        org.apache.maven.plugin.MojoExecutionException - in case of error
      • createDeployer

        protected Deployer createDeployer​(Container container)
                                   throws org.apache.maven.plugin.MojoExecutionException
        Create a deployer.
        container - Container.
        Deployer for container.
        org.apache.maven.plugin.MojoExecutionException - If deployer creation fails.
      • createDeployerFactory

        protected DeployerFactory createDeployerFactory()
        Deployer factory.
      • performDeployerActionOnSingleDeployable

        protected abstract void performDeployerActionOnSingleDeployable​(Deployer deployer,
                                                                        Deployable deployable,
                                                                        DeployableMonitor monitor)
        Perform a deployer action on a single deployable.
        deployer - Deployer.
        deployable - Deployable.
        monitor - Deployable monitor.