o updating to use the DuplicateProjectException introduced post

2.0.
  


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@330996 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2005-11-05 13:42:23 +00:00
parent 7e9b4b26ef
commit 9cacd22ae5
1 changed files with 3 additions and 2 deletions

View File

@ -32,6 +32,7 @@ import org.apache.maven.profiles.DefaultProfileManager;
import org.apache.maven.project.MavenProject;
import org.apache.maven.project.MavenProjectBuilder;
import org.apache.maven.project.ProjectBuildingException;
import org.apache.maven.project.DuplicateProjectException;
import org.apache.maven.settings.MavenSettingsBuilder;
import org.apache.maven.settings.Settings;
import org.apache.maven.settings.RuntimeInfo;
@ -380,7 +381,7 @@ public class MavenEmbedder
TransferListener transferListener,
Properties properties,
File executionRootDirectory )
throws CycleDetectedException, LifecycleExecutionException, BuildFailureException
throws CycleDetectedException, LifecycleExecutionException, BuildFailureException, DuplicateProjectException
{
execute( Collections.singletonList( project ), goals, eventMonitor, transferListener, properties, executionRootDirectory );
}
@ -391,7 +392,7 @@ public class MavenEmbedder
TransferListener transferListener,
Properties properties,
File executionRootDirectory )
throws CycleDetectedException, LifecycleExecutionException, BuildFailureException
throws CycleDetectedException, LifecycleExecutionException, BuildFailureException, DuplicateProjectException
{
ReactorManager rm = new ReactorManager( projects );