pla.launchAndWait(pb, maxExecutionTimeSeconds);
return pla;
}
private static ProcessLauncher rebuildProject(int maxExecutionTimeSeconds) throws InterruptedException {
ProcessBuilder pb = new MavenRebuildProjectCommand(PROJECT_ROOT_DIR, new MavenRunConfiguration()).getProcessBuilder();
ProcessListener pli = getProcessListener();
ProcessLauncherImpl pla = new ProcessLauncherImpl(processMonitor, "rebuild");
pla.addProcessListener(pli);
pla.launchAndWait(pb, maxExecutionTimeSeconds);
return pla;