|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 3 | + |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + <packaging>war</packaging> |
| 6 | + <version>1.0-SNAPSHOT</version> |
| 7 | + |
| 8 | + <groupId>com.google.appengine.samples.unittest</groupId> |
| 9 | + <artifactId>unittests</artifactId> |
| 10 | + |
| 11 | + <properties> |
| 12 | + <appengine.app.version>1</appengine.app.version> |
| 13 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 14 | + </properties> |
| 15 | + |
| 16 | + <prerequisites> |
| 17 | + <maven>3.1.0</maven> |
| 18 | + </prerequisites> |
| 19 | + |
| 20 | + <dependencies> |
| 21 | + <!-- Compile/runtime dependencies --> |
| 22 | + <dependency> |
| 23 | + <groupId>com.google.appengine</groupId> |
| 24 | + <artifactId>appengine-api-1.0-sdk</artifactId> |
| 25 | + <version>1.9.18</version> |
| 26 | + </dependency> |
| 27 | + <dependency> |
| 28 | + <groupId>javax.servlet</groupId> |
| 29 | + <artifactId>servlet-api</artifactId> |
| 30 | + <version>2.5</version> |
| 31 | + <scope>provided</scope> |
| 32 | + </dependency> |
| 33 | + <dependency> |
| 34 | + <groupId>jstl</groupId> |
| 35 | + <artifactId>jstl</artifactId> |
| 36 | + <version>1.2</version> |
| 37 | + </dependency> |
| 38 | + |
| 39 | + <!-- Test Dependencies --> |
| 40 | + <dependency> |
| 41 | + <groupId>junit</groupId> |
| 42 | + <artifactId>junit</artifactId> |
| 43 | + <version>4.12</version> |
| 44 | + <scope>test</scope> |
| 45 | + </dependency> |
| 46 | + <dependency> |
| 47 | + <groupId>com.google.appengine</groupId> |
| 48 | + <artifactId>appengine-testing</artifactId> |
| 49 | + <version>1.9.18</version> |
| 50 | + <scope>test</scope> |
| 51 | + </dependency> |
| 52 | + <dependency> |
| 53 | + <groupId>com.google.appengine</groupId> |
| 54 | + <artifactId>appengine-api-stubs</artifactId> |
| 55 | + <version>1.9.18</version> |
| 56 | + <scope>test</scope> |
| 57 | + </dependency> |
| 58 | + </dependencies> |
| 59 | + |
| 60 | + <build> |
| 61 | + <!-- for hot reload of the web application--> |
| 62 | + <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory> |
| 63 | + <plugins> |
| 64 | + <plugin> |
| 65 | + <groupId>org.codehaus.mojo</groupId> |
| 66 | + <artifactId>versions-maven-plugin</artifactId> |
| 67 | + <version>2.1</version> |
| 68 | + <executions> |
| 69 | + <execution> |
| 70 | + <phase>compile</phase> |
| 71 | + <goals> |
| 72 | + <goal>display-dependency-updates</goal> |
| 73 | + <goal>display-plugin-updates</goal> |
| 74 | + </goals> |
| 75 | + </execution> |
| 76 | + </executions> |
| 77 | + </plugin> |
| 78 | + <plugin> |
| 79 | + <groupId>org.apache.maven.plugins</groupId> |
| 80 | + <version>3.1</version> |
| 81 | + <artifactId>maven-compiler-plugin</artifactId> |
| 82 | + <configuration> |
| 83 | + <source>1.7</source> |
| 84 | + <target>1.7</target> |
| 85 | + </configuration> |
| 86 | + </plugin> |
| 87 | + <plugin> |
| 88 | + <groupId>org.apache.maven.plugins</groupId> |
| 89 | + <artifactId>maven-war-plugin</artifactId> |
| 90 | + <version>2.4</version> |
| 91 | + <configuration> |
| 92 | + <archiveClasses>true</archiveClasses> |
| 93 | + <webResources> |
| 94 | + <!-- in order to interpolate version from pom into appengine-web.xml --> |
| 95 | + <resource> |
| 96 | + <directory>${basedir}/src/main/webapp/WEB-INF</directory> |
| 97 | + <filtering>true</filtering> |
| 98 | + <targetPath>WEB-INF</targetPath> |
| 99 | + </resource> |
| 100 | + </webResources> |
| 101 | + </configuration> |
| 102 | + </plugin> |
| 103 | + |
| 104 | + <plugin> |
| 105 | + <groupId>com.google.appengine</groupId> |
| 106 | + <artifactId>appengine-maven-plugin</artifactId> |
| 107 | + <version>1.9.18</version> |
| 108 | + <configuration> |
| 109 | + <enableJarClasses>false</enableJarClasses> |
| 110 | + <!-- Comment in the below snippet to bind to all IPs instead of just localhost --> |
| 111 | + <!-- address>0.0.0.0</address> |
| 112 | + <port>8080</port --> |
| 113 | + <!-- Comment in the below snippet to enable local debugging with a remove debugger |
| 114 | + like those included with Eclipse or IntelliJ --> |
| 115 | + <!-- jvmFlags> |
| 116 | + <jvmFlag>-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n</jvmFlag> |
| 117 | + </jvmFlags --> |
| 118 | + </configuration> |
| 119 | + </plugin> |
| 120 | + <plugin> |
| 121 | + <groupId>org.apache.maven.plugins</groupId> |
| 122 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 123 | + <version>2.15</version> |
| 124 | + <executions> |
| 125 | + <execution> |
| 126 | + <id>checkstyle</id> |
| 127 | + <phase>validate</phase> |
| 128 | + <goals> |
| 129 | + <goal>check</goal> |
| 130 | + </goals> |
| 131 | + <configuration> |
| 132 | + <failOnViolation>true</failOnViolation> |
| 133 | + </configuration> |
| 134 | + </execution> |
| 135 | + </executions> |
| 136 | + </plugin> |
| 137 | + </plugins> |
| 138 | + </build> |
| 139 | +</project> |
0 commit comments