private static String errorMessage(OceanMojo mojo, List<String> configErrors) {
Mojo mojoAnnotation = mojo.getClass().getAnnotation(Mojo.class);
StringBuilder errorMessage = new StringBuilder("One or more required plugin parameters are invalid/missing for '")
.append(mojo.getPrefix()).append(':').append(mojoAnnotation.goal()).append("'\n\n");
for (String error : configErrors) {
errorMessage.append(error).append("\n");
}
return errorMessage.toString();
}