|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + Copyright 2016 Google Inc. All Rights Reserved. |
| 4 | +
|
| 5 | + Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 6 | + in compliance with the License. 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 distributed under the License |
| 11 | + is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 12 | + or implied. See the License for the specific language governing permissions and limitations under |
| 13 | + the License. |
| 14 | +--> |
| 15 | +<project> |
| 16 | + |
| 17 | + <modelVersion>4.0.0</modelVersion> |
| 18 | + <packaging>war</packaging> |
| 19 | + <version>1.0-SNAPSHOT</version> |
| 20 | + |
| 21 | + <groupId>com.example.helloworld</groupId> |
| 22 | + <artifactId>helloworld</artifactId> |
| 23 | + |
| 24 | + <parent> |
| 25 | + <groupId>com.google.cloud</groupId> |
| 26 | + <artifactId>appengine-doc-samples</artifactId> |
| 27 | + <version>1.0.0</version> |
| 28 | + <relativePath>..</relativePath> |
| 29 | + </parent> |
| 30 | + |
| 31 | + <properties> |
| 32 | + <appengine.app.version>1</appengine.app.version> |
| 33 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 34 | + |
| 35 | + <appengine.plugin.version>1.9.56</appengine.plugin.version> |
| 36 | + <maven.compiler.source>1.7</maven.compiler.source> |
| 37 | + <maven.compiler.target>1.7</maven.compiler.target> |
| 38 | + </properties> |
| 39 | + |
| 40 | + <prerequisites> |
| 41 | + <maven>3.1.0</maven> |
| 42 | + </prerequisites> |
| 43 | + |
| 44 | + <dependencies> |
| 45 | + <!-- Compile/runtime dependencies --> |
| 46 | + <dependency> |
| 47 | + <groupId>com.google.appengine</groupId> |
| 48 | + <artifactId>appengine-api-1.0-sdk</artifactId> |
| 49 | + <version>${appengine.plugin.version}</version> |
| 50 | + </dependency> |
| 51 | + <dependency> |
| 52 | + <groupId>com.google.appengine</groupId> |
| 53 | + <artifactId>appengine-endpoints</artifactId> |
| 54 | + <version>${appengine.plugin.version}</version> |
| 55 | + </dependency> |
| 56 | + <dependency> |
| 57 | + <groupId>javax.servlet</groupId> |
| 58 | + <artifactId>servlet-api</artifactId> |
| 59 | + <version>2.5</version> |
| 60 | + <scope>provided</scope> |
| 61 | + </dependency> |
| 62 | + <dependency> |
| 63 | + <groupId>javax.inject</groupId> |
| 64 | + <artifactId>javax.inject</artifactId> |
| 65 | + <version>1</version> |
| 66 | + </dependency> |
| 67 | + |
| 68 | + <!-- Test Dependencies --> |
| 69 | + <dependency> |
| 70 | + <groupId>junit</groupId> |
| 71 | + <artifactId>junit</artifactId> |
| 72 | + <version>4.11</version> |
| 73 | + <scope>test</scope> |
| 74 | + </dependency> |
| 75 | + <dependency> |
| 76 | + <groupId>org.mockito</groupId> |
| 77 | + <artifactId>mockito-all</artifactId> |
| 78 | + <version>1.9.5</version> |
| 79 | + <scope>test</scope> |
| 80 | + </dependency> |
| 81 | + <dependency> |
| 82 | + <groupId>com.google.appengine</groupId> |
| 83 | + <artifactId>appengine-testing</artifactId> |
| 84 | + <version>${appengine.plugin.version}</version> |
| 85 | + <scope>test</scope> |
| 86 | + </dependency> |
| 87 | + <dependency> |
| 88 | + <groupId>com.google.appengine</groupId> |
| 89 | + <artifactId>appengine-api-stubs</artifactId> |
| 90 | + <version>${appengine.plugin.version}</version> |
| 91 | + <scope>test</scope> |
| 92 | + </dependency> |
| 93 | + </dependencies> |
| 94 | + |
| 95 | + <build> |
| 96 | + <!-- for hot reload of the web application--> |
| 97 | + <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory> |
| 98 | + <plugins> |
| 99 | + <plugin> |
| 100 | + <groupId>org.codehaus.mojo</groupId> |
| 101 | + <artifactId>versions-maven-plugin</artifactId> |
| 102 | + <version>2.2</version> |
| 103 | + <executions> |
| 104 | + <execution> |
| 105 | + <phase>compile</phase> |
| 106 | + <goals> |
| 107 | + <goal>display-dependency-updates</goal> |
| 108 | + <goal>display-plugin-updates</goal> |
| 109 | + </goals> |
| 110 | + </execution> |
| 111 | + </executions> |
| 112 | + </plugin> |
| 113 | + |
| 114 | + <plugin> |
| 115 | + <groupId>org.apache.maven.plugins</groupId> |
| 116 | + <artifactId>maven-war-plugin</artifactId> |
| 117 | + <version>2.6</version> |
| 118 | + <configuration> |
| 119 | + <webXml>${project.build.directory}/generated-sources/appengine-endpoints/WEB-INF/web.xml</webXml> |
| 120 | + <webResources> |
| 121 | + <resource> |
| 122 | + <!-- this is relative to the pom.xml directory --> |
| 123 | + <directory>${project.build.directory}/generated-sources/appengine-endpoints</directory> |
| 124 | + <!-- the list has a default value of ** --> |
| 125 | + <includes> |
| 126 | + <include>WEB-INF/*.discovery</include> |
| 127 | + <include>WEB-INF/*.api</include> |
| 128 | + </includes> |
| 129 | + </resource> |
| 130 | + </webResources> |
| 131 | + </configuration> |
| 132 | + </plugin> |
| 133 | + |
| 134 | + <plugin> |
| 135 | + <groupId>com.google.appengine</groupId> |
| 136 | + <artifactId>appengine-maven-plugin</artifactId> |
| 137 | + <version>${appengine.plugin.version}</version> |
| 138 | + <configuration> |
| 139 | + <enableJarClasses>false</enableJarClasses> |
| 140 | + <!-- Comment in the below snippet to bind to all IPs instead of just localhost --> |
| 141 | + <!-- address>0.0.0.0</address> |
| 142 | + <port>8080</port --> |
| 143 | + <!-- Comment in the below snippet to enable local debugging with a remove debugger |
| 144 | + like those included with Eclipse or IntelliJ --> |
| 145 | + <!-- jvmFlags> |
| 146 | + <jvmFlag>-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n</jvmFlag> |
| 147 | + </jvmFlags --> |
| 148 | + </configuration> |
| 149 | + <executions> |
| 150 | + <execution> |
| 151 | + <goals> |
| 152 | + <goal>endpoints_get_discovery_doc</goal> |
| 153 | + </goals> |
| 154 | + </execution> |
| 155 | + </executions> |
| 156 | + </plugin> |
| 157 | + </plugins> |
| 158 | + </build> |
| 159 | + |
| 160 | +</project> |
0 commit comments