[ 
https://issues.apache.org/jira/browse/MNG-6346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16334691#comment-16334691
 ] 

Patrik Jetzer commented on MNG-6346:
------------------------------------

I have tested with quoting them but i get the same errormessage.
Quoting does not help at all. The problem must be related with using ) 
character. with a direcory name like C:\mmm(example\pom.xml it works fine.

The problem in my case is due to the fact this is called from the sonar plugin 
on jenkins and there i'm not able to use quotes since the path is populated by 
the plugin internals.

I have now downgraded the maven release running on the environment therefore it 
is not critical in my case.
Regards Patrik

> ... 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
>            Priority: Major
>         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)

Reply via email to