You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brad Daniels (JIRA)" <ji...@apache.org> on 2016/04/13 21:21:25 UTC

[jira] [Resolved] (MNG-5999) MVN.CMD fails on windows if current directory contains an "&"

     [ https://issues.apache.org/jira/browse/MNG-5999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brad Daniels resolved MNG-5999.
-------------------------------
       Resolution: Duplicate
    Fix Version/s: 3.3.10

I see this was recently fixed as part of commit a035d9026f45518f430dace7ba930835d0d3e85a

> MVN.CMD fails on windows if current directory contains an "&"
> -------------------------------------------------------------
>
>                 Key: MNG-5999
>                 URL: https://issues.apache.org/jira/browse/MNG-5999
>             Project: Maven
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 3.3.9
>            Reporter: Brad Daniels
>            Priority: Minor
>             Fix For: 3.3.10
>
>
> On any version of Windows, copy any valid maven project to a directory whose name contains an ampersand (e.g. "C:\Users\myname\projects & stuff\mavenproject"). CD to the project directory and run "mvn clean install".
> Expected result:
> Build proceeds normally
> Actual result:
> Build fails with output similar to:
> The system cannot find the path specified.
> The system cannot find the path specified.
> The system cannot find the path specified.
> The system cannot find the path specified.
> 'stuff' is not recognized as an internal or external command,
> operable program or batch file.
> The system cannot find the path specified.
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 0.141 s
> [INFO] Finished at: 2016-04-12T01:41:56+00:00
> [INFO] Final Memory: 6M/58M
> [INFO] ------------------------------------------------------------------------
> [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\). Please verify you invoked Maven from the correct direc
> tory. -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
>                                                                               



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)