Class CopyMojo

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

    @Mojo(name="copy",
          defaultPhase=DEPLOY)
    public class CopyMojo
    extends AbstractCatalogSupport
    Executes a Skopeo copy command, that allows to copy containers from one location to another.
    • Constructor Detail

      • CopyMojo

        public CopyMojo()
    • Method Detail

      • executeInternal

        public void executeInternal​(ServiceHub hub)
                             throws org.apache.maven.plugin.MojoExecutionException
        Description copied from class: AbstractPodmanMojo
        Executes this Mojo internally.
        Specified by:
        executeInternal in class AbstractPodmanMojo
        Parameters:
        hub - A ServiceHub instance providing access to relevant services
        Throws:
        org.apache.maven.plugin.MojoExecutionException - In case anything happens during execution which prevents execution from continuing
      • skipGoal

        protected boolean skipGoal()
        Description copied from class: AbstractPodmanMojo
        Check if the execution of the mojo should be skipped
        Specified by:
        skipGoal in class AbstractPodmanMojo
        Returns:
        whether the mojo should be skipped