diff --git a/src/lib_gui/utility/path_detector/maven_executable/MavenPathDetectorWindows.cpp b/src/lib_gui/utility/path_detector/maven_executable/MavenPathDetectorWindows.cpp index ac8bf996..9da9edf6 100644 --- a/src/lib_gui/utility/path_detector/maven_executable/MavenPathDetectorWindows.cpp +++ b/src/lib_gui/utility/path_detector/maven_executable/MavenPathDetectorWindows.cpp @@ -7,7 +7,9 @@ MavenPathDetectorWindows::MavenPathDetectorWindows(): PathDetector("Maven for Wi std::vector MavenPathDetectorWindows::doGetPaths() const { - FilePath mavenPath(utility::executeProcess(L"cmd", std::vector{L"/c where mvn.cmd && exit"}).second); + FilePath mavenPath( + utility::executeProcess(L"cmd", std::vector {L"\"/c where mvn.cmd && exit\""}) + .second); std::vector paths; if (mavenPath.exists())