in maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java [447:469]
private String resolveLineSeparator() throws MojoExecutionException {
if (lineSeparator == null) {
return getLineSeparatorFromPom();
}
switch (lineSeparator) {
case "lf":
return "\n";
case "cr":
return "\r";
case "crlf":
return "\r\n";
case "system":
return System.lineSeparator();
case "source":
return getLineSeparatorFromPom();
default:
throw new IllegalArgumentException(String.format(
"Unknown property lineSeparator: '%s'. Use one of"
+ " the following: 'source', 'system', 'lf', 'cr', 'crlf'.",
lineSeparator));
}
}