Dev App Server does not support App Engine Flexible Environment applications

appengine-maven-plugin
maven gae
no version defined in appengine-web xml nor version configuration defined in the pom xml
could not determine appengine environment, did you package your application
target runtime app engine standard runtime is not defined
pom xml appengine
no plugin found for prefix 'appengine' in the current project and in the plugin groups
appengine sdk maven

I'm trying to deploy spring boot app to app engine and receiving this error:

org.apache.maven.plugin.MojoExecutionException: Dev App Server does not support App Engine Flexible Environment applications.

Check whether you have put appengine-web.xml file under src/main/webapp/WEB-INF folder.

Unable to run local dev server, MojoExecutionException: Dev App Server does not support App Engine Flexible Environment applications. at com.google.cloud.tools.maven. In the App Engine Flexible Configuration section, select a valid app.yaml file. If you don't see a valid app.yaml file in the drop-down menu, click Edit to select a file. See the Update the App

I had a similar issue, but I found that the problem was related to the way the app was packed. It seems that it is required to be a WAR. For example, you can put the following line in the pom.xml of your app:

<packaging>war</packaging>

But first, make sure you check what @Ajitesh said about the appengine-web.xml file.

For more details, follow these links: issue and possible solution.

Using Apache Maven and the App Engine Plugin, Typically, you do not need to change this value. app.deploy.server. stagingDirectory, Required. The directory to which to stage the application. Default is  Running the local development server. After you create the app.yaml configuration file for your app, you can start the local development server with the dev_appserver.py command to run your app

The message is accurate: App Engine Flexible environment doesn't have a local emulator like Dev App Server currently.

App Engine Maven Plugin Goals and Parameters, Two types of App Engine environments exist: the standard We will start with deployment to the flexible environment. We choose Java 1.8 because this is the supported Java version for the standard environment and our aim is Server, the default configuration for a Spring Boot application will not work. I just converted my App Engine Java based project to a Maven project just so I could migrate from Cloud Endpoints Framework 1.0 to 2.0. After conversion to Maven, when I try to run the local dev server using the command mvn -e appengine:

Create a file under directory "src/main/webapp/WEB-INF/appengine-web.xml" with the content as below

<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
     <version>1</version>
     <threadsafe>true</threadsafe>
     <runtime>java8</runtime>
</appengine-web-app>

Deploy Spring Boot App to GCP App Engine – My Developer Planet, Dev App Server does not support App Engine Flexible Environment applications. appengine-maven-plugin no version defined in appengine-web xml nor  Standard environment uses a custom-designed autoscaling algorithm. Flexible environment uses the Compute Engine Autoscaler. Note that flexible environment does not support all of the autoscaling options that are available to Compute Engine. Developers should test their application behavior under a range of conditions.

Deploy a web app to App Engine flexible environment, With App Engine, there are no servers to maintain. The App Engine flexible environment supports many programming languages, The flexible environment runs your application within Docker containers running on a few dollars, but it could be more if you decide to use more resources or if you leave them running. The Java 8 runtime does not include any web-serving framework. The only requirement is that your app should listen and respond on port 8080. The sample code here shows how you can add your own framework, such as Spring Boot, to the Java 8 runtime.

Deploy Spring Boot App to GCP App Engine, GCP App Engine is a cloud platform where you can quickly deploy your or runtime version which is not supported by the standard environment;; You need to We will start with deployment to a flexible environment. a Jetty Web Server​, the default configuration for a Spring Boot application will not work. Running the local development server. After you create the app.yaml configuration file for your app, you can start the local development server with the dev_appserver.py command to run your app

App Engine, Stay current on App Engine, a fully managed and serverless platform for building App Engine enables developers to stay more productive and agile by supporting Choose to run your applications in a serverless environment without the worry Cooking in Cloud, we add the App Engine flexible environment into the mix. runtime: python env: flex runtime_config: python_version: 3. Now dev_appserver.py app.yaml spits out: Under dev_appserver, runtime:python is not supported for Flexible environment. The problem can be reproduced with Google's Hello World application that uses the flexible environment as well.

Comments
  • Rodrigo, I am checking the RunMojo.java:352 and it looks for a /WEB-INF/appengine-web.xml in the project and if not found, we get this error. Apparently, my project is GAE standard configured, I am just using a parent Maven project and the plugin is included there. Shall we move the plugin declaration into pom.xml-s of each child web modules to have it go? Thanks!