Uploaded image for project: 'BuildTools'
  1. BuildTools
  2. BUILDTOOLS-561

Unable to use mvn command with Maven installed in a folder which contains special characters on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • Windows 10 20H2

      Oracle JDK 1.8.0_271

    • git-BuildTools-7fe9375-122
    • Yes

      Steps to reproduce:

      1. Install maven in a folder which contains special characters (whitespaces, parentheses, brackets, etc.).
      2. Run BuildTools in git bash ( java -jar BuildTools.jar )
      3. Then an error will be thrown (https://paste.ubuntu.com/p/KSVy7cXHbR/)

      It can also be reproduced with only using mvn in git bash, but using mvn.cmd will not appear any exceptions.

      A possible way to fix it is to use mvn.cmd instead of using mvn when running on Windows, notice that "sh mvn.cmd" command won't work.

            Unassigned Unassigned
            ZekerZhayard Zeker Zhayard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: