Search in sources :

Example 1 with CompoundRuntimeException

use of org.eclipse.tycho.testing.CompoundRuntimeException in project tycho by eclipse.

the class MavenDependencyCollectorTest method getSortedProjects.

private List<MavenProject> getSortedProjects(MavenExecutionRequest request) {
    request.getProjectBuildingRequest().setProcessPlugins(false);
    MavenExecutionResult result = maven.execute(request);
    if (result.hasExceptions()) {
        throw new CompoundRuntimeException(result.getExceptions());
    }
    return result.getTopologicallySortedProjects();
}
Also used : MavenExecutionResult(org.apache.maven.execution.MavenExecutionResult) CompoundRuntimeException(org.eclipse.tycho.testing.CompoundRuntimeException)

Aggregations

MavenExecutionResult (org.apache.maven.execution.MavenExecutionResult)1 CompoundRuntimeException (org.eclipse.tycho.testing.CompoundRuntimeException)1