我有一個包含大量測試用例的項目,我使用Maven surefire插件2.13進行編譯。當我設置了forkmode = none
一切工作正常,但是當我省略項,默認forkmode
成爲once
和我的項目失敗:Maven Surefire 2.13無法在Windows上分叉
Forking command line: cmd.exe /X /C ""C:\Program Files\Java\jdk1.6.0_37\jre\bin\java" -jar G:\Gottware-server\core\math\target\surefire\surefirebooter
7758025909061587587.jar G:\Gottware-server\core\math\target\surefire\surefire8735550212668630533tmp G:\Gottware-server\core\math\target\surefire\suref
ire_08386349728753606434tmp"
The system cannot find the path specified.
它看起來就像是一個操作系統的問題,我使用的是Windows 7,什麼都可以出錯了? IT的好奇也succesfull建立後,我得到了同樣的錯誤:
[INFO] -----------------------------------------------
[INFO] BUILD SUCCESS
[INFO] -----------------------------------------------
[INFO] Total time: 15.504s
[INFO] Finished at: Fri Mar 08 15:08:54 CET 2013
[INFO] Final Memory: 13M/353M
[INFO] -----------------------------------------------
The system cannot find the path specified.
其實我已經調試我的我的mvn.bat
cmd /C exit /B %ERROR_CODE%
的行家的最後一行,這根本不工作了返回:
The system cannot find the path specified.
我還去了在debuggining:
U:\>cmd.exe
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
The system cannot find the path specified.
顯示您的文件? – khmarbaise 2013-03-13 16:47:09
這個問題並不像與Maven做的,而是用我的電腦設置... – Edmondo1984 2013-03-13 17:08:52
U:\> CMD.EXE 的Microsoft Windows [版本6.1.7601] 版權所有(C)2009年微軟公司。版權所有。 系統找不到指定的路徑。 – Edmondo1984 2013-03-14 17:57:37