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

mvn.cmd fails if directory contains an ampersand (&)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.9
    • 3.5.0-alpha-1, 3.5.0
    • Command Line
    • None

    Description

      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:

      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>
      

      EXEC_DIR and friends aren't quoted and therefore the ampersand toolks for that command.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: