{
MavenEmbedder embedder = new MavenEmbedder();
embedder.setClassLoader(Thread.currentThread()
.getContextClassLoader());
embedder.start();
embedder.execute(reactorProjects, Collections
.singletonList(qualifiedGoal), new DefaultEventMonitor(
new PlexusLoggerAdapter(embedder.getLogger())),
new ConsoleDownloadMonitor(), properties,
((MavenProject) reactorProjects.get(0)).getBasedir());
embedderWorked = true;