GoogleCloudPlatform/app-maven-plugin

Name: app-maven-plugin

Owner: Google Cloud Platform

Description: Maven plugin to build and deploy Google App Engine applications.

Created: 2016-03-17 15:48:48.0

Updated: 2018-05-19 03:43:50.0

Pushed: 2018-05-16 21:33:23.0

Homepage: https://cloud.google.com/appengine/docs/java/tools/maven-reference

Size: 473

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

project status image Build Status Maven Central

Google App Engine Maven plugin

This Maven plugin provides goals to build and deploy Google App Engine applications.

Reference Documentation

App Engine Standard Environment:

App Engine Flexible Environment:

Requirements

Maven is required to build and run the plugin.

You must have Google Cloud SDK installed.

Cloud SDK app-engine-java component is also required. Install it by running:

gcloud components install app-engine-java

Login and configure Cloud SDK:

gcloud init

How to use

In your Maven App Engine Java app, add the following plugin to your pom.xml:

gin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>1.3.2</version>
ugin>

You can now run commands like mvn appengine:deploy in the root folder of your Java application.

Supported goals

Goal | Description — | — appengine:stage|Generates an application directory for deployment. appengine:deploy|Stages and deploys an application to App Engine. appengine:run|Runs the App Engine local development server. (App Engine Standard Only) appengine:start|Starts running the App Engine devserver asynchronously and then returns to the command line. When this goal runs, the behavior is the same as the run goal except that Maven continues processing goals and exits after the server is up and running. (App Engine Standard Only) appengine:stop|Stops a running App Engine web development server. (App Engine Standard Only) appengine:genRepoInfoFile|Generates source context files for use by Stackdriver Debugger. appengine:help|Displays help information on the plugin. Use mvn appengine:help -Ddetail=true -Dgoal=[goal] for detailed goal documentation.

To automatically run the appengine:genRepoInfoFile goal during the Maven build workflow, add the following to your plugin executions section:

gin>
.
xecutions>
<execution>
  <phase>prepare-package</phase>
  <goals>
    <goal>genRepoInfoFile</goal>
    </goals>
</execution>
executions>
.
ugin>

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.