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

mvn.bat renamed to mvn.cmd -> maven-invoker-plugin:run fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.3.1
    • None
    • Bootstrap & Build
    • None
    • Windows 7 64 bit, Java 7

    Description

      steps to reproduce:

      1. git clone https://github.com/takari/maven-polyglot.git
      2. using maven 3.3.1 on WIndows, do a
      mvn clean install
      

      build fails with

      [INFO] --- maven-invoker-plugin:1.5:run (integration-test) @ polyglot-ruby ---
      [INFO] Building: ruby_execute\pom.xml
      [INFO] ..FAILED (0.0 s)
      [INFO]   Maven invocation failed. Error configuring command-line. Reason: Maven executable not found at: C:\tools\apache
      -maven-3.3.1\bin\mvn.bat
      [INFO] Building: use_jruby_installation\pom.xml
      [INFO] ..FAILED (0.0 s)
      [INFO]   Maven invocation failed. Error configuring command-line. Reason: Maven executable not found at: C:\tools\apache
      -maven-3.3.1\bin\mvn.bat
      [INFO] -------------------------------------------------
      [INFO] Build Summary:
      [INFO]   Passed: 0, Failed: 2, Errors: 0, Skipped: 0
      [INFO] -------------------------------------------------
      

      it seems that mvn.bat was renamed to mvn.cmd with maven 3.3.1

      While maven-invoker-plugin could arguably be smarter to locate the mvn script, I think it's best to revert the rename unless there was a specific reason to rename from .bat to .cmd.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jan.sievers Jan Sievers
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: