Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6346

... was unexpected at this time when using -f option and path contains brackets

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.5.0, 3.5.2
    • Fix Version/s: 3.6.1
    • Component/s: core
    • Labels:
      None
    • Environment:
      Win10 & Win Server 2012
      jdk1.8.0_151

      Description

      Since maven version 3.50 and later when running a simple command with -f option the command fails reporting:
      "\pom.xml was unexpected at this time."

      command:
      mvn -f C:\mmm(example)\pom.xml clean install

      This must be related to changes in 3.5.x since it works as expected with version 3.3.9
      Removing the brackets from the folder name resolves the issue.

        Attachments

        1. mmm(example).zip
          46 kB
          Patrik Jetzer

          Issue Links

            Activity

              People

              • Assignee:
                slachiewicz Sylwester Lachiewicz
                Reporter:
                patrik.jetzer Patrik Jetzer
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m