// Path: maven-car-deploy-plugin/src/main/java/org/wso2/maven/car/artifact/util/Constants.java
// public static final String CONFIG_OPERATION_DEPLOY = "deploy";
// 
// Path: maven-car-deploy-plugin/src/main/java/org/wso2/maven/car/artifact/util/Constants.java
// public static final String CONFIG_OPERATION_UNDEPLOY = "undeploy";
// 
// Path: maven-car-deploy-plugin/src/main/java/org/wso2/maven/car/artifact/util/Constants.java
// public static final String EI_SERVER = "ei";
// 
// Path: maven-car-deploy-plugin/src/main/java/org/wso2/maven/car/artifact/util/Constants.java
// public static final String MI_SERVER = "mi";


import static org.wso2.maven.car.artifact.util.Constants.CONFIG_OPERATION_DEPLOY;
import static org.wso2.maven.car.artifact.util.Constants.CONFIG_OPERATION_UNDEPLOY;
import static org.wso2.maven.car.artifact.util.Constants.EI_SERVER;
import static org.wso2.maven.car.artifact.util.Constants.MI_SERVER;
import org.apache.maven.artifact.factory.ArtifactFactory;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.artifact.resolver.ArtifactResolver;
import org.apache.maven.model.Plugin;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.project.MavenProject;
import org.apache.maven.project.MavenProjectHelper;
import org.codehaus.plexus.util.xml.Xpp3Dom;
import java.io.File;
import java.util.List;
    }

    @SuppressWarnings("unused")
    private void printParams() {

        if (!carbonServers.isEmpty()) {
            for (CarbonServer server : carbonServers) {
                getLog().info("Server:");
                getLog().info("TSPath=" + server.getTrustStorePath());
                getLog().info("TSPWD=" + server.getTrustStorePassword());
                getLog().info("TSType=" + server.getTrustStoreType());
                getLog().info("Server URL=" + server.getServerUrl());
                getLog().info("Operation=" + server.getOperation());

                if (server.getUserName() == null) {
                    getLog().info("Please enter a valid user name.");
                }
            }
        }
    }

    private void setSystemProperties() {

        System.setProperty("javax.net.ssl.trustStore", trustStorePath);
        System.setProperty("javax.net.ssl.trustStorePassword", trustStorePassword);
        System.setProperty("javax.net.ssl.trustStoreType", trustStoreType);
    }

    private boolean isValidServerType() {

// Path: maven-car-deploy-plugin/src/main/java/org/wso2/maven/car/artifact/util/Constants.java
// public static final String CONFIG_OPERATION_DEPLOY = "deploy";
// 
// Path: maven-car-deploy-plugin/src/main/java/org/wso2/maven/car/artifact/util/Constants.java
// public static final String CONFIG_OPERATION_UNDEPLOY = "undeploy";
// 
// Path: maven-car-deploy-plugin/src/main/java/org/wso2/maven/car/artifact/util/Constants.java
// public static final String EI_SERVER = "ei";
// 
// Path: maven-car-deploy-plugin/src/main/java/org/wso2/maven/car/artifact/util/Constants.java
// public static final String MI_SERVER = "mi";


// Path: maven-car-deploy-plugin/src/main/java/org/wso2/maven/car/artifact/DeployCarMojo.java
import static org.wso2.maven.car.artifact.util.Constants.CONFIG_OPERATION_DEPLOY;
import static org.wso2.maven.car.artifact.util.Constants.CONFIG_OPERATION_UNDEPLOY;
import static org.wso2.maven.car.artifact.util.Constants.EI_SERVER;
import static org.wso2.maven.car.artifact.util.Constants.MI_SERVER;
import org.apache.maven.artifact.factory.ArtifactFactory;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.artifact.resolver.ArtifactResolver;
import org.apache.maven.model.Plugin;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.project.MavenProject;
import org.apache.maven.project.MavenProjectHelper;
import org.codehaus.plexus.util.xml.Xpp3Dom;
import java.io.File;
import java.util.List;

    }

    @SuppressWarnings("unused")
    private void printParams() {

        if (!carbonServers.isEmpty()) {
            for (CarbonServer server : carbonServers) {
                getLog().info("Server:");
                getLog().info("TSPath=" + server.getTrustStorePath());
                getLog().info("TSPWD=" + server.getTrustStorePassword());
                getLog().info("TSType=" + server.getTrustStoreType());
                getLog().info("Server URL=" + server.getServerUrl());
                getLog().info("Operation=" + server.getOperation());

                if (server.getUserName() == null) {
                    getLog().info("Please enter a valid user name.");
                }
            }
        }
    }

    private void setSystemProperties() {

        System.setProperty("javax.net.ssl.trustStore", trustStorePath);
        System.setProperty("javax.net.ssl.trustStorePassword", trustStorePassword);
        System.setProperty("javax.net.ssl.trustStoreType", trustStoreType);
    }

    private boolean isValidServerType() {

        return serverType.equalsIgnoreCase(MI_SERVER) || serverType.equalsIgnoreCase(EI_SERVER);