Skip to content

Commit 6a41be9

Browse files
committed
fix JDK 17 test failures
1 parent 1a02f83 commit 6a41be9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/apache/maven/buildcache/checksum/MavenProjectInput.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ private String getEffectivePom(Model prototype) throws IOException {
341341
// normalize env specifics
342342
final String[] searchList = {baseDirPath.toString(), "\\", "windows", "linux"};
343343
final String[] replacementList = {"", "/", "os.classifier", "os.classifier"};
344-
return replaceEachRepeatedly(output.toString(), searchList, replacementList);
344+
return replaceEachRepeatedly(
345+
output.toString(java.nio.charset.StandardCharsets.UTF_8.name()), searchList, replacementList);
345346
}
346347

347348
private SortedSet<Path> getInputFiles() {

0 commit comments

Comments
 (0)