Class MojoHotdeployPlugin

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

    @Mojo(name="hotdeploy",
          defaultPhase=COMPILE,
          requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
          threadSafe=true)
    public class MojoHotdeployPlugin
    extends org.apache.maven.plugin.AbstractMojo
    The Imixs Manik Hotdeploy Plugin can be started by the goal 'hotdeploy' This goal can be used to hotdeploy changed made in a source directory.

    Plugin configuration example:

     		
    	<hotdeployments>
    		<deployment>
    			<source>src/main/webapp</source>
    			<target>docker/deployments/imixs-admin.war</target>
    		</deployment>
    	</hotdeployments>
      
     
    This plugin was inspired by https://github.com/fizzed/maven-plugins/blob/master/watcher/src/main/java/com/fizzed/maven/watcher/RunMojo.java See also: https://docs.oracle.com/javase/tutorial/essential/io/notification.html
    Author:
    rsoika
    • Field Detail

      • SEPARATOR

        public static final String SEPARATOR
      • hotdeployments

        @Parameter(property="hotdeployments",
                   alias="hotdeploy.hotdeployments",
                   required=true)
        protected List<HotDeployment> hotdeployments
    • Constructor Detail

      • MojoHotdeployPlugin

        public MojoHotdeployPlugin()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException