org.yes.tools.build.DeployMojo Maven / Gradle / Ivy
package org.yes.tools.build;
import lombok.SneakyThrows;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugin.logging.Log;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.yes.tools.build.bo.DeployBo;
import org.yes.tools.build.handle.DeployHandle;
/**
* @author Co.
* @name DeployMojo
* @date 2023/9/12 19:11
*/
@Mojo(name = "yes-deploy", threadSafe = true)
public class DeployMojo extends DeployBo {
/**
* 日志工具
*/
protected Log log = getLog();
@SneakyThrows
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
DeployHandle deployHandle = new DeployHandle(deploy.mode, deploy.remote, deploy.cloudImage, deploy.project, log);
deployHandle.run();
}
}