Monday, March 12, 2018

Re: GWT with App Engine (standard) and maven?

This is the pom.xml that I've got so far:

<?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/xsd/maven-4.0.0.xsd">


 
<modelVersion>4.0.0</modelVersion>


 
<parent>
 
<artifactId>xxx-appengine</artifactId>
 
<groupId>com.floreysoft.xxx</groupId>
 
<version>0.0.1-SNAPSHOT</version>
 
</parent>
 
<packaging>gwt-app</packaging>
 
<version>0.0.1-SNAPSHOT</version>


 
<groupId>com.floreysoft.xxx</groupId>
 
<artifactId>xxx-frontend</artifactId>


 
<properties>
 
<!-- uncomment if you wish to set your project here project- gcloud is
 used otherwise -->

 
<!-- <app.deploy.project>xxx-dev</app.deploy.project> -->
 
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
 
<maven.compiler.source>1.8</maven.compiler.source>
 
<maven.compiler.target>1.8</maven.compiler.target>
 
<maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
 
<archiveClasses>true</archiveClasses>
 
</properties>


 
<prerequisites>
 
<maven>3.5</maven>
 
</prerequisites>
 
<dependencyManagement>
 
<dependencies>
 
<dependency>
 
<groupId>com.google.gwt</groupId>
 
<artifactId>gwt</artifactId>
 
<version>2.8.2</version>
 
<type>pom</type>
 
<scope>import</scope>
 
</dependency>
 
</dependencies>
 
</dependencyManagement>
 
<dependencies>
 
<!-- GWT dependencies -->
 
<dependency>
 
<groupId>com.google.gwt</groupId>
 
<artifactId>gwt-user</artifactId>
 
</dependency>
 
<dependency>
 
<groupId>com.google.gwt</groupId>
 
<artifactId>gwt-dev</artifactId>
 
</dependency>
 
 
<!-- Compile/runtime dependencies -->
 
<dependency>
 
<groupId>com.google.appengine</groupId>
 
<artifactId>appengine-api-1.0-sdk</artifactId>
 
<version>1.9.63</version>
 
</dependency>
 
<dependency>
 
<groupId>javax.servlet</groupId>
 
<artifactId>javax.servlet-api</artifactId>
 
<version>3.1.0</version>
 
<type>jar</type>
 
<scope>provided</scope>
 
</dependency>


 
<!-- Test Dependencies -->
 
<dependency>
 
<groupId>com.google.appengine</groupId>
 
<artifactId>appengine-testing</artifactId>
 
<version>1.9.63</version>
 
<scope>test</scope>
 
</dependency>
 
<dependency>
 
<groupId>com.google.appengine</groupId>
 
<artifactId>appengine-api-stubs</artifactId>
 
<version>1.9.63</version>
 
<scope>test</scope>
 
</dependency>


 
<dependency>
 
<groupId>com.google.appengine</groupId>
 
<artifactId>appengine-tools-sdk</artifactId>
 
<version>1.9.63</version>
 
<scope>test</scope>
 
</dependency>


 
<dependency>
 
<groupId>com.google.truth</groupId>
 
<artifactId>truth</artifactId>
 
<version>0.33</version>
 
<scope>test</scope>
 
</dependency>


 
<dependency>
 
<groupId>junit</groupId>
 
<artifactId>junit</artifactId>
 
<version>4.12</version>
 
<scope>test</scope>
 
</dependency>
 
<dependency>
 
<groupId>org.mockito</groupId>
 
<artifactId>mockito-all</artifactId>
 
<version>1.10.19</version>
 
<scope>test</scope>
 
</dependency>
 
</dependencies>


 
<build>
 
<!-- for hot reload of the web application -->
 
<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
 
<plugins>
 
<plugin>
 
<groupId>net.ltgt.gwt.maven</groupId>
 
<artifactId>gwt-maven-plugin</artifactId>
 
<version>1.0-rc-9</version>
 
<extensions>true</extensions>
 
<configuration>
 
<moduleName>com.floreysoft.xxx.xxx</moduleName>
 
</configuration>
 
</plugin>
 
<plugin>
 
<groupId>com.google.cloud.tools</groupId>
 
<artifactId>appengine-maven-plugin</artifactId>
 
<version>1.3.1</version>
 
<configuration></configuration>
 
</plugin>


 
<plugin>
 
<groupId>org.codehaus.mojo</groupId>
 
<artifactId>versions-maven-plugin</artifactId>
 
<version>2.3</version>
 
<executions>
 
<execution>
 
<phase>compile</phase>
 
<goals>
 
<goal>display-dependency-updates</goal>
 
<goal>display-plugin-updates</goal>
 
</goals>
 
</execution>
 
</executions>
 
<configuration>
 
<excludes>
 
<exclude>javax.servlet:javax.servlet-api</exclude>
 
<exclude>com.google.guava:guava</exclude> <!-- avoid android version -->
 
</excludes>
 
</configuration>
 
</plugin>


 
<plugin>
 
<artifactId>maven-war-plugin</artifactId>
 
<version>3.1.0</version>
 
</plugin>


 
<plugin>
 
<artifactId>maven-compiler-plugin</artifactId>
 
<version>3.6.1</version>
 
</plugin>


 
<plugin>
 
<artifactId>maven-clean-plugin</artifactId>
 
<version>3.0.0</version>
 
</plugin>


 
<plugin>
 
<artifactId>maven-install-plugin</artifactId>
 
<version>2.5.2</version>
 
</plugin>


 
<plugin>
 
<artifactId>maven-surefire-plugin</artifactId>
 
<version>2.20</version>
 
</plugin>


 
<plugin>
 
<artifactId>maven-site-plugin</artifactId>
 
<version>3.6</version>
 
</plugin>


 
<plugin>
 
<artifactId>maven-resources-plugin</artifactId>
 
<version>3.0.2</version>
 
</plugin>


 
<plugin>
 
<artifactId>maven-deploy-plugin</artifactId>
 
<version>3.1</version>
 
</plugin>


 
<plugin>
 
<artifactId>maven-enforcer-plugin</artifactId>
 
<version>1.4.1</version>
 
<executions>
 
<execution>
 
<id>enforce-maven</id>
 
<goals>
 
<goal>enforce</goal>
 
</goals>
 
<configuration>
 
<rules>
 
<requireMavenVersion>
 
<version>3.5</version>
 
</requireMavenVersion>
 
<requirePluginVersions>
 
<message>Best Practice is to always define plugin versions!</message>
 
<banLatest>true</banLatest>
 
<banRelease>true</banRelease>
 
<phases>clean,deploy,verify,appengine:run,appengine:deploy,appengine:update,appengine:devappaserver,site</phases>
 
</requirePluginVersions>
 
</rules>
 
</configuration>
 
</execution>
 
</executions>
 
</plugin>
 
</plugins>
 
</build>
</project>



--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment