Class DeployMojo

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

    @Mojo(name="deploy",
          defaultPhase=PACKAGE,
          requiresDependencyResolution=RUNTIME,
          threadSafe=true)
    public class DeployMojo
    extends MojoSupport
    Deploy MOJO to deploy an artifact remotely on a running Karaf instance, using ssh or JMX
    • Constructor Detail

      • DeployMojo

        public DeployMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • deployWithJmx

        protected void deployWithJmx​(List<String> locations)
                              throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • deployWithSsh

        protected void deployWithSsh​(List<String> locations)
                              throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException