webidor/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 27 Jun 2012 22:23:50 +0200
changeset 288 61a4abd3f362
parent 282 40fc213a7f43
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>webidor</artifactId>
    12   <packaging>jar</packaging>
    13   <version>${webidorVersion}</version>
    14   <name>webidor server</name>
    15   <url>http://maven.apache.org</url>
    16   <dependencies>
    17     <dependency>
    18       <groupId>junit</groupId>
    19       <artifactId>junit</artifactId>
    20       <version>4.5</version>
    21       <scope>test</scope>
    22     </dependency>
    23     <dependency>
    24       <groupId>com.sun.jersey</groupId>
    25       <artifactId>jersey-core</artifactId>
    26     </dependency>
    27     <dependency>
    28       <groupId>com.sun.jersey</groupId>
    29       <artifactId>jersey-grizzly2</artifactId>
    30     </dependency>
    31     <dependency>
    32       <groupId>com.sun.jersey</groupId>
    33       <artifactId>jersey-json</artifactId>
    34       <type>jar</type>
    35       <exclusions>
    36         <exclusion>
    37           <artifactId>jaxb-api</artifactId>
    38           <groupId>javax.xml.bind</groupId>
    39         </exclusion>
    40         <exclusion>
    41           <artifactId>stax-api</artifactId>
    42           <groupId>stax</groupId>
    43         </exclusion>
    44       </exclusions>
    45     </dependency>
    46     <dependency>
    47       <groupId>com.sun.jersey.jersey-test-framework</groupId>
    48       <artifactId>jersey-test-framework-http</artifactId>
    49       <scope>test</scope>
    50     </dependency>
    51     <dependency>
    52       <groupId>cz.xelfi.quoridor</groupId>
    53       <artifactId>quoridor</artifactId>
    54       <version>${quoridorVersion}</version>
    55       <type>jar</type>
    56     </dependency>
    57     <dependency>
    58       <groupId>${project.groupId}</groupId>
    59       <artifactId>wsdor</artifactId>
    60       <version>${wsdorVersion}</version>
    61     </dependency>
    62   </dependencies>
    63   <build>
    64     <plugins>
    65       <plugin>
    66         <groupId>org.apache.maven.plugins</groupId>
    67         <artifactId>maven-compiler-plugin</artifactId>
    68         <version>2.0.2</version>
    69         <configuration>
    70           <source>1.5</source>
    71           <target>1.5</target>
    72         </configuration>
    73       </plugin>
    74       <plugin>
    75         <groupId>org.codehaus.mojo</groupId>
    76         <artifactId>exec-maven-plugin</artifactId>
    77         <configuration>
    78             <mainClass>cz.xelfi.quoridor.webidor.resources.Quoridor</mainClass>
    79         </configuration>
    80       </plugin>
    81       <plugin>
    82         <artifactId>maven-assembly-plugin</artifactId>
    83         <version>2.2-beta-2</version>
    84         <executions>
    85           <execution>
    86             <id>create-executable-jar</id>
    87             <phase>package</phase>
    88             <goals>
    89               <goal>single</goal>
    90             </goals>
    91             <configuration>
    92               <descriptors>
    93                 <descriptor>all-zip.xml</descriptor>
    94               </descriptors>
    95               <finalName>webidor-${version}</finalName>
    96             </configuration>
    97           </execution>
    98         </executions>
    99       </plugin>
   100       <plugin>
   101         <groupId>org.apache.maven.plugins</groupId>
   102         <artifactId>maven-jar-plugin</artifactId>
   103         <configuration>
   104             <archive>
   105                 <manifest>
   106                     <addClasspath>true</addClasspath>
   107                     <classpathPrefix>lib/</classpathPrefix>
   108                     <mainClass>cz.xelfi.quoridor.webidor.resources.Quoridor</mainClass>
   109                 </manifest>
   110             </archive>
   111         </configuration>
   112       </plugin>
   113     </plugins>
   114   </build>
   115     <description>Server with REST API for playing, inspecting and managing Quoridor games.</description>
   116 </project>
   117 
   118 
   119