statistics/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 27 Jun 2012 22:23:50 +0200
changeset 288 61a4abd3f362
parent 258 935118a5831a
permissions -rw-r--r--
Use dependencyManagement to manage dependencies
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <project xmlns="http://maven.apache.org/POM/4.0.0" 
     3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     5   <modelVersion>4.0.0</modelVersion>
     6   <parent>
     7         <artifactId>all-quoridor</artifactId>
     8         <groupId>cz.xelfi.quoridor</groupId>
     9         <version>1.0</version>
    10   </parent>
    11   <artifactId>statistics</artifactId>
    12   <packaging>jar</packaging>
    13   <version>${statisticsVersion}</version>
    14   <name>Game Statistics</name>
    15   <url>http://maven.apache.org</url>
    16   <dependencies>
    17 
    18     <dependency>
    19       <groupId>junit</groupId>
    20       <artifactId>junit</artifactId>
    21       <version>4.5</version>
    22       <scope>test</scope>
    23     </dependency>
    24     <dependency>
    25       <groupId>com.sun.jersey</groupId>
    26       <artifactId>jersey-core</artifactId>
    27     </dependency>
    28     <dependency>
    29       <groupId>com.sun.jersey</groupId>
    30       <artifactId>jersey-server</artifactId>
    31     </dependency>
    32     <dependency>
    33       <groupId>com.sun.jersey</groupId>
    34       <artifactId>jersey-json</artifactId>
    35       <type>jar</type>
    36       <exclusions>
    37         <exclusion>
    38           <artifactId>jaxb-api</artifactId>
    39           <groupId>javax.xml.bind</groupId>
    40         </exclusion>
    41         <exclusion>
    42           <artifactId>stax-api</artifactId>
    43           <groupId>stax</groupId>
    44         </exclusion>
    45       </exclusions>
    46     </dependency>
    47     <dependency>
    48       <groupId>com.sun.jersey.jersey-test-framework</groupId>
    49       <artifactId>jersey-test-framework-http</artifactId>
    50       <scope>test</scope>
    51     </dependency>
    52     <dependency>
    53       <groupId>${project.groupId}</groupId>
    54       <artifactId>quoridor</artifactId>
    55       <version>${quoridorVersion}</version>
    56       <type>jar</type>
    57     </dependency>
    58     <dependency>
    59       <groupId>${project.groupId}</groupId>
    60       <artifactId>webidor</artifactId>
    61       <version>${webidorVersion}</version>
    62     </dependency>
    63   </dependencies>
    64   <build>
    65     <plugins>
    66       <plugin>
    67         <groupId>org.apache.maven.plugins</groupId>
    68         <artifactId>maven-compiler-plugin</artifactId>
    69         <version>2.0.2</version>
    70         <configuration>
    71           <source>1.6</source>
    72           <target>1.6</target>
    73         </configuration>
    74       </plugin>
    75       <plugin>
    76         <groupId>org.codehaus.mojo</groupId>
    77         <artifactId>exec-maven-plugin</artifactId>
    78         <configuration>
    79             <mainClass>cz.xelfi.quoridor.statistics.resources.Statistics</mainClass>
    80         </configuration>
    81       </plugin>
    82       <plugin>
    83         <artifactId>maven-assembly-plugin</artifactId>
    84         <version>2.2-beta-2</version>
    85         <executions>
    86           <execution>
    87             <id>create-executable-jar</id>
    88             <phase>package</phase>
    89             <goals>
    90               <goal>single</goal>
    91             </goals>
    92             <configuration>
    93               <descriptors>
    94                 <descriptor>all-zip.xml</descriptor>
    95               </descriptors>
    96               <finalName>statistics-${version}</finalName>
    97             </configuration>
    98           </execution>
    99         </executions>
   100       </plugin>
   101       <plugin>
   102         <groupId>org.apache.maven.plugins</groupId>
   103         <artifactId>maven-jar-plugin</artifactId>
   104         <configuration>
   105             <archive>
   106                 <manifest>
   107                     <addClasspath>true</addClasspath>
   108                     <classpathPrefix>lib/</classpathPrefix>
   109                     <mainClass>cz.xelfi.quoridor.statistics.resources.Statistics</mainClass>
   110                 </manifest>
   111             </archive>
   112         </configuration>
   113       </plugin>
   114     </plugins>
   115   </build>
   116     <description>Server with API for games statistics</description>
   117 </project>
   118 
   119 
   120 
   121 
   122