All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yes.tools.build.DeployMojo Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy