@Override
public void execute() throws MojoExecutionException, MojoFailureException {
if (skipTests) {
getLog().info("Hadoop Unit's start goal is skipped");
} else {
HadoopBootstrapRemoteUtils utils = new HadoopBootstrapRemoteUtils(project, session, pluginManager);
hadoopUnitPath = utils.getHadoopUnitPath(hadoopUnitPath, getLog());
getLog().info("is going to modifying hadoop.properties");
editHadoopUnitConfFile();
getLog().info("modifying hadoop.properties done");
Path hadoopLogFilePath = Paths.get(hadoopUnitPath, "wrapper.log");
deleteLogFile(hadoopLogFilePath);
getLog().info("is going to start hadoop unit with executable " + ((exec == null) ? "./hadoop-unit-standalone" : exec));
utils.operateRemoteHadoopUnit(hadoopUnitPath, outputFile, "start", exec);
getLog().info("is going tail log file");
utils.tailLogFileUntilFind(hadoopLogFilePath, "/_/ /_/ \\__,_/ \\__,_/ \\____/\\____/_ .___/ \\____/ /_/ /_//_/ \\__/", getLog());
getLog().info("hadoop unit started");
}
}