|
31 | 31 | <properties>
|
32 | 32 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
33 | 33 |
|
| 34 | + <endpoints.framework.version>2.0.0-beta.7</endpoints.framework.version> |
| 35 | + <endpoints.management.version>1.0.0-beta.7</endpoints.management.version> |
| 36 | + |
34 | 37 | <endpoints.project.id>YOUR_PROJECT_ID</endpoints.project.id>
|
35 | 38 | </properties>
|
36 | 39 |
|
|
45 | 48 | <dependency>
|
46 | 49 | <groupId>com.google.endpoints</groupId>
|
47 | 50 | <artifactId>endpoints-framework</artifactId>
|
48 |
| - <version>2.0.0-beta.7</version> |
| 51 | + <version>${endpoints.framework.version}</version> |
| 52 | + </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>com.google.endpoints</groupId> |
| 55 | + <artifactId>endpoints-management-control-appengine</artifactId> |
| 56 | + <version>${endpoints.management.version}</version> |
| 57 | + </dependency> |
| 58 | + <dependency> |
| 59 | + <groupId>com.google.endpoints</groupId> |
| 60 | + <artifactId>endpoints-framework-auth</artifactId> |
| 61 | + <version>${endpoints.management.version}</version> |
49 | 62 | </dependency>
|
50 | 63 | </dependencies>
|
51 | 64 |
|
| 65 | + <profiles> |
| 66 | + <profile> |
| 67 | + <id>GetSwaggerDoc</id> |
| 68 | + <activation> |
| 69 | + <property> |
| 70 | + <name>GetSwaggerDoc</name> |
| 71 | + </property> |
| 72 | + </activation> |
| 73 | + <build> |
| 74 | + <plugins> |
| 75 | + <plugin> |
| 76 | + <groupId>org.codehaus.mojo</groupId> |
| 77 | + <artifactId>exec-maven-plugin</artifactId> |
| 78 | + <version>1.4.0</version> |
| 79 | + <configuration> |
| 80 | + <includePluginDependencies>true</includePluginDependencies> |
| 81 | + <mainClass>com.google.api.server.spi.tools.EndpointsTool</mainClass> |
| 82 | + <arguments> |
| 83 | + <argument>get-swagger-doc</argument> |
| 84 | + <argument>--hostname=${endpoints.project.id}.appspot.com</argument> |
| 85 | + <argument>--war=target/echo-1.0-SNAPSHOT</argument> |
| 86 | + <argument>com.example.echo.Echo</argument> |
| 87 | + </arguments> |
| 88 | + </configuration> |
| 89 | + <dependencies> |
| 90 | + <dependency> |
| 91 | + <groupId>com.google.endpoints</groupId> |
| 92 | + <artifactId>endpoints-framework-tools</artifactId> |
| 93 | + <version>${endpoints.framework.version}</version> |
| 94 | + </dependency> |
| 95 | + <dependency> |
| 96 | + <groupId>com.google.appengine</groupId> |
| 97 | + <artifactId>appengine-api-1.0-sdk</artifactId> |
| 98 | + <version>1.9.30</version> |
| 99 | + </dependency> |
| 100 | + </dependencies> |
| 101 | + </plugin> |
| 102 | + </plugins> |
| 103 | + </build> |
| 104 | + </profile> |
| 105 | + </profiles> |
| 106 | + |
52 | 107 | <build>
|
53 | 108 | <!-- for hot reload of the web application-->
|
54 | 109 | <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
|
|
0 commit comments