webidor/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sat, 20 Aug 2011 17:21:28 +0200
branchglassfish
changeset 286 accdcc2ab312
parent 284 90be53f96e0c
permissions -rw-r--r--
Enabling webidor tests, fails misserabley due to http://java.net/jira/browse/JERSEY-757
     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   <groupId>cz.xelfi.quoridor</groupId>
    12   <artifactId>webidor</artifactId>
    13   <packaging>war</packaging>
    14   <version>${webidorVersion}</version>
    15   <name>webidor server</name>
    16   <url>http://maven.apache.org</url>
    17     <properties>
    18         <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
    19         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    20         <netbeans.hint.deploy.server>gfv3ee6</netbeans.hint.deploy.server>
    21     </properties>
    22 
    23     <dependencies>
    24         <dependency>
    25             <groupId>javax</groupId>
    26             <artifactId>javaee-web-api</artifactId>
    27             <version>6.0</version>
    28             <scope>provided</scope>
    29         </dependency>
    30 
    31         <dependency>
    32             <groupId>junit</groupId>
    33             <artifactId>junit</artifactId>
    34             <version>4.8.2</version>
    35             <scope>test</scope>
    36         </dependency>
    37         <dependency>
    38             <groupId>com.sun.jersey</groupId>
    39             <artifactId>jersey-json</artifactId>
    40             <version>${jerseyVersion}</version>
    41             <type>jar</type>
    42             <exclusions>
    43                 <exclusion>
    44                     <artifactId>jaxb-api</artifactId>
    45                     <groupId>javax.xml.bind</groupId>
    46                 </exclusion>
    47                 <exclusion>
    48                     <artifactId>stax-api</artifactId>
    49                     <groupId>stax</groupId>
    50                 </exclusion>
    51                 <exclusion>
    52                     <artifactId>jersey-core</artifactId>
    53                     <groupId>com.sun.jersey</groupId>
    54                 </exclusion>
    55             </exclusions>
    56         </dependency>
    57         <dependency>
    58             <groupId>com.sun.jersey.jersey-test-framework</groupId>
    59             <artifactId>jersey-test-framework-embedded-glassfish</artifactId>
    60             <version>${jerseyVersion}</version>
    61             <scope>test</scope>
    62         </dependency>
    63         <dependency>
    64             <groupId>${project.groupId}</groupId>
    65             <artifactId>wsdor</artifactId>
    66             <version>${wsdorVersion}</version>
    67         </dependency>        
    68     </dependencies>
    69 
    70     <build>
    71         <plugins>
    72             <plugin>
    73                 <groupId>org.apache.maven.plugins</groupId>
    74                 <artifactId>maven-compiler-plugin</artifactId>
    75                 <version>2.3.2</version>
    76                 <configuration>
    77                     <source>1.6</source>
    78                     <target>1.6</target>
    79                     <compilerArguments>
    80                         <endorseddirs>${endorsed.dir}</endorseddirs>
    81                     </compilerArguments>
    82                 </configuration>
    83             </plugin>
    84             <plugin>
    85                 <groupId>org.apache.maven.plugins</groupId>
    86                 <artifactId>maven-war-plugin</artifactId>
    87                 <version>2.1.1</version>
    88                 <configuration>
    89                     <failOnMissingWebXml>false</failOnMissingWebXml>
    90                 </configuration>
    91             </plugin>
    92             <plugin>
    93                 <groupId>org.apache.maven.plugins</groupId>
    94                 <artifactId>maven-dependency-plugin</artifactId>
    95                 <version>2.1</version>
    96                 <executions>
    97                     <execution>
    98                         <phase>validate</phase>
    99                         <goals>
   100                             <goal>copy</goal>
   101                         </goals>
   102                         <configuration>
   103                             <outputDirectory>${endorsed.dir}</outputDirectory>
   104                             <silent>true</silent>
   105                             <artifactItems>
   106                                 <artifactItem>
   107                                     <groupId>javax</groupId>
   108                                     <artifactId>javaee-endorsed-api</artifactId>
   109                                     <version>6.0</version>
   110                                     <type>jar</type>
   111                                 </artifactItem>
   112                             </artifactItems>
   113                         </configuration>
   114                     </execution>
   115                 </executions>
   116             </plugin>
   117             <plugin>
   118                 <groupId>org.apache.maven.plugins</groupId>
   119                 <artifactId>maven-surefire-plugin</artifactId>
   120                 <version>2.9</version>
   121                 <configuration>
   122                     <skipTests>false</skipTests>
   123                     <forkMode>pertest</forkMode>
   124                     <classpathDependencyExcludes>
   125                         <exclude>javax:javaee-web-api</exclude>
   126                     </classpathDependencyExcludes>
   127                 </configuration>
   128             </plugin>
   129         </plugins>
   130     </build>
   131     <repositories>
   132         <repository>
   133             <url>http://download.java.net/maven/2/</url>
   134             <id>restlib</id>
   135             <layout>default</layout>
   136             <name>Repository for library Library[restlib]</name>
   137         </repository>
   138     </repositories>
   139 </project>