Class CopyMojo

  • 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="copy",
          defaultPhase=POST_INTEGRATION_TEST)
    public class CopyMojo
    extends AbstractDockerMojo

    Mojo for copying file or directory from container.

    When called with true value of createContainers option, then all images which are configured in the project are iterated. For each image a temporary container is created (but not started) before the copying and is removed after completion of the copying, even if the copying failed.

    When called with false value of createContainers option (default value) and together with docker:start goal, then only the containers started by that goal are examined. Otherwise containers matching images configured in the project are searched and the copying is performed from the found containers only.

    • Constructor Detail

      • CopyMojo

        public CopyMojo()
    • Method Detail

      • getPullRegistry

        protected String getPullRegistry()