| <?xml version="1.0" encoding="UTF-8"?> |
| <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/maven-v4_0_0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| <groupId>com.google.gwt.sample.mobilewebapp</groupId> |
| <artifactId>MobileWebApp</artifactId> |
| <packaging>war</packaging> |
| <version>1.0-SNAPSHOT</version> |
| <name>com.google.gwt.sample.mobilewebapp.MobileWebApp</name> |
| |
| <properties> |
| <!-- Convenience property to set the GWT version --> |
| <gwt.version>HEAD-SNAPSHOT</gwt.version> |
| |
| <!-- Setting maven.compiler.source to something different to 1.8 |
| needs that you configure the sourceLevel in gwt-maven-plugin since |
| GWT 2.8 requires 1.8 (see gwt-maven-plugin block below) --> |
| <maven.compiler.source>1.7</maven.compiler.source> |
| <!-- This is an appengine webapp, so it must generate Java 7 classes |
| https://cloud.google.com/appengine/docs/java/tools/maven#java_requirements --> |
| <maven.compiler.target>1.7</maven.compiler.target> |
| |
| <!-- App Engine properties --> |
| <appengine.version>1.9.40</appengine.version> |
| <appengine.application.version>1</appengine.application.version> |
| |
| <!-- Don't let your Mac use a crazy non-standard encoding --> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| </properties> |
| |
| <!-- App Engine Goals --> |
| <!-- mvn help:describe -Dplugin=appengine --> |
| |
| <!-- Running with Maven --> |
| <!-- mvn clean package --> |
| <!-- mvn appengine:devserver_start - start web server --> |
| <!-- mvn gwt:codeserver - start gwt code server --> |
| <!-- goto http://localhost:8080 --> |
| <!-- mvn appengine:devserver_stop - stop web server --> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>com.google.gwt</groupId> |
| <artifactId>gwt</artifactId> |
| <version>${gwt.version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <dependencies> |
| <!-- GWT --> |
| <dependency> |
| <groupId>com.google.gwt</groupId> |
| <artifactId>gwt-user</artifactId> |
| <!-- "provided" so that we don't deploy --> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.google.gwt</groupId> |
| <artifactId>gwt-dev</artifactId> |
| <!-- "provided" so that we don't deploy --> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.web.bindery</groupId> |
| <artifactId>requestfactory-server</artifactId> |
| </dependency> |
| <!-- Need to run the RF Validation tool. This works on both the command-line |
| and in Eclipse, provided that m2e-apt is installed. --> |
| <dependency> |
| <groupId>com.google.web.bindery</groupId> |
| <artifactId>requestfactory-apt</artifactId> |
| <!-- "provided" so that we don't deploy --> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- RequestFactory will use JSR 303 javax.validation if you let it --> |
| <dependency> |
| <groupId>javax.validation</groupId> |
| <artifactId>validation-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.hibernate</groupId> |
| <artifactId>hibernate-validator</artifactId> |
| <version>4.1.0.Final</version> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.xml.bind</groupId> |
| <artifactId>jaxb-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.xml.bind</groupId> |
| <artifactId>jaxb-impl</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- Required by Hibernate validator because slf4j-log4j is |
| optional in the hibernate-validator POM --> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <version>1.7.12</version> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>1.7.12</version> |
| </dependency> |
| |
| <!-- Google App Engine (GAE) --> |
| <dependency> |
| <groupId>com.google.appengine</groupId> |
| <artifactId>appengine-api-1.0-sdk</artifactId> |
| <version>${appengine.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.appengine</groupId> |
| <artifactId>appengine-testing</artifactId> |
| <version>${appengine.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.google.appengine</groupId> |
| <artifactId>appengine-api-stubs</artifactId> |
| <version>${appengine.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.google.appengine</groupId> |
| <artifactId>appengine-api-labs</artifactId> |
| <version>${appengine.version}</version> |
| </dependency> |
| |
| <!-- Objectify for persistence --> |
| <dependency> |
| <groupId>com.googlecode.objectify</groupId> |
| <artifactId>objectify</artifactId> |
| <version>5.1.13</version> |
| </dependency> |
| <dependency> |
| <groupId>javax.persistence</groupId> |
| <artifactId>persistence-api</artifactId> |
| <version>1.0</version> |
| </dependency> |
| |
| <!-- GIN and Guice for IoC / DI --> |
| <dependency> |
| <groupId>com.google.inject</groupId> |
| <artifactId>guice</artifactId> |
| <version>3.0</version> |
| </dependency> |
| <dependency> |
| <groupId>com.google.gwt.inject</groupId> |
| <artifactId>gin</artifactId> |
| <version>2.1.2</version> |
| </dependency> |
| <!-- Use the JSR 330 injection interfaces--> |
| <dependency> |
| <groupId>javax.inject</groupId> |
| <artifactId>javax.inject</artifactId> |
| <version>1</version> |
| </dependency> |
| |
| <!-- Unit tests --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.12</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <!-- Output classes directly into the webapp, so that IDEs and "mvn process-classes" update them in DevMode --> |
| <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory> |
| |
| <plugins> |
| |
| <!-- GWT Maven Plugin--> |
| <plugin> |
| <groupId>net.ltgt.gwt.maven</groupId> |
| <artifactId>gwt-maven-plugin</artifactId> |
| <version>1.0-rc-6</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>import-sources</goal> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <moduleName>com.google.gwt.sample.mobilewebapp.MobileWebApp</moduleName> |
| <moduleShortName>MobileWebApp</moduleShortName> |
| <failOnError>true</failOnError> |
| <!-- GWT 2.8 requires 1.8, hence define sourceLevel here if you use |
| a different source language for java compilation --> |
| <sourceLevel>1.8</sourceLevel> |
| <!-- Compiler configuration --> |
| <compilerArgs> |
| <!-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) --> |
| <arg>-compileReport</arg> |
| <arg>-XcompilerMetrics</arg> |
| </compilerArgs> |
| <!-- DevMode configuration --> |
| <launcherDir>${project.build.directory}/${project.build.finalName}</launcherDir> |
| <classpathScope>compile+runtime</classpathScope> |
| <!-- URL(s) that should be opened by DevMode (gwt:devmode). --> |
| <startupUrls> |
| <startupUrl>MobileWebApp.html</startupUrl> |
| </startupUrls> |
| </configuration> |
| </plugin> |
| |
| <!-- Google App Engine Plugin --> |
| <!-- appengine:devserver_start - start web server --> |
| <!-- appengine:devserver_stop - stop web server --> |
| <plugin> |
| <groupId>com.google.appengine</groupId> |
| <artifactId>appengine-maven-plugin</artifactId> |
| <version>${appengine.version}</version> |
| <configuration> |
| <version>${appengine.application.version}</version> |
| <enableJarClasses>false</enableJarClasses> |
| <!-- Uncomment the snippet below to bind to all IPs instead of just localhost --> |
| <!-- <address>0.0.0.0</address> <port>8080</port> --> |
| <!-- Uncomment the snippet below to enable local debugging with a remove debugger like those included with Eclipse |
| or IntelliJ --> |
| <!-- <jvmFlags><jvmFlag>-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n</jvmFlag></jvmFlags> --> |
| </configuration> |
| </plugin> |
| |
| </plugins> |
| </build> |
| |
| <repositories> |
| <repository> |
| <id>google-snapshots</id> |
| <url>https://oss.sonatype.org/content/repositories/google-snapshots/</url> |
| <releases> |
| <enabled>false</enabled> |
| </releases> |
| <snapshots> |
| <enabled>true</enabled> |
| </snapshots> |
| </repository> |
| </repositories> |
| </project> |