| <?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"> |
| |
| <!-- POM file generated with GWT webAppCreator --> |
| <modelVersion>4.0.0</modelVersion> |
| <groupId>@modulePackageName</groupId> |
| <artifactId>@moduleShortName</artifactId> |
| <packaging>war</packaging> |
| <version>1.0-SNAPSHOT</version> |
| <name>@moduleName</name> |
| |
| <properties> |
| <!-- Convenience property to set the GWT version --> |
| <gwtVersion>@gwtVersion</gwtVersion> |
| <!-- Note: GWT needs at least java 1.7 --> |
| <maven.compiler.source>1.7</maven.compiler.source> |
| <maven.compiler.target>1.7</maven.compiler.target> |
| |
| <!-- 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> |
| |
| <dependencyManagement> |
| <dependencies> |
| <!-- ensure all GWT deps use the same version (unless overridden) --> |
| <dependency> |
| <groupId>com.google.gwt</groupId> |
| <artifactId>gwt</artifactId> |
| <version>${gwtVersion}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| </dependency> |
| </dependencies> |
| </dependencyManagement> |
| |
| <dependencies> |
| <dependency> |
| <groupId>com.google.gwt</groupId> |
| <artifactId>gwt-servlet</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.google.gwt</groupId> |
| <artifactId>gwt-user</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.google.gwt</groupId> |
| <artifactId>gwt-dev</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.11</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>org.codehaus.mojo</groupId> |
| <artifactId>gwt-maven-plugin</artifactId> |
| <version>${gwtVersion}</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| </execution> |
| <execution> |
| <!-- Run tests through gwt:test, this allows reusing the plugin configuration for GWTTestCases --> |
| <id>gwt-tests</id> |
| <phase>test</phase> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| </execution> |
| </executions> |
| <!-- Plugin configuration. There are many available options, |
| see gwt-maven-plugin documentation at codehaus.org --> |
| <configuration> |
| <modules> |
| <module>@moduleName</module> |
| </modules> |
| <!-- URL that should be opened by DevMode (gwt:run). --> |
| <runTarget>@moduleShortName.html</runTarget> |
| <!-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) --> |
| <compileReport>true</compileReport> |
| <compilerMetrics>true</compilerMetrics> |
| <!-- Run tests using HtmlUnit --> |
| <mode>htmlunit</mode> |
| </configuration> |
| </plugin> |
| |
| <!-- Skip normal test execution, we use gwt:test instead --> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.17</version> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </plugin> |
| |
| </plugins> |
| </build> |
| </project> |