<?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>org.appspy.admin</groupId>
		<artifactId>org.appspy.admin</artifactId>
		<version>1.1</version>
	</parent>
	<groupId>org.appspy.admin</groupId>
	<artifactId>org.appspy.admin.webapp</artifactId>
	<name>org.appspy.admin.webapp</name>
	<version>1.1</version>
	<packaging>war</packaging>
	<description>Appspy</description>
	<url>http://www.appspy.org</url>
	<licenses>
	  <license>
	    <name>Apache 2</name>
	    <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
	  </license>
	</licenses>
	<scm>
		<url>https://appspy.svn.sourceforge.net/svnroot/appspy/appspy/tags/Release-1.1</url>
		<connection>scm:svn:https://appspy.svn.sourceforge.net/svnroot/appspy/appspy/tags/Release-1.1</connection>
		<developerConnection>scm:svn:https://appspy.svn.sourceforge.net/svnroot/appspy/appspy/tags/Release-1.1</developerConnection>
	</scm>
	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.gwtext</groupId>
			<artifactId>gwtext</artifactId>
			<version>2.0.4</version>
		</dependency>
		<dependency>
			<groupId>com.gwtextux</groupId>
			<artifactId>gwtextux</artifactId>
			<version>0.3</version>
		</dependency>
		<dependency>
			<groupId>com.google.gwt</groupId>
			<artifactId>gwt-user</artifactId>
			<version>${gwt.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.google.gwt</groupId>
			<artifactId>gwt-servlet</artifactId>
			<version>${gwt.version}</version>
		</dependency>
		<dependency>
			<groupId>com.google.gwt</groupId>
			<artifactId>gwt-windows</artifactId>
			<type>zip</type>
			<version>${gwt.version}</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.appspy.admin</groupId>
			<artifactId>org.appspy.admin.service.impl</artifactId>
			<version>1.1</version>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-web</artifactId>
			<version>2.5.5</version>
		</dependency>
<!--		<dependency>-->
<!--			<groupId>org.apache.derby</groupId>-->
<!--			<artifactId>derbyclient</artifactId>-->
<!--			<version>10.4.1.3</version>-->
<!--		</dependency>-->
<!--		<dependency>-->
<!--			<groupId>commons-dbcp</groupId>-->
<!--			<artifactId>commons-dbcp</artifactId>-->
<!--			<version>1.2.2</version>-->
<!--		</dependency>-->
		<dependency>
			<groupId>net.sf.dozer</groupId>
			<artifactId>dozer</artifactId>
			<version>4.2.1</version>
		</dependency>
	  <dependency>
      <groupId>commons-fileupload</groupId>
      <artifactId>commons-fileupload</artifactId>
      <version>1.2.1</version>
    </dependency>
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>1.4</version>
    </dependency>
  </dependencies>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.0</version>
				<configuration>
					<source>1.5</source>
					<target>1.5</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>unpack</id>
						<phase>process-sources</phase>
						<goals>
							<goal>unpack</goal>
						</goals>
						<configuration>
							<artifactItems>
								<artifactItem>
									<groupId>com.google.gwt</groupId>
									<artifactId>gwt-windows</artifactId>
									<type>zip</type>
									<version>${gwt.version}</version>
									<overWrite>false</overWrite>
									<outputDirectory>
										${project.build.directory}/.gwtBin
									</outputDirectory>
								</artifactItem>
							</artifactItems>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<id>compile</id>
						<phase>compile</phase>
						<configuration>
							<tasks>
								<property name="compile_classpath" refid="maven.compile.classpath" />

								<echo message="compile classpath: ${compile_classpath}" />

								<java classname="com.google.gwt.dev.GWTCompiler" fork="true" maxmemory="512m">
									<arg value="-out" />
									<arg value="${project.build.directory}/gwt-compile" />
									<arg value="org.appspy.admin.AdminModule" />
									<arg value="-style" />
									<arg value="PRETTY" />
									<classpath>
										<path refid="maven.compile.classpath" />
										<pathelement location="${basedir/src/main/java}" />
										<fileset dir="${project.build.directory}/.gwtBin">
											<include name="**/*.jar" />
										</fileset>
									</classpath>
								</java>
								<copy todir="${project.build.directory}/${project.build.finalName}">
									<fileset dir="${project.build.directory}/gwt-compile/org.appspy.admin.AdminModule" />
								</copy>
							</tasks>
						</configuration>
						<goals>
							<goal>run</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>