code: private void reportErrors( Collection<RoboconfError> errors ) throws IOException {
  
  		// Add a log entry
  		getLog().info( "Generating a report for validation errors under " + MavenPluginConstants.VALIDATION_RESULT_PATH );
  
  		// Generate the report (file and console too)
  		StringBuilder sb = MavenPluginUtils.formatErrors( errors, getLog());
  
  		// Write the report.
  		// Reporting only makes sense when there is an error or a warning.
  		File targetFile = new File( this.project.getBasedir(), MavenPluginConstants.VALIDATION_RESULT_PATH );
  		Utils.createDirectory( targetFile.getParentFile());
  		Utils.writeStringInto( sb.toString(), targetFile );
  	}
docs: Reports errors (in the logger and in a file).
  @param errors
  @throws IOException