在執行時「進行測試,」我使用的Spring Roo的STS,當我運行命令「進行測試,」我收到以下錯誤:錯誤袋鼠
Cannot run program "mvn.bat" (in directory "C:\SS workspace\hello"): CreateProcess error=2, The system cannot find the file specified
有誰知道出了什麼問題?我已經正確安裝Maven和PATH環境設置爲MAVEN_HOME/bin中
在執行時「進行測試,」我使用的Spring Roo的STS,當我運行命令「進行測試,」我收到以下錯誤:錯誤袋鼠
Cannot run program "mvn.bat" (in directory "C:\SS workspace\hello"): CreateProcess error=2, The system cannot find the file specified
有誰知道出了什麼問題?我已經正確安裝Maven和PATH環境設置爲MAVEN_HOME/bin中
我的猜測是,它扼流圈在當前目錄下的空白字符(儘管它不應該)
Known bug.而是使用「運行方式> JUnit測試'命令
STS provides via the 'Run As > JUnit Test' a more visual interface which I prefer, but some may still prefer the "Roo Shell"
如果你在Windows 7 64位機器上,檢查你的mavan是否在路上。省略MAVAN_HOME並嘗試添加完整路徑。
嘗試更改STS maven設置並重新啓動您的機器。 – 2011-11-26 09:58:55