Cloud foundry JHipster Cloudfoundary抛出“错误上载应用程序”错误

Cloud foundry JHipster Cloudfoundary抛出“错误上载应用程序”错误,cloud-foundry,jhipster,Cloud Foundry,Jhipster,我正在尝试使用Jhipster cloudfoundary命令将我的Jhipster应用程序推送到CloudFoundry。就在流程的末尾,它抛出了一个错误 Error uploading application. GetFileAttributesEx C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\target\*.war: The filename, directory name or volume label syn

我正在尝试使用Jhipster cloudfoundary命令将我的Jhipster应用程序推送到CloudFoundry。就在流程的末尾,它抛出了一个错误

Error uploading application.
GetFileAttributesEx C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\target\*.war: The filename, directory name or volume label syntax is incorrect.
谷歌建议像GetFileAttributesEx这样的东西不喜欢特殊字符。我无法想象我会做什么导致文件名语法错误。我尝试删除目标*.war文件并重新编译,但没有任何帮助。我在Windows 8.1 64上,应用了所有更新

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006>yo jhipster:cloudfoundry
CloudFoundry configuration is starting
? Name to deploy as: modeldr006
? Which profile would you like to use? dev
? What is the name of your database service? cleardb
? What is the name of your database plan? spark

Creating Cloud Foundry deployment files
identical deploy\cloudfoundry\manifest.yml

Checking for an existing Cloud Foundry hosting environment...

Creating your Cloud Foundry hosting environment, this may take a couple minutes...
Creating the database
Creating service modeldr006 in org ModelDrivers / space development as greg.soulsby@ibpartners.co.uk...

OK


Building the application with the development profile
[INFO] Scanning for projects...


[WARNING]

[WARNING] Some problems were encountered while building the effective model for us.modeldrivers.us:modeldr006:war:0.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.hateoas:spring-hateoas:jar -> duplicate declaration of version (?) @ line
318, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]

[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]

[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building modeldr006 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ modeldr006 ---

[INFO]

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ modeldr006 ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] Copying 9 resources

[INFO] Copying 22 resources


[INFO]

[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ modeldr006 ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 115 source files to C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\target\classes

[INFO]

[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ modeldr006 ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.


[INFO] Copying 2 resources


[INFO]

[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ modeldr006 ---

[INFO] Nothing to compile - all classes are up to date

[INFO]
[INFO] --- maven-surefire-plugin:2.15:test (default-test) @ modeldr006 ---

[INFO] Tests are skipped.

[INFO]
[INFO] --- maven-war-plugin:2.4:war (default-war) @ modeldr006 ---

[INFO] Packaging webapp

[INFO] Assembling webapp [modeldr006] in [C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\target\modeldr006-0.0.1-SNAPSHOT]

[INFO] Processing war project

[INFO] Copying webapp resources [C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\src\main\webapp]

[INFO] Webapp assembled in [8576 msecs]

[INFO] Building war: C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\target\modeldr006-0.0.1-SNAPSHOT.war

[INFO]
[INFO] --- spring-boot-maven-plugin:1.1.9.RELEASE:repackage (default) @ modeldr006 ---

[INFO] ------------------------------------------------------------------------

[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------

[INFO] Total time: 30.544 s

[INFO] Finished at: 2014-11-26T18:16:04+00:00

[INFO] Final Memory: 44M/391M

[INFO] ------------------------------------------------------------------------


Pushing the application to Cloud Foundry
Using manifest file ./deploy/cloudfoundry/manifest.yml


Creating app modeldr006 in org ModelDrivers / space development as greg.soulsby@ibpartners.co.uk...

OK


Using route modeldr006.cfapps.io
Binding modeldr006.cfapps.io to modeldr006...

OK

Uploading modeldr006...

FAILED
Error uploading application.
GetFileAttributesEx C:\IBP\03_Product\modelDR\03_Product\01_Jhipster\modeldr006\target\*.war: The filename, directory name or volume label syntax is incorrect.

× { [Error: Command failed: ] killed: false, code: 1, signal: null }

在我看来,失败的一行是cf push-f./deploy/cloudfoundry/manifest.yml-p target/*.war。如果我在从命令行运行时将*替换为应用程序名称,它将正常工作。我认为windows下js exec命令的*有问题。我不明白为什么*会有问题,但因为我没有windows,所以无法测试它。无论如何:我只是使用*因为我不知道您的WAR文件的最终名称,可能您在构建过程中更改了某些内容,并且有多个WAR->我曾经看到过这一点,当然这会导致命令失败。是否可以检查是否有多个.war文件?有modeldr006-0.0.1-SNAPSHOT.war和modeldr006-0.0.1-SNAPSHOT.war.original,因此在Windows 7 SP1上没有dupsTest:按war名称替换*帮助。谢谢!当我的WAR没有在目标目录中成功构建时,我会遇到同样的错误,但听起来这不是你的问题。