<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.kevinmook.kevingame</groupId>
<artifactId>kevingame</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>Kevin Game</name>
<url>http://maven.apache.org</url>
<dependencies>
<!-- Unit test -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<scope>test</scope>
</dependency>
<!-- Web server APIs -->
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_2.5_spec</artifactId>
<version>1.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jsp_2.1_spec</artifactId>
<version>1.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-el_1.0_spec</artifactId>
<version>1.0.1</version>
<scope>provided</scope>
</dependency>
<!-- embedded JSTL -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<!--
Data persistence APIs: JPA and JDO.
-->
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jpa_3.0_spec</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jta_1.1_spec</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-core</artifactId>
<version>1.1.1</version>
<exclusions>
<exclusion>
<artifactId>transaction-api</artifactId>
<groupId>javax.transaction</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-jpa</artifactId>
<version>1.1.4</version>
<exclusions><!-- Use geronimo-jta_1.1_spec instead -->
<exclusion>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--
<dependency>
<groupId>javax.jdo</groupId>
<artifactId>jdo2-api</artifactId>
<version>2.3-SNAPSHOT</version>
</dependency>
-->
<!-- Google App Engine persistence runtime -->
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>datanucleus-appengine</artifactId>
<version>1.0.2.final</version>
</dependency>
<!-- Google App Engine API -->
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api</artifactId>
<version>1.0-sdk-1.2.2</version>
</dependency>
<!-- Logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.5.6</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<outputDirectory>war/WEB-INF/classes</outputDirectory>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceDirectory>${basedir}/war</warSourceDirectory>
</configuration>
</plugin>
<!-- JDK6 Compiler -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.datanucleus</groupId>
<artifactId>maven-datanucleus-plugin</artifactId>
<version>1.1.0</version>
<configuration>
<verbose>true</verbose>
<api>JPA</api>
<mappingIncludes>**/*.jdo, **/model/**.class</mappingIncludes>
<enhancerName>ASM</enhancerName>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>enhance</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Jetty server for development -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.0.2</version>
<configuration>
<webAppSourceDirectory>${basedir}/war</webAppSourceDirectory>
<scanIntervalSeconds>10</scanIntervalSeconds>
</configuration>
</plugin>
<!-- Tomcat server for development -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<configuration>
<warSourceDirectory>${basedir}/war</warSourceDirectory>
</configuration>
</plugin>
<!-- Generate Eclipse project files -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.6</version>
<configuration>
<excludes><!-- GAE_CONTAINER already have these jars -->
<exclude>org.datanucleus:datanucleus-core</exclude>
<exclude>org.datanucleus:datanucleus-jpa</exclude>
<exclude>com.google.appengine:datanucleus-appengine</exclude>
<exclude>org.apache.geronimo.specs:geronimo-servlet_2.5_spec</exclude>
<exclude>org.apache.geronimo.specs:geronimo-jsp_2.1_spec</exclude>
<exclude>org.apache.geronimo.specs:geronimo-el_1.0_spec</exclude>
<exclude>org.apache.geronimo.specs:geronimo-jpa_3.0_spec</exclude>
<exclude>org.apache.geronimo.specs:geronimo-jta_1.1_spec</exclude>
<exclude>javax.jdo:jdo2-api</exclude>
<exclude>com.google.appengine:appengine-api</exclude>
<exclude>javax.servlet:jstl</exclude>
<exclude>org.slf4j:jcl-over-slf4j</exclude>
<exclude>org.slf4j:jul-to-slf4j</exclude>
<exclude>org.slf4j:log4j-over-slf4j</exclude>
<exclude>org.slf4j:slf4j-jdk14</exclude>
<exclude>org.slf4j:slf4j-api</exclude>
</excludes>
<downloadSources>true</downloadSources>
<buildOutputDirectory>${basedir}/war/WEB-INF/classes</buildOutputDirectory>
<wtpversion>1.5</wtpversion>
<wtpapplicationxml>true</wtpapplicationxml>
<additionalProjectnatures>
<projectnature>com.google.appengine.eclipse.core.gaeNature</projectnature>
<projectnature>com.google.gdt.eclipse.core.webAppNature</projectnature>
</additionalProjectnatures>
<additionalBuildcommands>
<buildcommand>com.google.appengine.eclipse.core.enhancerbuilder</buildcommand>
<buildcommand>com.google.appengine.eclipse.core.projectValidator</buildcommand>
<buildcommand>com.google.gdt.eclipse.core.webAppProjectValidator</buildcommand>
<buildcommand>com.google.gdt.eclipse.core.webAppProjectValidator</buildcommand>
<buildcommand>validate</buildcommand>
</additionalBuildcommands>
<classpathContainers>
<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
<classpathContainer>com.google.appengine.eclipse.core.GAE_CONTAINER</classpathContainer>
</classpathContainers>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>validate</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/war/WEB-INF/lib</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<excludeArtifactIds>datanucleus-core,datanucleus-jpa,datanucleus-appengine,geronimo-servlet_2.5_spec,geronimo-jsp_2.1_spec,geronimo-el_1.0_spec,geronimo-jpa_3.0_spec,geronimo-jta_1.1_spec,jdo2-api,appengine-api,jstljcl-over-slf4j,jul-to-slf4j,log4j-over-slf4j,slf4j-jdk14,slf4j-api,junit,jstl,jcl-over-slf4j</excludeArtifactIds>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>install </phase>
<configuration>
<tasks>
<echo
message="Will download Google App Engine for Java and run appcfg tool to upload the application." />
<mkdir dir="${java.io.tmpdir}/gaej" />
<get
src="http://googleappengine.googlecode.com/files/appengine-java-sdk-1.2.2.zip"
dest="${java.io.tmpdir}/gaej/sdk.zip" verbose="yes"
usetimestamp="true" />
<unzip src="${java.io.tmpdir}/gaej/sdk.zip" dest="${java.io.tmpdir}/gaej" />
<java fork="false" classname="com.google.appengine.tools.admin.AppCfg">
<sysproperty key="appengine.sdk.root"
value="${java.io.tmpdir}/gaej/appengine-java-sdk-1.2.2" />
<classpath>
<fileset dir="${java.io.tmpdir}/gaej">
<include name="**/*.jar" />
</fileset>
</classpath>
<arg value="update" />
<arg value="${basedir}/target/${project.artifactId}" />
</java>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<!--
<repository>
<id>DataNucleus_Repos</id>
<name>DataNucleus Repository</name>
<url>http://www.datanucleus.org/downloads/maven</url>
<layout>legacy</layout>
</repository>
-->
<repository>
<id>DataNucleus_Repos2</id>
<name>DataNucleus Repository</name>
<url>http://www.datanucleus.org/downloads/maven2</url>
</repository>
<!--
We can load datanucleus jars from either mirrors.ibiblio.org or
DataNucleus repos above <repository> <id>mirrors.ibiblio.org</id>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
</repository>
-->
<!-- To access Google App Engine jars -->
<repository>
<id>www.mvnsearch.org</id>
<name>www.mvnsearch.org</name>
<url>http://www.mvnsearch.org/maven2/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>DataNucleus_2</id>
<url>http://www.datanucleus.org/downloads/maven2/</url>
</pluginRepository>
<pluginRepository>
<id>mirrors.ibiblio.org</id>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
</pluginRepository>
<!--
<pluginRepository>
<id>maven-repository.dev.java.net</id>
<name>Java.net Maven 1 Repository (legacy)</name>
<url>http://download.java.net/maven/1</url>
<layout>legacy</layout>
</pluginRepository>
-->
</pluginRepositories>
</project>