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

io.probedock.maven.plugin.glassfish.DeployGlassfishMojo Maven / Gradle / Ivy

package io.probedock.maven.plugin.glassfish;

import io.probedock.maven.plugin.glassfish.macro.AbstractMacro;
import io.probedock.maven.plugin.glassfish.model.Configuration;
import io.probedock.maven.plugin.glassfish.model.DeployConfiguration;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

import io.probedock.maven.plugin.glassfish.macro.DeployMacro;

/**
 * Deploy an application on a Glassfish domain
 *
 * @author Laurent Prevost [email protected]
 */
@Mojo(name = "deploy", defaultPhase = LifecyclePhase.PRE_INTEGRATION_TEST, requiresProject = true)
public class DeployGlassfishMojo extends GlassfishMojo {
	@Parameter(required = true)
	private DeployConfiguration deployConfig;

	@Override
	protected AbstractMacro getMacro() {
		return new DeployMacro(configuration);
	}

	@Override
	protected Configuration buildConfiguration() {
		return new Configuration(getLog(), glassfish, domain, deployConfig);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy