Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

spring boot with bluemix error: None of the buildpacks detected a compatible application

Steps:

  1. create new project with start.spring.io
  2. run it localy - works
  3. run gradle task jar
  4. push jar to bluemix cf push demoWar.jar

Downloaded app package (20.1M) Staging... None of the buildpacks detected a compatible application Exit status 222 Staging failed: Exited with status 222 Destroying container

FAILED Error restarting application: NoAppDetectedError

TIP: Buildpacks are detected when the "cf push" is executed from within the dire ctory that contains the app source code.

like image 928
Kamil Nękanowicz Avatar asked Dec 11 '22 12:12

Kamil Nękanowicz


1 Answers

Try two things: 1. Use the -p command to target your deployable artifact. This would look something like cf p APP_NAME -p PATH_TO_YOUR_WAR. I usually chain my build and deploy commands so: mvn clean package && cf p APP_NAME -p PATH_TO_YOUR_WAR.

  1. If this doesn't work then you can specify a build pack. So cf p APP_NAME -p PATH_TO_YOUR_WAR -b SOME_BUILDPACK. You can see the available build packs by calling cf buildpacks.

Hope this helps.

like image 129
George Foster Avatar answered Jan 08 '23 07:01

George Foster