<?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>
<parent>
<groupId>com.coroptis</groupId>
<artifactId>base-pom</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>com.coroptis.cubiculus</groupId>
<artifactId>cubiculus-browser</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>cubiculus GWT browser</name>
<!-- include pluginRepository and repository for GWT-Maven -->
<!--
<pluginRepositories> <pluginRepository> <id>gwt-maven-plugins</id>
<url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
</pluginRepository> </pluginRepositories> <repositories> <repository>
<id>gwt-maven</id>
<url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
</repository> </repositories>
--><!-- convenience to define GWT version in one place -->
<properties>
<gwtVersion>2.1.0</gwtVersion>
<moduleName>cz.koroptev.cubiculus.browser.Browser</moduleName>
</properties>
<dependencies>
<dependency>
<groupId>cz.koroptev.cubiculus</groupId>
<artifactId>cubiculus-interface</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<!-- GWT deps (from central repo) -->
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwtVersion}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
<scope>provided</scope>
</dependency>
<!-- test -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- configure the GWT-Maven plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.1.0</version>
<configuration>
<runTarget>cz.koroptev.cubiculus.browser.Browser/Browser.html</runTarget>
<extraJvmArgs>-Xmx512m</extraJvmArgs>
</configuration>
<executions>
<execution>
<configuration>
<module>cz.koroptev.cubiculus.browser.Browser</module>
<!--
<style>PRETTY</style>
-->
</configuration>
<goals>
<goal>compile</goal>
<goal>generateAsync</goal>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Use the dependency plugin to unpack gwt-dev-PLATFORM-libs.zip -->
<!--
(this is a replacement for the old "automatic" mode - useful if you
don't have GWT installed already, or you just want a maven way to
handle gwt deps)
-->
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-dependency-plugin</artifactId>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>unpack</id>-->
<!-- <phase>compile</phase>-->
<!-- <goals>-->
<!-- <goal>unpack</goal>-->
<!-- </goals>-->
<!-- <configuration>-->
<!-- <artifactItems>-->
<!-- <artifactItem>-->
<!-- <groupId>com.google.gwt</groupId>-->
<!-- <artifactId>gwt-dev</artifactId>-->
<!-- <version>${gwtVersion}</version>-->
<!-- <classifier>${platform}-libs</classifier>-->
<!-- <type>zip</type>-->
<!-- <overWrite>false</overWrite>-->
<!--
<outputDirectory>${settings.localRepository}/com/google/gwt/gwt-dev/${gwtVersion}</outputDirectory>
-->
<!-- </artifactItem>-->
<!-- </artifactItems>-->
<!-- </configuration>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
<!--
If you want to use the target/web.xml file mergewebxml produces,
tell the war plugin to use it. Also, exclude what you want from the
final artifact here.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<!-- <webXml>target/web.xml</webXml>-->
<warSourceExcludes>.gwt-tmp/**</warSourceExcludes>
</configuration>
</plugin>
<!-- tell the compiler we can use 1.5 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<!--
following ant script copy compiled java script into main seven
project
-->
<execution>
<id>install-java-script-code</id>
<phase>package</phase>
<configuration>
<tasks>
<property name="gwtScriptDeployDir" value="../cubiculus-web/src/main/webapp/js" />
<property name="gwtScriptSourceDir"
value="${basedir}/target/${pom.artifactId}-${pom.version}" />
<echo>Copying compiled files into main seven project. It
also
override current java scripts in main seven project.</echo>
<echo>gwtScriptDeployDir:
${gwtScriptDeployDir}</echo>
<echo>gwtScriptSourceDir:
${gwtScriptSourceDir}</echo>
<echo>moduleName: ${moduleName}</echo>
<delete dir="${gwtScriptDeployDir}/${moduleName}"
failonerror="false" />
<copy todir="${gwtScriptDeployDir}" overwrite="true">
<fileset dir="${gwtScriptSourceDir}" casesensitive="no">
<include name="**/*cache.html" />
<include name="**/*cache.xml" />
<include name="**/*.js" />
<include name="**/*.css" />
<include name="**/*.gif" />
<include name="**/*.png" />
<include name="**/*.rpc" />
<exclude name="**/WEB-INF/**" />
</fileset>
</copy>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<useProjectReferences>false</useProjectReferences>
</configuration>
</plugin>
</plugins>
</build>
</project>