addModules( reactorProjects, project, repository );
}
catch ( ProjectBuildingException e )
{
throw new ContinuumReleaseException( "Failed to build project.", e );
}
catch ( ArtifactNotFoundException e )
{
throw new ContinuumReleaseException( "Failed to build project.", e );
}
catch ( ArtifactResolutionException e )
{
throw new ContinuumReleaseException( "Failed to build project.", e );
}
try
{
reactorProjects = new ProjectSorter( reactorProjects ).getSortedProjects();
}
catch ( CycleDetectedException e )
{
throw new ContinuumReleaseException( "Failed to sort projects.", e );
}
catch ( DuplicateProjectException e )
{
throw new ContinuumReleaseException( "Failed to sort projects.", e );
}
return reactorProjects;
}