when running gcloud app deploy
on my spring boot app, this error happens in Cloud Build.
There can be one or many issues because of which you get this error. For resolution please check below things -
Your app.yaml
should have entrypoint and runtime information as below -
runtime: java11
entrypoint: java -Xmx64m -jar blahblah.jar
your pom.xml
should have appengine maven plugin dependency
`
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>2.2.0</version>
</plugin>
`
don't modify jar if you want to replace any configs use command -jar uf blahblah.jar filename.yaml
make sure you have packaging as a jar in pom.xml
like this -
<packaging>jar</packaging>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With