简体   繁体   English

bx dev build --debug成功完成,但无法运行bx dev run

[英]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.

相关问题 IBM Cloud Developer Tool:导致错误的idt构建/ bx开发构建(OCI运行时执行失败…) - IBM Cloud Developer Tool: idt build/bx dev build causing error (OCI runtime exec failed …) 无法使用bx插件回购 - Can't use bx plugin repo-add bx cr push 命令失败 - bx cr push command fails 我如何在Watson Machine Learning中使用bx ml生成清单库 - How can I use the bx ml generate-manifest libraries in watson machine learning 如何使用Dockerfile在Docker中安装IBM Cloud(AKA Bluemix)BX - How can I install IBM Cloud (AKA Bluemix) BX in a Docker using a Dockerfile bx cs位置不显示基于区域的位置 - bx cs locations not displaying location based on region 无法在Bluemix Build&Deploy Pipeline中运行单元测试,因为服务器无法连接到ClearDB MySQL - Can't run unit tests in Bluemix Build & Deploy Pipeline because the servers can't connect to ClearDB MySQL 获得-bash:/ usr / local / Bluemix / bx / bash_autocomplete:没有这样的文件或目录错误 - Getting -bash: /usr/local/Bluemix/bx/bash_autocomplete: No such file or directory error Maven构建在Bluemix dev ops管道上失败,但在本地传递 - Maven build fails on Bluemix dev ops pipeline but passes locally 如何仅使用“ bx服务”或类似操作列出Watson IoT Platform服务 - How do I list only Watson IoT Platform services using 'bx service' or similar operations
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM