webidor/pom.xml
branchglassfish
changeset 284 90be53f96e0c
parent 282 40fc213a7f43
child 286 accdcc2ab312
     1.1 --- a/webidor/pom.xml	Fri Apr 15 21:18:29 2011 +0200
     1.2 +++ b/webidor/pom.xml	Sun Jul 17 15:40:50 2011 +0200
     1.3 @@ -8,116 +8,128 @@
     1.4          <groupId>cz.xelfi.quoridor</groupId>
     1.5          <version>1.0</version>
     1.6    </parent>
     1.7 +  <groupId>cz.xelfi.quoridor</groupId>
     1.8    <artifactId>webidor</artifactId>
     1.9 -  <packaging>jar</packaging>
    1.10 +  <packaging>war</packaging>
    1.11    <version>${webidorVersion}</version>
    1.12    <name>webidor server</name>
    1.13    <url>http://maven.apache.org</url>
    1.14 -  <dependencies>
    1.15 -    <dependency>
    1.16 -      <groupId>junit</groupId>
    1.17 -      <artifactId>junit</artifactId>
    1.18 -      <version>4.5</version>
    1.19 -      <scope>test</scope>
    1.20 -    </dependency>
    1.21 -    <dependency>
    1.22 -      <groupId>com.sun.jersey</groupId>
    1.23 -      <artifactId>jersey-core</artifactId>
    1.24 -      <version>${jerseyVersion}</version>
    1.25 -    </dependency>
    1.26 -    <dependency>
    1.27 -      <groupId>com.sun.jersey</groupId>
    1.28 -      <artifactId>jersey-grizzly2</artifactId>
    1.29 -      <version>${jerseyVersion}</version>
    1.30 -    </dependency>
    1.31 -    <dependency>
    1.32 -      <groupId>com.sun.jersey</groupId>
    1.33 -      <artifactId>jersey-json</artifactId>
    1.34 -      <version>${jerseyVersion}</version>
    1.35 -      <type>jar</type>
    1.36 -      <exclusions>
    1.37 -        <exclusion>
    1.38 -          <artifactId>jaxb-api</artifactId>
    1.39 -          <groupId>javax.xml.bind</groupId>
    1.40 -        </exclusion>
    1.41 -        <exclusion>
    1.42 -          <artifactId>stax-api</artifactId>
    1.43 -          <groupId>stax</groupId>
    1.44 -        </exclusion>
    1.45 -      </exclusions>
    1.46 -    </dependency>
    1.47 -    <dependency>
    1.48 -      <groupId>com.sun.jersey.jersey-test-framework</groupId>
    1.49 -      <artifactId>jersey-test-framework-http</artifactId>
    1.50 -      <version>${jerseyVersion}</version>
    1.51 -      <scope>test</scope>
    1.52 -    </dependency>
    1.53 -    <dependency>
    1.54 -      <groupId>cz.xelfi.quoridor</groupId>
    1.55 -      <artifactId>quoridor</artifactId>
    1.56 -      <version>${quoridorVersion}</version>
    1.57 -      <type>jar</type>
    1.58 -    </dependency>
    1.59 -    <dependency>
    1.60 -      <groupId>${project.groupId}</groupId>
    1.61 -      <artifactId>wsdor</artifactId>
    1.62 -      <version>${wsdorVersion}</version>
    1.63 -    </dependency>
    1.64 -  </dependencies>
    1.65 -  <build>
    1.66 -    <plugins>
    1.67 -      <plugin>
    1.68 -        <groupId>org.apache.maven.plugins</groupId>
    1.69 -        <artifactId>maven-compiler-plugin</artifactId>
    1.70 -        <version>2.0.2</version>
    1.71 -        <configuration>
    1.72 -          <source>1.5</source>
    1.73 -          <target>1.5</target>
    1.74 -        </configuration>
    1.75 -      </plugin>
    1.76 -      <plugin>
    1.77 -        <groupId>org.codehaus.mojo</groupId>
    1.78 -        <artifactId>exec-maven-plugin</artifactId>
    1.79 -        <configuration>
    1.80 -            <mainClass>cz.xelfi.quoridor.webidor.resources.Quoridor</mainClass>
    1.81 -        </configuration>
    1.82 -      </plugin>
    1.83 -      <plugin>
    1.84 -        <artifactId>maven-assembly-plugin</artifactId>
    1.85 -        <version>2.2-beta-2</version>
    1.86 -        <executions>
    1.87 -          <execution>
    1.88 -            <id>create-executable-jar</id>
    1.89 -            <phase>package</phase>
    1.90 -            <goals>
    1.91 -              <goal>single</goal>
    1.92 -            </goals>
    1.93 -            <configuration>
    1.94 -              <descriptors>
    1.95 -                <descriptor>all-zip.xml</descriptor>
    1.96 -              </descriptors>
    1.97 -              <finalName>webidor-${version}</finalName>
    1.98 -            </configuration>
    1.99 -          </execution>
   1.100 -        </executions>
   1.101 -      </plugin>
   1.102 -      <plugin>
   1.103 -        <groupId>org.apache.maven.plugins</groupId>
   1.104 -        <artifactId>maven-jar-plugin</artifactId>
   1.105 -        <configuration>
   1.106 -            <archive>
   1.107 -                <manifest>
   1.108 -                    <addClasspath>true</addClasspath>
   1.109 -                    <classpathPrefix>lib/</classpathPrefix>
   1.110 -                    <mainClass>cz.xelfi.quoridor.webidor.resources.Quoridor</mainClass>
   1.111 -                </manifest>
   1.112 -            </archive>
   1.113 -        </configuration>
   1.114 -      </plugin>
   1.115 -    </plugins>
   1.116 -  </build>
   1.117 -    <description>Server with REST API for playing, inspecting and managing Quoridor games.</description>
   1.118 +    <properties>
   1.119 +        <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
   1.120 +        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   1.121 +        <netbeans.hint.deploy.server>gfv3ee6</netbeans.hint.deploy.server>
   1.122 +    </properties>
   1.123 +
   1.124 +    <dependencies>
   1.125 +        <dependency>
   1.126 +            <groupId>javax</groupId>
   1.127 +            <artifactId>javaee-web-api</artifactId>
   1.128 +            <version>6.0</version>
   1.129 +            <scope>provided</scope>
   1.130 +        </dependency>
   1.131 +
   1.132 +        <dependency>
   1.133 +            <groupId>junit</groupId>
   1.134 +            <artifactId>junit</artifactId>
   1.135 +            <version>4.8.2</version>
   1.136 +            <scope>test</scope>
   1.137 +        </dependency>
   1.138 +        <dependency>
   1.139 +            <groupId>com.sun.jersey</groupId>
   1.140 +            <artifactId>jersey-json</artifactId>
   1.141 +            <version>${jerseyVersion}</version>
   1.142 +            <type>jar</type>
   1.143 +            <exclusions>
   1.144 +                <exclusion>
   1.145 +                    <artifactId>jaxb-api</artifactId>
   1.146 +                    <groupId>javax.xml.bind</groupId>
   1.147 +                </exclusion>
   1.148 +                <exclusion>
   1.149 +                    <artifactId>stax-api</artifactId>
   1.150 +                    <groupId>stax</groupId>
   1.151 +                </exclusion>
   1.152 +                <exclusion>
   1.153 +                    <artifactId>jersey-core</artifactId>
   1.154 +                    <groupId>com.sun.jersey</groupId>
   1.155 +                </exclusion>
   1.156 +            </exclusions>
   1.157 +        </dependency>
   1.158 +        <dependency>
   1.159 +            <groupId>com.sun.jersey.jersey-test-framework</groupId>
   1.160 +            <artifactId>jersey-test-framework-http</artifactId>
   1.161 +            <version>${jerseyVersion}</version>
   1.162 +            <scope>test</scope>
   1.163 +        </dependency>
   1.164 +        <dependency>
   1.165 +            <groupId>${project.groupId}</groupId>
   1.166 +            <artifactId>wsdor</artifactId>
   1.167 +            <version>${wsdorVersion}</version>
   1.168 +        </dependency>        
   1.169 +    </dependencies>
   1.170 +
   1.171 +    <build>
   1.172 +        <plugins>
   1.173 +            <plugin>
   1.174 +                <groupId>org.apache.maven.plugins</groupId>
   1.175 +                <artifactId>maven-compiler-plugin</artifactId>
   1.176 +                <version>2.3.2</version>
   1.177 +                <configuration>
   1.178 +                    <source>1.6</source>
   1.179 +                    <target>1.6</target>
   1.180 +                    <compilerArguments>
   1.181 +                        <endorseddirs>${endorsed.dir}</endorseddirs>
   1.182 +                    </compilerArguments>
   1.183 +                </configuration>
   1.184 +            </plugin>
   1.185 +            <plugin>
   1.186 +                <groupId>org.apache.maven.plugins</groupId>
   1.187 +                <artifactId>maven-war-plugin</artifactId>
   1.188 +                <version>2.1.1</version>
   1.189 +                <configuration>
   1.190 +                    <failOnMissingWebXml>false</failOnMissingWebXml>
   1.191 +                </configuration>
   1.192 +            </plugin>
   1.193 +            <plugin>
   1.194 +                <groupId>org.apache.maven.plugins</groupId>
   1.195 +                <artifactId>maven-dependency-plugin</artifactId>
   1.196 +                <version>2.1</version>
   1.197 +                <executions>
   1.198 +                    <execution>
   1.199 +                        <phase>validate</phase>
   1.200 +                        <goals>
   1.201 +                            <goal>copy</goal>
   1.202 +                        </goals>
   1.203 +                        <configuration>
   1.204 +                            <outputDirectory>${endorsed.dir}</outputDirectory>
   1.205 +                            <silent>true</silent>
   1.206 +                            <artifactItems>
   1.207 +                                <artifactItem>
   1.208 +                                    <groupId>javax</groupId>
   1.209 +                                    <artifactId>javaee-endorsed-api</artifactId>
   1.210 +                                    <version>6.0</version>
   1.211 +                                    <type>jar</type>
   1.212 +                                </artifactItem>
   1.213 +                            </artifactItems>
   1.214 +                        </configuration>
   1.215 +                    </execution>
   1.216 +                </executions>
   1.217 +            </plugin>
   1.218 +            <plugin>
   1.219 +                <groupId>org.apache.maven.plugins</groupId>
   1.220 +                <artifactId>maven-surefire-plugin</artifactId>
   1.221 +                <version>2.9</version>
   1.222 +                <configuration>
   1.223 +                    <skipTests>true</skipTests>
   1.224 +                </configuration>
   1.225 +            </plugin>
   1.226 +        </plugins>
   1.227 +    </build>
   1.228 +    <repositories>
   1.229 +        <repository>
   1.230 +            <url>http://download.java.net/maven/2/</url>
   1.231 +            <id>restlib</id>
   1.232 +            <layout>default</layout>
   1.233 +            <name>Repository for library Library[restlib]</name>
   1.234 +        </repository>
   1.235 +    </repositories>
   1.236  </project>
   1.237 -
   1.238 -
   1.239 -