exec-maven-plugin says cannot run specified program, even though it is on the PATH

前端 未结 3 1339
没有蜡笔的小新
没有蜡笔的小新 2021-01-11 14:24

Edit 20140716:

Solution found

tl;dr = exec-maven-plugin does not recognise .cmd files, but only .bat file

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-11 14:42

    I had the same issue with 1.5.0 of the plugin.

    The cause in my case was spaces in my user name resulting in a grunt path: C:\Users\My name with spaces\AppData\Roaming\npm.

    When I moved the contents of the npm directory to a path without spaces, it worked.

提交回复
热议问题