[ https://issues.apache.org/jira/browse/MNG-7820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17764415#comment-17764415 ]
ASF GitHub Bot commented on MNG-7820: ------------------------------------- gnodet commented on code in PR #1208: URL: https://github.com/apache/maven/pull/1208#discussion_r1323637084 ########## maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java: ########## @@ -86,9 +86,9 @@ public ToolchainPrivate createToolchain(ToolchainModel model) throws Misconfigur throw new MisconfiguredToolchainException( "Java toolchain without the " + JavaToolchainImpl.KEY_JAVAHOME + " configuration element."); } - File normal = new File(FileUtils.normalize(javahome.getValue())); + File normal = Paths.get(javahome.getValue()).normalize().toFile(); Review Comment: Fixed ########## maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainImpl.java: ########## @@ -53,7 +53,7 @@ public String toString() { } public String findTool(String toolName) { - File toRet = findTool(toolName, new File(FileUtils.normalize(getJavaHome()))); + File toRet = findTool(toolName, Paths.get(getJavaHome()).normalize().toFile()); Review Comment: Fixed > Remove dependency on plexus-utils > --------------------------------- > > Key: MNG-7820 > URL: https://issues.apache.org/jira/browse/MNG-7820 > Project: Maven > Issue Type: Task > Reporter: Guillaume Nodet > Priority: Major > Fix For: 4.0.0-alpha-8 > > -- This message was sent by Atlassian Jira (v8.20.10#820010)