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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.9
    • Fix Version/s: 3.5.0-alpha-1, 3.5.0
    • Component/s: Command Line
    • Labels:
      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.

        Issue Links

          Activity

          Hide
          michael-o Michael Osipov added a comment -
          Show
          michael-o Michael Osipov added a comment - Implicitly fixed with 842b07be97fdb7d4f36e167f596eb185f9601169 .
          Hide
          michael-o Michael Osipov added a comment -

          Christian, do you mind if I reassign this to me? I want to consolidate all start script related issues.

          Show
          michael-o Michael Osipov added a comment - Christian, do you mind if I reassign this to me? I want to consolidate all start script related issues.
          Hide
          stephenc Stephen Connolly added a comment -

          Maven 3.4.0 has been dropped. See this thread for more details.

          This issue will need to be re-scheduled for a Maven release in the (hopefully near) future.

          Show
          stephenc Stephen Connolly added a comment - Maven 3.4.0 has been dropped. See this thread for more details. This issue will need to be re-scheduled for a Maven release in the (hopefully near) future.
          Hide
          michael-o Michael Osipov added a comment -
          Show
          michael-o Michael Osipov added a comment - Implicitly fixed with a035d9026f45518f430dace7ba930835d0d3e85a .

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development