@Override public void execute() throws MojoExecutionException, MojoFailureException { if (skipTests) { getLog().info("Hadoop Unit's embedded-start goal is skipped"); } else { HadoopUnitRunnable hadoopUnitRunnable = new HadoopUnitRunnable(components, queue, getLog(), port, repoSession, remoteRepos); Thread thread = new Thread(hadoopUnitRunnable, "hadoop-unit-runner"); thread.start(); try { queue.poll(10, TimeUnit.MINUTES); getLog().info("free starter"); } catch (InterruptedException e) { getLog().error("unable to synchronize startup: " + e.getMessage()); } } } }