|
| 1 | +<!-- |
| 2 | + Copyright 2016 Google Inc. All Rights Reserved. |
| 3 | +
|
| 4 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + you may not use this file except in compliance with the License. |
| 6 | + You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | + Unless required by applicable law or agreed to in writing, software |
| 11 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + See the License for the specific language governing permissions and |
| 14 | + limitations under the License. |
| 15 | +--> |
| 16 | +<project> |
| 17 | + <modelVersion>4.0.0</modelVersion> |
| 18 | + <packaging>war</packaging> |
| 19 | + <version>1.0-SNAPSHOT</version> |
| 20 | + |
| 21 | + <groupId>com.example.echo</groupId> |
| 22 | + <artifactId>echo</artifactId> |
| 23 | + |
| 24 | + <parent> |
| 25 | + <artifactId>doc-samples</artifactId> |
| 26 | + <groupId>com.google.cloud</groupId> |
| 27 | + <version>1.0.0</version> |
| 28 | + <relativePath>../../..</relativePath> |
| 29 | + </parent> |
| 30 | + |
| 31 | + <properties> |
| 32 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 33 | + |
| 34 | + <endpoints.project.id>YOUR_PROJECT_ID</endpoints.project.id> |
| 35 | + </properties> |
| 36 | + |
| 37 | + <dependencies> |
| 38 | + <!-- Compile/runtime dependencies --> |
| 39 | + <dependency> |
| 40 | + <groupId>javax.servlet</groupId> |
| 41 | + <artifactId>servlet-api</artifactId> |
| 42 | + <version>2.5</version> |
| 43 | + <scope>provided</scope> |
| 44 | + </dependency> |
| 45 | + <dependency> |
| 46 | + <groupId>com.google.endpoints</groupId> |
| 47 | + <artifactId>endpoints-framework</artifactId> |
| 48 | + <version>2.0.0-beta.7</version> |
| 49 | + </dependency> |
| 50 | + </dependencies> |
| 51 | + |
| 52 | + <build> |
| 53 | + <!-- for hot reload of the web application--> |
| 54 | + <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory> |
| 55 | + <plugins> |
| 56 | + <plugin> |
| 57 | + <groupId>org.codehaus.mojo</groupId> |
| 58 | + <artifactId>versions-maven-plugin</artifactId> |
| 59 | + <version>2.2</version> |
| 60 | + <executions> |
| 61 | + <execution> |
| 62 | + <phase>compile</phase> |
| 63 | + <goals> |
| 64 | + <goal>display-dependency-updates</goal> |
| 65 | + <goal>display-plugin-updates</goal> |
| 66 | + </goals> |
| 67 | + </execution> |
| 68 | + </executions> |
| 69 | + </plugin> |
| 70 | + |
| 71 | + <plugin> |
| 72 | + <groupId>org.apache.maven.plugins</groupId> |
| 73 | + <artifactId>maven-war-plugin</artifactId> |
| 74 | + <version>2.6</version> |
| 75 | + <configuration> |
| 76 | + <webResources> |
| 77 | + <resource> |
| 78 | + <directory>${basedir}/src/main/webapp/WEB-INF</directory> |
| 79 | + <filtering>true</filtering> |
| 80 | + <targetPath>WEB-INF</targetPath> |
| 81 | + </resource> |
| 82 | + </webResources> |
| 83 | + </configuration> |
| 84 | + </plugin> |
| 85 | + |
| 86 | + <plugin> |
| 87 | + <groupId>com.google.appengine</groupId> |
| 88 | + <artifactId>appengine-maven-plugin</artifactId> |
| 89 | + <version>${appengine.sdk.version}</version> |
| 90 | + <configuration> |
| 91 | + <enableJarClasses>false</enableJarClasses> |
| 92 | + <!-- Comment in the below snippet to bind to all IPs instead of just localhost --> |
| 93 | + <!-- address>0.0.0.0</address> |
| 94 | + <port>8080</port --> |
| 95 | + <!-- Comment in the below snippet to enable local debugging with a remove debugger |
| 96 | + like those included with Eclipse or IntelliJ --> |
| 97 | + <!-- jvmFlags> |
| 98 | + <jvmFlag>-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n</jvmFlag> |
| 99 | + </jvmFlags --> |
| 100 | + </configuration> |
| 101 | + </plugin> |
| 102 | + </plugins> |
| 103 | + </build> |
| 104 | +</project> |
0 commit comments