[
https://issues.apache.org/jira/browse/MNG-6346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16734695#comment-16734695
]
Sylwester Lachiewicz commented on MNG-6346:
-------------------------------------------
To debug the issue set environment variable _MAVEN_BATCH_ECHO=on_
We need to add " around echo statements in mvn.cmd script (lines 118 and 127)
PR:
[https://gitbox.apache.org/repos/asf?p=maven.git;a=commitdiff;h=d2cb7e61d8106409a6d3e4af91d313c06fa97ef3;hp=9c946263facbfa851fb646b3fac62cf1d3302ded]
> ... was unexpected at this time when using -f option and path contains
> brackets
> -------------------------------------------------------------------------------
>
> Key: MNG-6346
> URL: https://issues.apache.org/jira/browse/MNG-6346
> Project: Maven
> Issue Type: Bug
> Components: core
> Affects Versions: 3.5.0, 3.5.2
> Environment: Win10 & Win Server 2012
> jdk1.8.0_151
> Reporter: Patrik Jetzer
> Assignee: Sylwester Lachiewicz
> Priority: Major
> Fix For: 3.6.1
>
> Attachments: mmm(example).zip
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)