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

com.dkanejs.maven.plugins.docker.compose.DockerComposeUpMojo Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package com.dkanejs.maven.plugins.docker.compose;

import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;

import java.util.ArrayList;
import java.util.List;

/**
 * docker-compose up
 */
@SuppressWarnings("unused")
@Mojo(name = "up", threadSafe = true)
public class DockerComposeUpMojo extends AbstractDockerComposeMojo {

	public void execute() throws MojoExecutionException {

		if ( skip ){
			getLog().info("Skipping execution");
			return;
		}

		List args = new ArrayList<>();
		args.add(Command.UP.getValue());

		if (detachedMode) {
			getLog().info("Running in detached mode");
			args.add("-d");
		}

		args.add("--no-color");

		super.execute(args);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy