@Override
    public void execute() throws MojoExecutionException, MojoFailureException {
        getLog().info("Updating Connection:" + connection + " for integration " + integrationName + "_" + integrationVersion + " from " + baseUrl);
        checkEnvProperties();
        Connection conn = new Connection(connection, baseUrl, icsUser, icsPassword);
        conn.setLog(getLog());
        String projectDirectory = project.getBasedir().getAbsolutePath();
        try {
            //TODO add copy prop file to /target/config/ with filtering.
            // Update - just copy the one file... for now lets copy them all
            copyConfigFiles(projectDirectory + connectionConfigDir, projectDirectory + "/target/connections");
            conn.setConfigDirectory(projectDirectory + "/target/connections");
            conn.updateConnection();
        } catch (Exception e) {
            e.printStackTrace();
            throw new MojoExecutionException(e.getMessage());
        }
    }
@Override
    public void execute() throws MojoExecutionException, MojoFailureException {
        getLog().info("Updating Connection:" + connection + " for integration " + integrationName + "_" + integrationVersion + " from " + baseUrl);
        checkEnvProperties();
        Connection conn = new Connection(connection, baseUrl, icsUser, icsPassword);
        conn.setLog(getLog());
        String projectDirectory = project.getBasedir().getAbsolutePath();
        try {
           
           
            copyConfigFiles(projectDirectory + connectionConfigDir, projectDirectory + "/target/connections");
            conn.setConfigDirectory(projectDirectory + "/target/connections");
            conn.updateConnection();
        } catch (Exception e) {
            e.printStackTrace();
            throw new MojoExecutionException(e.getMessage());
        }
    }
@override public void execute() throws mojoexecutionexception, mojofailureexception { getlog().info("updating connection:" + connection + " for integration " + integrationname + "_" + integrationversion + " from " + baseurl); checkenvproperties(); connection conn = new connection(connection, baseurl, icsuser, icspassword); conn.setlog(getlog()); string projectdirectory = project.getbasedir().getabsolutepath(); try { copyconfigfiles(projectdirectory + connectionconfigdir, projectdirectory + "/target/connections"); conn.setconfigdirectory(projectdirectory + "/target/connections"); conn.updateconnection(); } catch (exception e) { e.printstacktrace(); throw new mojoexecutionexception(e.getmessage()); } }