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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Labels:
    • Environment:

      Windows 10 20H2

      Oracle JDK 1.8.0_271

    • Version:
      git-BuildTools-7fe9375-122
    • Guidelines Read:
      Yes

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: