[英]bx dev build --debug successfully completes, but can't run bx dev run
I can successfully run bx dev build
and successfully run my container locally with bx dev run
. 我可以成功运行
bx dev build
并使用bx dev run
在本地成功运行我的容器。
When I execute bx dev build --debug --trace
, I get successful completion, and my unit test passed. 当我执行
bx dev build --debug --trace
,我成功完成,并且我的单元测试通过了。 However, immediately after when I execute bx dev run
I get: 但是,在我执行
bx dev run
后立即获得:
FAILED A successful build of the project is required before running bx dev run.
失败在运行bx dev run之前,需要成功构建项目。 Verify that bx dev build completes successfully before attempting bx dev run
在尝试bx dev运行之前,验证bx dev build是否成功完成
There seems to be something in the debug build that is holding me up, but it finishes successful. 调试版本中似乎有些东西阻碍了我,但它完成了成功。 Any thoughts?
有什么想法吗? The tail end of my debug trace below (full trace blows the char limit):
下面我的调试跟踪的尾端(完整跟踪打破了char限制):
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 $
When you run bx dev build --debug
, the IDT CLI builds the application for debugging so that you can execute bx dev debug
. 当您运行
bx dev build --debug
,IDT CLI会构建用于调试的应用程序,以便您可以执行bx dev debug
。 In order to build your application for release
and execute bx dev run
, you must first execute bx dev build
without the --debug
flag. 为了构建
release
和执行bx dev run
应用程序,必须首先执行bx dev build
而不使用--debug
标志。 The order of commands matters in this case. 在这种情况下,命令的顺序很重要。 See https://console.bluemix.net/docs/cloudnative/idt/commands.html#run
请参阅https://console.bluemix.net/docs/cloudnative/idt/commands.html#run
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.