mirror of https://github.com/apache/maven.git
Compile exceptions.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@769552 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
00316c6362
commit
14b3573e79
|
@ -31,6 +31,7 @@ import org.apache.maven.execution.MavenSession;
|
|||
import org.apache.maven.execution.RuntimeInformation;
|
||||
import org.apache.maven.lifecycle.LifecycleExecutionException;
|
||||
import org.apache.maven.lifecycle.LifecycleExecutor;
|
||||
import org.apache.maven.plugin.MojoExecutionException;
|
||||
import org.apache.maven.plugin.MojoFailureException;
|
||||
import org.apache.maven.project.MavenProject;
|
||||
import org.apache.maven.project.MavenProjectBuilder;
|
||||
|
@ -110,7 +111,12 @@ public class DefaultMaven
|
|||
|
||||
return result;
|
||||
}
|
||||
catch ( MojoExecutionException e )
|
||||
{
|
||||
result.addException( e );
|
||||
|
||||
return result;
|
||||
}
|
||||
result.setTopologicallySortedProjects( session.getReactorManager().getSortedProjects() );
|
||||
|
||||
result.setProject( session.getReactorManager().getTopLevelProject() );
|
||||
|
|
|
@ -577,7 +577,7 @@ public class MavenEmbedder
|
|||
|
||||
int oldThreshold = loggerManager.getThreshold();
|
||||
|
||||
request.setPlugins(lifecycleExecutor.lifecyclePlugins("default", "jar"));
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -585,6 +585,7 @@ public class MavenEmbedder
|
|||
|
||||
try
|
||||
{
|
||||
request.setPlugins(lifecycleExecutor.lifecyclePlugins("jar"));
|
||||
request = populator.populateDefaults( request, configuration );
|
||||
}
|
||||
catch ( MavenEmbedderException e )
|
||||
|
|
Loading…
Reference in New Issue