// No need to filter our search. We want to resolve all artifacts.
dependencyGraphBuilder.buildDependencyGraph( project, null, projects );
}
catch ( DependencyGraphBuilderException e )
{
throw new MavenExecutionException( "Could not resolve dependencies for project: " + project, e );
}
try
{
log.info( "building without reactor projects" );
// resolution without reactor projects, to check that it is not possible at this point
dependencyGraphBuilder.buildDependencyGraph( project, null );
}
catch ( DependencyGraphBuilderException e )
{
log.info( "expected resolution failure: " + e.getMessage() );
try
{
FileUtils.fileWrite( resolved.getAbsolutePath(), e.getMessage() );
}
catch ( IOException ioe )
{
throw new MavenExecutionException( "Could not write " + resolved, ioe );
}
}
}
log.info( "" );