You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/05/14 22:38:12 UTC
[jira] [Created] (MNG-6022) mvn.cmd fails if directory contains an
ampersand (&)
Michael Osipov created MNG-6022:
-----------------------------------
Summary: mvn.cmd fails if directory contains an ampersand (&)
Key: MNG-6022
URL: https://issues.apache.org/jira/browse/MNG-6022
Project: Maven
Issue Type: Bug
Components: Command Line
Affects Versions: 3.3.9
Reporter: Michael Osipov
Checkout a fresh version of MASSEMBLY trunk, run {{mvn clean install -Prun-its}} and see the IT {{projects\basic-features\this & that}}. Go to the {{target}} directory of this IT and run Maven again. It says:
{noformat}
D:\Entwicklung\Projekte\maven-assembly-plugin\target\it\projects\basic-features\this & that>mvn compile
Der Befehl "that" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Das System kann den angegebenen Pfad nicht finden.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.060 s
[INFO] Finished at: 2016-05-15T00:37:27+02:00
[INFO] Final Memory: 6M/241M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\). Please verify you invoked Maven from the correct directory. -> [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
D:\Entwicklung\Projekte\maven-assembly-plugin\target\it\projects\basic-features\this & that>
{noformat}
{{EXEC_DIR}} and friends aren't quoted and therefore the ampersand toolks for {{that}} command.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)