1

我可以bx dev build在本地成功运行并成功运行我的容器bx dev run

当我执行时bx dev build --debug --trace,我成功完成,并且我的单元测试通过了。但是,在我执行后立即bx dev run得到:

FAILED 在运行 bx dev run 之前需要成功构建项目。在尝试 bx dev 运行之前验证 bx dev 构建是否成功完成

调试版本中似乎有些东西阻碍了我,但它成功完成了。有什么想法吗?下面是我的调试跟踪的尾端(完整跟踪超出了字符限制):

Results :


Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] 

[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ gapstrainingbff ---
[INFO] Building jar: /project/target/gapstrainingbff-1.0-SNAPSHOT.jar
[INFO] 

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

[INFO] 

[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ gapstrainingbff ---

[INFO] Installing /project/target/gapstrainingbff-1.0-SNAPSHOT.jar to /project/.m2/repository/projects/gapstrainingbff/1.0-SNAPSHOT/gapstrainingbff-1.0-SNAPSHOT.jar
[INFO] Installing /project/pom.xml to /project/.m2/repository/projects/gapstrainingbff/1.0-SNAPSHOT/gapstrainingbff-1.0-SNAPSHOT.pom

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

[INFO] BUILD SUCCESS

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

[INFO] Total time: 54.659 s

[INFO] Finished at: 2018-02-22T21:39:29+00:00

[INFO] Final Memory: 19M/31M
[INFO] ------------------------------------------------------------------------

OK
Process time: 57.911463s
Stopping the 'bx-dev-gapstrainingbff-tools' container...
OK
acmartinez@Andreas-MacBook-Air gaps-training-bff $ idt run
FAILED
A successful build of the project is required before running bx dev run. Verify that bx dev build completes successfully before attempting bx dev run

acmartinez@Andreas-MacBook-Air gaps-training-bff $ 
4

1 回答 1

3

当您运行bx dev build --debug时,IDT CLI 构建应用程序以进行调试,以便您可以执行bx dev debug。为了构建您的应用程序release并执行bx dev run,您必须首先在bx dev build没有--debug标志的情况下执行。在这种情况下,命令的顺序很重要。请参阅https://console.bluemix.net/docs/cloudnative/idt/commands.html#run

于 2018-02-23T18:56:06.283 回答