CF 推送 - 系统找不到指定的文件

CF pushing - the system cannot find the file specified

我是第一次使用 cf,试图将一个简单的应用程序部署到 Bluemix。当我尝试 cf push 时,出现此错误:

E:\Program Files\tomcat\apache-tomcat-8.0.41\webapps\helloServletMaven\target
λ cf push /helloServletMaven -p /helloServletMaven.war
Creating app /helloServletMaven in org alexander.kirwan / space ORG as alexander.kirwan@mycit.ie...
OK

Using route helloservletmaven.mybluemix.net
Binding helloservletmaven.mybluemix.net to /helloServletMaven...
OK

FAILED
Error processing app files: GetFileAttributesEx E:\helloServletMaven.war: The system cannot find the file specified.

E:\Program Files\tomcat\apache-tomcat-8.0.41\webapps\helloServletMaven\target
λ ls
classes/  generated-sources/  helloServletMaven/  helloServletMaven.war  m2e-wtp/  maven-archiver/  maven-status/  test-classes/

E:\Program Files\tomcat\apache-tomcat-8.0.41\webapps\helloServletMaven\target

但是如您所见,当我 运行 ls 时,我确实有 war 文件。

为什么会这样?

顺便说一下,我正在使用 Windows 和 CMDER 作为控制台。

您的文件似乎在本地目录中,因此您没有使用 /helloServletMaven.war,即删除斜杠 (/)

cf push helloServletMaven -p helloServletMaven.war