Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Aug 25th, 2009 | Syntax: XML | Size: 11.12 KB | Hits: 177 | Expires: Never
Copy text to clipboard
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2.         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3.         <modelVersion>4.0.0</modelVersion>
  4.         <groupId>com.kevinmook.kevingame</groupId>
  5.         <artifactId>kevingame</artifactId>
  6.         <packaging>war</packaging>
  7.         <version>1.0-SNAPSHOT</version>
  8.         <name>Kevin Game</name>
  9.         <url>http://maven.apache.org</url>
  10.        
  11.         <dependencies>
  12.                 <!-- Unit test -->
  13.                 <dependency>
  14.                         <groupId>junit</groupId>
  15.                         <artifactId>junit</artifactId>
  16.                         <version>4.7</version>
  17.                         <scope>test</scope>
  18.                 </dependency>
  19.  
  20.                 <!-- Web server APIs -->
  21.                 <dependency>
  22.                         <groupId>org.apache.geronimo.specs</groupId>
  23.                         <artifactId>geronimo-servlet_2.5_spec</artifactId>
  24.                         <version>1.2</version>
  25.                         <scope>provided</scope>
  26.                 </dependency>
  27.                 <dependency>
  28.                         <groupId>org.apache.geronimo.specs</groupId>
  29.                         <artifactId>geronimo-jsp_2.1_spec</artifactId>
  30.                         <version>1.0.1</version>
  31.                         <scope>provided</scope>
  32.                 </dependency>
  33.                 <dependency>
  34.                         <groupId>org.apache.geronimo.specs</groupId>
  35.                         <artifactId>geronimo-el_1.0_spec</artifactId>
  36.                         <version>1.0.1</version>
  37.                         <scope>provided</scope>
  38.                 </dependency>
  39.  
  40.                 <!-- embedded JSTL -->
  41.                 <dependency>
  42.                         <groupId>javax.servlet</groupId>
  43.                         <artifactId>jstl</artifactId>
  44.                         <version>1.2</version>
  45.                 </dependency>
  46.  
  47.                 <!--
  48.                         Data persistence APIs: JPA and JDO.
  49.                 -->
  50.                 <dependency>
  51.                         <groupId>org.apache.geronimo.specs</groupId>
  52.                         <artifactId>geronimo-jpa_3.0_spec</artifactId>
  53.                         <version>1.1.1</version>
  54.                 </dependency>
  55.                 <dependency>
  56.                         <groupId>org.apache.geronimo.specs</groupId>
  57.                         <artifactId>geronimo-jta_1.1_spec</artifactId>
  58.                         <version>1.1.1</version>
  59.                 </dependency>
  60.                 <dependency>
  61.                         <groupId>org.datanucleus</groupId>
  62.                         <artifactId>datanucleus-core</artifactId>
  63.                         <version>1.1.1</version>
  64.                         <exclusions>
  65.                                 <exclusion>
  66.                                         <artifactId>transaction-api</artifactId>
  67.                                         <groupId>javax.transaction</groupId>
  68.                                 </exclusion>
  69.                         </exclusions>
  70.                 </dependency>
  71.                 <dependency>
  72.                         <groupId>org.datanucleus</groupId>
  73.                         <artifactId>datanucleus-jpa</artifactId>
  74.                         <version>1.1.4</version>
  75.                         <exclusions><!-- Use geronimo-jta_1.1_spec instead -->
  76.                                 <exclusion>
  77.                                         <groupId>javax.persistence</groupId>
  78.                                         <artifactId>persistence-api</artifactId>
  79.                                 </exclusion>
  80.                         </exclusions>
  81.                 </dependency>
  82.                 <!--
  83.                 <dependency>
  84.                         <groupId>javax.jdo</groupId>
  85.                         <artifactId>jdo2-api</artifactId>
  86.                         <version>2.3-SNAPSHOT</version>
  87.                 </dependency>
  88.                 -->
  89.                 <!-- Google App Engine persistence runtime -->
  90.                 <dependency>
  91.                         <groupId>com.google.appengine</groupId>
  92.                         <artifactId>datanucleus-appengine</artifactId>
  93.                         <version>1.0.2.final</version>
  94.                 </dependency>
  95.  
  96.                 <!-- Google App Engine API -->
  97.                 <dependency>
  98.                         <groupId>com.google.appengine</groupId>
  99.                         <artifactId>appengine-api</artifactId>
  100.                         <version>1.0-sdk-1.2.2</version>
  101.                 </dependency>
  102.  
  103.                 <!-- Logging -->
  104.                 <dependency>
  105.                         <groupId>org.slf4j</groupId>
  106.                         <artifactId>jcl-over-slf4j</artifactId>
  107.                         <version>1.5.6</version>
  108.                 </dependency>
  109.                 <dependency>
  110.                         <groupId>org.slf4j</groupId>
  111.                         <artifactId>jul-to-slf4j</artifactId>
  112.                         <version>1.5.6</version>
  113.                 </dependency>
  114.                 <dependency>
  115.                         <groupId>org.slf4j</groupId>
  116.                         <artifactId>log4j-over-slf4j</artifactId>
  117.                         <version>1.5.6</version>
  118.                 </dependency>
  119.                 <dependency>
  120.                         <groupId>org.slf4j</groupId>
  121.                         <artifactId>slf4j-jdk14</artifactId>
  122.                         <version>1.5.6</version>
  123.                 </dependency>
  124.         </dependencies>
  125.  
  126.         <build>
  127.                 <finalName>${project.artifactId}</finalName>
  128.                 <outputDirectory>war/WEB-INF/classes</outputDirectory>
  129.  
  130.                 <plugins>
  131.                         <plugin>
  132.                                 <artifactId>maven-war-plugin</artifactId>
  133.                                 <configuration>
  134.                                         <warSourceDirectory>${basedir}/war</warSourceDirectory>
  135.                                 </configuration>
  136.                         </plugin>
  137.  
  138.                         <!-- JDK6 Compiler  -->
  139.                         <plugin>
  140.                                 <groupId>org.apache.maven.plugins</groupId>
  141.                                 <artifactId>maven-compiler-plugin</artifactId>
  142.                                 <configuration>
  143.                                         <source>1.6</source>
  144.                                         <target>1.6</target>
  145.                                 </configuration>
  146.                         </plugin>
  147.  
  148.                         <plugin>
  149.                                 <groupId>org.datanucleus</groupId>
  150.                                 <artifactId>maven-datanucleus-plugin</artifactId>
  151.                                 <version>1.1.0</version>
  152.                                 <configuration>
  153.                                         <verbose>true</verbose>
  154.                                         <api>JPA</api>
  155.                                         <mappingIncludes>**/*.jdo, **/model/**.class</mappingIncludes>
  156.                                         <enhancerName>ASM</enhancerName>
  157.                                 </configuration>
  158.                                 <executions>
  159.                                         <execution>
  160.                                                 <phase>compile</phase>
  161.                                                 <goals>
  162.                                                         <goal>enhance</goal>
  163.                                                 </goals>
  164.                                         </execution>
  165.                                 </executions>
  166.                         </plugin>
  167.  
  168.                         <!-- Jetty server for development -->
  169.                         <plugin>
  170.                                 <groupId>org.mortbay.jetty</groupId>
  171.                                 <artifactId>maven-jetty-plugin</artifactId>
  172.                                 <version>6.0.2</version>
  173.                                 <configuration>
  174.                                         <webAppSourceDirectory>${basedir}/war</webAppSourceDirectory>
  175.                                         <scanIntervalSeconds>10</scanIntervalSeconds>
  176.                                 </configuration>
  177.                         </plugin>
  178.                        
  179.                         <!-- Tomcat server for development -->
  180.                         <plugin>
  181.                                 <groupId>org.codehaus.mojo</groupId>
  182.                                 <artifactId>tomcat-maven-plugin</artifactId>
  183.                                 <version>1.0-alpha-1</version>
  184.                                 <configuration>
  185.                                         <warSourceDirectory>${basedir}/war</warSourceDirectory>
  186.                                 </configuration>
  187.                         </plugin>
  188.  
  189.                         <!-- Generate Eclipse project files -->
  190.                         <plugin>
  191.                                 <groupId>org.apache.maven.plugins</groupId>
  192.                                 <artifactId>maven-eclipse-plugin</artifactId>
  193.                                 <version>2.6</version>
  194.                                 <configuration>
  195.                                         <excludes><!-- GAE_CONTAINER already have these jars -->
  196.                                                 <exclude>org.datanucleus:datanucleus-core</exclude>
  197.                                                 <exclude>org.datanucleus:datanucleus-jpa</exclude>
  198.                                                 <exclude>com.google.appengine:datanucleus-appengine</exclude>
  199.                                                 <exclude>org.apache.geronimo.specs:geronimo-servlet_2.5_spec</exclude>
  200.                                                 <exclude>org.apache.geronimo.specs:geronimo-jsp_2.1_spec</exclude>
  201.                                                 <exclude>org.apache.geronimo.specs:geronimo-el_1.0_spec</exclude>
  202.                                                 <exclude>org.apache.geronimo.specs:geronimo-jpa_3.0_spec</exclude>
  203.                                                 <exclude>org.apache.geronimo.specs:geronimo-jta_1.1_spec</exclude>
  204.                                                 <exclude>javax.jdo:jdo2-api</exclude>
  205.                                                 <exclude>com.google.appengine:appengine-api</exclude>
  206.                                                 <exclude>javax.servlet:jstl</exclude>
  207.                                                 <exclude>org.slf4j:jcl-over-slf4j</exclude>
  208.                                                 <exclude>org.slf4j:jul-to-slf4j</exclude>
  209.                                                 <exclude>org.slf4j:log4j-over-slf4j</exclude>
  210.                                                 <exclude>org.slf4j:slf4j-jdk14</exclude>
  211.                                                 <exclude>org.slf4j:slf4j-api</exclude>
  212.                                         </excludes>
  213.                                         <downloadSources>true</downloadSources>
  214.                                         <buildOutputDirectory>${basedir}/war/WEB-INF/classes</buildOutputDirectory>
  215.                                         <wtpversion>1.5</wtpversion>
  216.                                         <wtpapplicationxml>true</wtpapplicationxml>
  217.                                         <additionalProjectnatures>
  218.                                                 <projectnature>com.google.appengine.eclipse.core.gaeNature</projectnature>
  219.                                                 <projectnature>com.google.gdt.eclipse.core.webAppNature</projectnature>
  220.                                         </additionalProjectnatures>
  221.                                         <additionalBuildcommands>
  222.                                                 <buildcommand>com.google.appengine.eclipse.core.enhancerbuilder</buildcommand>
  223.                                                 <buildcommand>com.google.appengine.eclipse.core.projectValidator</buildcommand>
  224.                                                 <buildcommand>com.google.gdt.eclipse.core.webAppProjectValidator</buildcommand>
  225.                                                 <buildcommand>com.google.gdt.eclipse.core.webAppProjectValidator</buildcommand>
  226.                                                 <buildcommand>validate</buildcommand>
  227.                                         </additionalBuildcommands>
  228.                                         <classpathContainers>
  229.                                                 <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
  230.                                                 <classpathContainer>com.google.appengine.eclipse.core.GAE_CONTAINER</classpathContainer>
  231.                                         </classpathContainers>
  232.                                 </configuration>
  233.                         </plugin>
  234.  
  235.                         <plugin>
  236.                                 <groupId>org.apache.maven.plugins</groupId>
  237.                                 <artifactId>maven-dependency-plugin</artifactId>
  238.                                 <executions>
  239.                                         <execution>
  240.                                                 <id>copy-dependencies</id>
  241.                                                 <phase>validate</phase>
  242.                                                 <goals>
  243.                                                         <goal>copy-dependencies</goal>
  244.                                                 </goals>
  245.                                                 <configuration>
  246.                                                         <outputDirectory>${basedir}/war/WEB-INF/lib</outputDirectory>
  247.                                                         <overWriteReleases>false</overWriteReleases>
  248.                                                         <overWriteSnapshots>false</overWriteSnapshots>
  249.                                                         <overWriteIfNewer>true</overWriteIfNewer>
  250.                                                         <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>
  251.                                                 </configuration>
  252.                                         </execution>
  253.                                 </executions>
  254.                         </plugin>
  255.  
  256.                         <plugin>
  257.                                 <artifactId>maven-antrun-plugin</artifactId>
  258.                                 <executions>
  259.                                         <execution>
  260.                                                 <phase>install </phase>
  261.                                                 <configuration>
  262.                                                         <tasks>
  263.                                                                 <echo
  264.                                                                         message="Will download Google App Engine for Java and run appcfg tool to upload the application." />
  265.                                                                 <mkdir dir="${java.io.tmpdir}/gaej" />
  266.                                                                 <get
  267.                                                                         src="http://googleappengine.googlecode.com/files/appengine-java-sdk-1.2.2.zip"
  268.                                                                         dest="${java.io.tmpdir}/gaej/sdk.zip" verbose="yes"
  269.                                                                         usetimestamp="true" />
  270.                                                                 <unzip src="${java.io.tmpdir}/gaej/sdk.zip" dest="${java.io.tmpdir}/gaej" />
  271.                                                                 <java fork="false" classname="com.google.appengine.tools.admin.AppCfg">
  272.                                                                         <sysproperty key="appengine.sdk.root"
  273.                                                                                 value="${java.io.tmpdir}/gaej/appengine-java-sdk-1.2.2" />
  274.                                                                         <classpath>
  275.                                                                                 <fileset dir="${java.io.tmpdir}/gaej">
  276.                                                                                         <include name="**/*.jar" />
  277.                                                                                 </fileset>
  278.                                                                         </classpath>
  279.                                                                         <arg value="update" />
  280.                                                                         <arg value="${basedir}/target/${project.artifactId}" />
  281.                                                                 </java>
  282.                                                         </tasks>
  283.                                                 </configuration>
  284.                                                 <goals>
  285.                                                         <goal>run</goal>
  286.                                                 </goals>
  287.                                         </execution>
  288.                                 </executions>
  289.                         </plugin>
  290.                 </plugins>
  291.         </build>
  292.  
  293.         <repositories>
  294.                 <!--
  295.                 <repository>
  296.                         <id>DataNucleus_Repos</id>
  297.                         <name>DataNucleus Repository</name>
  298.                         <url>http://www.datanucleus.org/downloads/maven</url>
  299.                         <layout>legacy</layout>
  300.                 </repository>
  301.                 -->
  302.                 <repository>
  303.                         <id>DataNucleus_Repos2</id>
  304.                         <name>DataNucleus Repository</name>
  305.                         <url>http://www.datanucleus.org/downloads/maven2</url>
  306.                 </repository>
  307.                 <!--
  308.                         We can load datanucleus jars from either mirrors.ibiblio.org or
  309.                         DataNucleus repos above <repository> <id>mirrors.ibiblio.org</id>
  310.                         <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
  311.                         </repository>
  312.                 -->
  313.                 <!-- To access Google App Engine jars -->
  314.                 <repository>
  315.                         <id>www.mvnsearch.org</id>
  316.                         <name>www.mvnsearch.org</name>
  317.                         <url>http://www.mvnsearch.org/maven2/</url>
  318.                 </repository>
  319.  
  320.         </repositories>
  321.         <pluginRepositories>
  322.                 <pluginRepository>
  323.                         <id>DataNucleus_2</id>
  324.                         <url>http://www.datanucleus.org/downloads/maven2/</url>
  325.                 </pluginRepository>
  326.                 <pluginRepository>
  327.                         <id>mirrors.ibiblio.org</id>
  328.                         <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
  329.                 </pluginRepository>
  330.                 <!--
  331.                 <pluginRepository>
  332.                         <id>maven-repository.dev.java.net</id>
  333.                         <name>Java.net Maven 1 Repository (legacy)</name>
  334.                         <url>http://download.java.net/maven/1</url>
  335.                         <layout>legacy</layout>
  336.                 </pluginRepository>
  337.                 -->
  338.         </pluginRepositories>
  339. </project>