}
String errorMsg = String.format("there is a snapshot dependency (%s) in %s (%s)", dep, model, pomFilePath);
if (failOnError == Boolean.TRUE) {
logger.warn(errorMsg);
// wrap in a IOException as this one is thrown in the signature
throw new IOException(new MavenExecutionException(errorMsg, model.getPomFile()));
} else {
logger.warn(errorMsg);
}
}
}