chat/server/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 22 Apr 2016 08:53:13 +0200
branchNewChat
changeset 240 2d0750864a98
parent 238 a0f15cb8c730
child 241 6a59fdb91011
permissions -rw-r--r--
Using WebSocket on the client and on the server while keeping their ability to talk to each other
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <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/xsd/maven-4.0.0.xsd">
     3     <modelVersion>4.0.0</modelVersion>
     4     <parent>
     5       <groupId>org.apidesign.demo</groupId>
     6       <artifactId>chat-pom</artifactId>
     7       <version>1.0-SNAPSHOT</version>
     8     </parent>
     9     <artifactId>chat-server</artifactId>
    10     <packaging>jar</packaging>
    11     <name>Chat WebSocket Server</name>
    12     <properties>
    13         <maven.compiler.source>1.7</maven.compiler.source>
    14         <maven.compiler.target>1.7</maven.compiler.target>
    15         <grizzly.version>2.3.8</grizzly.version>
    16     </properties>
    17   <dependencies>
    18     <!-- compile + runtime -->
    19     <dependency>
    20       <groupId>org.netbeans.html</groupId>
    21       <artifactId>net.java.html</artifactId>
    22       <version>${net.java.html.version}</version>
    23       <type>jar</type>
    24     </dependency>
    25     <dependency>
    26       <groupId>org.netbeans.html</groupId>
    27       <artifactId>net.java.html.json</artifactId>
    28       <version>${net.java.html.version}</version>
    29       <type>jar</type>
    30     </dependency>
    31     <dependency>
    32       <artifactId>javax.websocket-api</artifactId>
    33       <groupId>javax.websocket</groupId>
    34       <type>jar</type>
    35       <version>1.0</version>
    36     </dependency>
    37 
    38     <!-- tyrus runtime -->
    39     <dependency>
    40         <groupId>org.glassfish.tyrus</groupId>
    41         <artifactId>tyrus-client</artifactId>
    42         <version>1.3.1</version>
    43         <scope>runtime</scope>
    44     </dependency>
    45     <dependency>
    46         <groupId>org.glassfish.tyrus</groupId>
    47         <artifactId>tyrus-container-grizzly-client</artifactId>
    48         <version>1.3.1</version>
    49         <scope>runtime</scope>
    50     </dependency>
    51 
    52 
    53 
    54     <!-- test only deps -->
    55     <dependency>
    56       <groupId>org.netbeans.html</groupId>
    57       <artifactId>ko4j</artifactId>
    58       <version>${net.java.html.version}</version>
    59       <type>jar</type>
    60     </dependency>
    61     <dependency>
    62       <groupId>org.glassfish.grizzly</groupId>
    63       <artifactId>grizzly-http-server-core</artifactId>
    64       <version>${grizzly.version}</version>
    65       <type>jar</type>
    66     </dependency>
    67     <dependency>
    68       <groupId>org.glassfish.grizzly</groupId>
    69       <artifactId>grizzly-websockets-server</artifactId>
    70       <version>${grizzly.version}</version>
    71       <type>jar</type>
    72     </dependency>
    73     <dependency>
    74       <groupId>org.glassfish.grizzly</groupId>
    75       <artifactId>grizzly-http-server</artifactId>
    76       <version>${grizzly.version}</version>
    77     </dependency>
    78     <dependency>
    79         <groupId>org.glassfish.grizzly</groupId>
    80         <artifactId>grizzly-http-servlet</artifactId>
    81         <version>${grizzly.version}</version>
    82     </dependency>
    83     <dependency>
    84         <groupId>javax.servlet</groupId>
    85         <artifactId>javax.servlet-api</artifactId>
    86         <version>3.1.0</version>
    87     </dependency>
    88     <dependency>
    89       <groupId>${project.groupId}</groupId>
    90       <artifactId>chat-shared</artifactId>
    91       <version>${project.version}</version>
    92     </dependency>
    93   </dependencies>
    94     <build>
    95         <plugins>
    96           <plugin>
    97               <groupId>org.codehaus.mojo</groupId>
    98               <artifactId>exec-maven-plugin</artifactId>
    99               <version>1.2.1</version>
   100               <configuration>
   101                   <mainClass>org.apidesign.demo.chat.server.Main</mainClass>
   102               </configuration>
   103           </plugin>      
   104         </plugins>
   105     </build>
   106 </project>