// see DefaultMaven
if ( invokerLogContent != null && ( invokerLogContent.indexOf( "Scanning for projects..." ) == -1
|| invokerLogContent.indexOf( OutOfMemoryError.class.getName() ) != -1 ) )
{
throw new MavenInvocationException( ERROR_INIT_VM );
}
throw new MavenInvocationException( "Error when invoking Maven, consult the invoker log file: "
+ invokerLog.getAbsolutePath() );
}
}