部署到 IBM bluemix java/spring 服务时出现问题

Problem in deploying to IBM bluemix java/spring service

我正在通过 jenkins 将 java spring 引导应用程序作为可部署 war 部署到 IBM bluemix 环境中。我能够在我的本地环境中构建和 运行 服务。在构建管道期间,我得到了这个。有什么想法吗?

Staging app and tracing logs...
   Downloading liberty-for-java...
   Downloaded liberty-for-java
   Cell 26776ec2-6370-4ef1-8987-54aa61d8fe79 creating container for instance 1cc919a5-8e81-4c91-aa64-9b7274d7715d
   Cell 26776ec2-6370-4ef1-8987-54aa61d8fe79 successfully created container for instance 1cc919a5-8e81-4c91-aa64-9b7274d7715d
   Downloading app package...
   Downloaded app package (2.6K)
   -----> Liberty Buildpack Version: v3.44-20200430-1451
   E, [2021-02-22T22:06:45.730075 #22] ERROR -- /tmp/buildpacks/fb2e823ce09e8909e2afd757be3d1971/lib/liberty_buildpack/buildpack.rb:50:in `rescue in drive_buildpack_with_logger': Compile failed with exception #<RuntimeError: No supported application type was detected>
   No supported application type was detected
   Failed to compile droplet: Failed to compile droplet: exit status 1
   Exit status 223
   Cell 26776ec2-6370-4ef1-8987-54aa61d8fe79 stopping instance 1cc919a5-8e81-4c91-aa64-9b7274d7715d
   Cell 26776ec2-6370-4ef1-8987-54aa61d8fe79 destroying container for instance 1cc919a5-8e81-4c91-aa64-9b7274d7715d
Error staging application: App staging failed in the buildpack compile phase
FAILED

该错误基本上意味着 buildpack 没有找到它识别为它支持的应用程序的工件。 liberty 构建包可识别 wars、jar、liberty 服务器目录和打包服务器。

buildpack 将在当前目录或清单中使用 -p CLI 标志或 path 指定的目录中查找工件。

确保您的工件存在于 buildpack 可以找到它的地方。