|
| 1 | +<!-- |
| 2 | +Copyright 2019 Google Inc. |
| 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 | + <groupId>com.example.appengine</groupId> |
| 21 | + <artifactId>appengine-gaeinfo-j11</artifactId> |
| 22 | + |
| 23 | + <!-- |
| 24 | + The parent pom defines common style checks and testing strategies for our samples. |
| 25 | + Removing or replacing it should not affect the execution of the samples in anyway. |
| 26 | + --> |
| 27 | + <parent> |
| 28 | + <groupId>com.google.cloud.samples</groupId> |
| 29 | + <artifactId>shared-configuration</artifactId> |
| 30 | + <version>1.0.11</version> |
| 31 | + </parent> |
| 32 | + |
| 33 | + <properties> |
| 34 | + <maven.compiler.target>11</maven.compiler.target> |
| 35 | + <maven.compiler.source>11</maven.compiler.source> |
| 36 | + </properties> |
| 37 | + |
| 38 | + <!-- All dependencies are scoped as provided. |
| 39 | + Dependent-jars are created and added to |
| 40 | + ${project.build.directory}/appengine-staging --> |
| 41 | + <dependencies> |
| 42 | + <!-- Dependency from folder `../appengine-simple-jetty-main` --> |
| 43 | + <!-- See README for instructions for more information --> |
| 44 | + <dependency> |
| 45 | + <groupId>com.google.appengine.demo</groupId> |
| 46 | + <artifactId>simple-jetty-main</artifactId> |
| 47 | + <version>1</version> |
| 48 | + <scope>system</scope> |
| 49 | + <systemPath>${project.basedir}/../appengine-simple-jetty-main/target/simple-jetty-main-1.jar</systemPath> |
| 50 | + </dependency> |
| 51 | + |
| 52 | + <dependency> |
| 53 | + <groupId>javax.servlet</groupId> |
| 54 | + <artifactId>javax.servlet-api</artifactId> |
| 55 | + <version>3.1.0</version> |
| 56 | + <scope>provided</scope> |
| 57 | + </dependency> |
| 58 | + |
| 59 | + <dependency> |
| 60 | + <groupId>com.squareup.okhttp3</groupId> |
| 61 | + <artifactId>okhttp</artifactId> |
| 62 | + <version>3.12.1</version> |
| 63 | + <scope>provided</scope> |
| 64 | + </dependency> |
| 65 | + |
| 66 | + <dependency> |
| 67 | + <groupId>com.google.code.gson</groupId> |
| 68 | + <artifactId>gson</artifactId> |
| 69 | + <version>2.8.5</version> |
| 70 | + <scope>provided</scope> |
| 71 | + </dependency> |
| 72 | + |
| 73 | + <dependency> |
| 74 | + <groupId>org.thymeleaf</groupId> |
| 75 | + <artifactId>thymeleaf</artifactId> |
| 76 | + <version>3.0.11.RELEASE</version> |
| 77 | + <scope>provided</scope> |
| 78 | + </dependency> |
| 79 | + </dependencies> |
| 80 | + |
| 81 | + <build> |
| 82 | + <finalName>gaeinfo</finalName> |
| 83 | + <plugins> |
| 84 | + <plugin> |
| 85 | + <groupId>org.apache.maven.plugins</groupId> |
| 86 | + <artifactId>maven-war-plugin</artifactId> |
| 87 | + <version>3.2.2</version> |
| 88 | + </plugin> |
| 89 | + <plugin> |
| 90 | + <groupId>org.apache.maven.plugins</groupId> |
| 91 | + <artifactId>maven-dependency-plugin</artifactId> |
| 92 | + <version>3.1.1</version> |
| 93 | + <executions> |
| 94 | + <execution> |
| 95 | + <id>copy</id> |
| 96 | + <phase>prepare-package</phase> |
| 97 | + <goals> |
| 98 | + <goal>copy-dependencies</goal> |
| 99 | + </goals> |
| 100 | + <configuration> |
| 101 | + <outputDirectory> |
| 102 | + ${project.build.directory}/appengine-staging |
| 103 | + </outputDirectory> |
| 104 | + </configuration> |
| 105 | + </execution> |
| 106 | + </executions> |
| 107 | + </plugin> |
| 108 | + <plugin> |
| 109 | + <artifactId>maven-resources-plugin</artifactId> |
| 110 | + <version>2.7</version> |
| 111 | + <executions> |
| 112 | + <execution> |
| 113 | + <id>copy-resources</id> |
| 114 | + <phase>install</phase> |
| 115 | + <goals> |
| 116 | + <goal>copy-resources</goal> |
| 117 | + </goals> |
| 118 | + <configuration> |
| 119 | + <outputDirectory>${project.build.directory}/appengine-staging/cprof</outputDirectory> |
| 120 | + </configuration> |
| 121 | + </execution> |
| 122 | + </executions> |
| 123 | + </plugin> |
| 124 | + |
| 125 | + <plugin> |
| 126 | + <groupId>com.google.cloud.tools</groupId> |
| 127 | + <artifactId>appengine-maven-plugin</artifactId> |
| 128 | + <version>2.0.0-rc5</version> |
| 129 | + <configuration> |
| 130 | + <version>gaeinfo</version> |
| 131 | + </configuration> |
| 132 | + </plugin> |
| 133 | + </plugins> |
| 134 | + |
| 135 | + </build> |
| 136 | +</project> |
0 commit comments