Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28373

apache maven 3.3.3 cannot be invoked anymore on windows

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None
    • Jenkins Node running on Windows

      The new apache maven version 3.3.3 has removed the "mvn.bat" file and introduced a new file "mvn.cmd". If we use this version in our maven style builds, we get more or less the following error:

      FATAL: Couldn’t find any executable in D:\current-maven

      I looks like, the Jenkins maven build always calls "mvn.bat" instead of "mvn" only.

      It can be fixed by creating a link with mklink on windows like

      current-maven/bin> mklink mvn.bat mvn.cmd

          [JENKINS-28373] apache maven 3.3.3 cannot be invoked anymore on windows

          Thomas Wabner created issue -
          Thomas Wabner made changes -
          Description Original: The new apache version 3.3.3 has removed the "mvn.bat" file and introduced a new file "mvn.cmd". If we use this version in our maven style builds, we get more or less the following error:

          {{FATAL: Couldn’t find any executable in D:\current-maven}}

          I looks like, the Jenkins maven build always calls "mvn.bat" instead of "mvn" only.

          It can be fixed my creating a link with mklink on windows like

          {{current-maven/bin> mklink mvn.bat mvn.cmd
          }}
          New: The new apache version 3.3.3 has removed the "mvn.bat" file and introduced a new file "mvn.cmd". If we use this version in our maven style builds, we get more or less the following error:

          {{FATAL: Couldn’t find any executable in D:\current-maven}}

          I looks like, the Jenkins maven build always calls "mvn.bat" instead of "mvn" only.

          It can be fixed my creating a link with mklink on windows like

          {{current-maven/bin> mklink mvn.bat mvn.cmd}}
          Thomas Wabner made changes -
          Description Original: The new apache version 3.3.3 has removed the "mvn.bat" file and introduced a new file "mvn.cmd". If we use this version in our maven style builds, we get more or less the following error:

          {{FATAL: Couldn’t find any executable in D:\current-maven}}

          I looks like, the Jenkins maven build always calls "mvn.bat" instead of "mvn" only.

          It can be fixed my creating a link with mklink on windows like

          {{current-maven/bin> mklink mvn.bat mvn.cmd}}
          New: The new apache version 3.3.3 has removed the "mvn.bat" file and introduced a new file "mvn.cmd". If we use this version in our maven style builds, we get more or less the following error:

          {{FATAL: Couldn’t find any executable in D:\current-maven}}

          I looks like, the Jenkins maven build always calls "mvn.bat" instead of "mvn" only.

          It can be fixed by creating a link with {{mklink}} on windows like

          {{current-maven/bin> mklink mvn.bat mvn.cmd}}
          Thomas Wabner made changes -
          Description Original: The new apache version 3.3.3 has removed the "mvn.bat" file and introduced a new file "mvn.cmd". If we use this version in our maven style builds, we get more or less the following error:

          {{FATAL: Couldn’t find any executable in D:\current-maven}}

          I looks like, the Jenkins maven build always calls "mvn.bat" instead of "mvn" only.

          It can be fixed by creating a link with {{mklink}} on windows like

          {{current-maven/bin> mklink mvn.bat mvn.cmd}}
          New: The new apache maven version 3.3.3 has removed the "mvn.bat" file and introduced a new file "mvn.cmd". If we use this version in our maven style builds, we get more or less the following error:

          {{FATAL: Couldn’t find any executable in D:\current-maven}}

          I looks like, the Jenkins maven build always calls "mvn.bat" instead of "mvn" only.

          It can be fixed by creating a link with {{mklink}} on windows like

          {{current-maven/bin> mklink mvn.bat mvn.cmd}}
          Arnaud Héritier made changes -
          Link New: This issue is related to JENKINS-28629 [ JENKINS-28629 ]
          Arnaud Héritier made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: maven-invoker-plugin [ 16822 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 163211 ] New: JNJira + In-Review [ 181136 ]
          Olivier Lamy made changes -
          Assignee Original: Olivier Lamy [ olamy ]

            Unassigned Unassigned
            waffel Thomas Wabner
            Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: