我可以成功运行bx dev build
并用bx dev run
成功运行我的容器。
执行bx dev build --debug --trace
时,我将成功完成,并通过了单位测试。但是,在执行bx dev run
之后,立即得到:
失败 在运行BX DEV运行之前,需要成功的项目构建。在尝试BX DEV RUN
之前,验证BX Dev Build成功完成了
在调试构建中似乎有一些使我振作起来的东西,但它取得了成功。有什么想法吗?下面我的调试跟踪的尾端(完整痕迹吹响了炭极限(:
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 $
运行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