GoogleCloudPlatform/endpoints-framework-maven-plugin

Name: endpoints-framework-maven-plugin

Owner: Google Cloud Platform

Description: null

Created: 2016-09-27 23:16:55.0

Updated: 2018-01-22 18:47:42.0

Pushed: 2018-05-04 15:01:53.0

Homepage: null

Size: 143

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

project status image Maven Central

Endpoints Framework Maven plugin

This Maven plugin provides goals and configurations to build Endpoints Framework projects.

Requirements

Maven is required to build the plugin. To download Maven, follow the instructions.

The remaining dependencies are specified in the pom.xml file and should be automatically downloaded when the plugin is built.

How to use

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

gin>
roupId>com.google.cloud.tools</groupId>
rtifactId>endpoints-framework-maven-plugin</artifactId>
ersion>1.0.2</version>
ugin>

All goals are prefixed with endpoints-framework

Server

The plugin exposes the following server side goals

The plugin exposes the following parameters for configuring server side goals

Usage

Make sure your web.xml is configured to expose your endpoints correctly.

No configuration parameters are required to run with default values

compile endpoints-framework:clientLibs
compile endpoints-framework:discoveryDocs
Client

The plugin exposes the following client side goals

The plugin exposes the following parameters for client side goals

Usage

Client consuming endpoints using the client plugin need to configure the location of source discovery documents and for best results configure the generateSrc task in the default generate sources phase.

gin>
roupId>com.google.cloud.tools</groupId>
rtifactId>endpoints-framework-maven-plugin</artifactId>
.
onfiguration>
<discoveryDocs>
  <discoveryDoc>src/endpoints/myApi-v1-rest.discovery</discoveryDoc>
</discoveryDocs>
configuration>

xecutions>
<execution>
  <phase>generate-sources</phase>
  <goals>
    <goal>generateSrc</goal>
  </goals>
</execution>
executions>
ugin>

Users will also need to include the google api client library for their generated source to compile

endency>
roupId>com.google.api-client</groupId>
rtifactId>google-api-client</artifactId>
ersion>xx.yy.zz</version>
pendency>

Running compile should automatically include generated sources from discovery documents

compile

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.