| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- |
| 3 |
This library is free software; you can redistribute it and/or modify it under the terms of |
| 4 |
the GNU Lesser General Public License as published by the Free Software Foundation; |
| 5 |
either version 2.1 of the License, or (at your option) any later version. |
| 6 |
|
| 7 |
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 8 |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 9 |
PURPOSE. See the GNU Lesser General Public License for more details. |
| 10 |
|
| 11 |
You should have received a copy of the GNU Lesser General Public License along with this |
| 12 |
library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 13 |
Boston, MA 02110-1301 USA |
| 14 |
--> |
| 15 |
<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/maven-v4_0_0.xsd"> |
| 16 |
<modelVersion>4.0.0</modelVersion> |
| 17 |
<parent> |
| 18 |
<groupId>com.sun.jersey.contribs.bill-burke-book</groupId> |
| 19 |
<artifactId>bill-burke-book-examples</artifactId> |
| 20 |
<version>1.19.3</version> |
| 21 |
</parent> |
| 22 |
<artifactId>ex04_3</artifactId> |
| 23 |
<packaging>war</packaging> |
| 24 |
<name>ex04_3</name> |
| 25 |
<description /> |
| 26 |
|
| 27 |
<profiles> |
| 28 |
<profile> |
| 29 |
<id>cobertura</id> |
| 30 |
<activation> |
| 31 |
<property> |
| 32 |
<name>cobertura</name> |
| 33 |
</property> |
| 34 |
</activation> |
| 35 |
<dependencies> |
| 36 |
<dependency> |
| 37 |
<groupId>com.sun.jersey</groupId> |
| 38 |
<artifactId>jersey-servlet</artifactId> |
| 39 |
<version>${project.version}</version> |
| 40 |
<classifier>cobertura</classifier> |
| 41 |
</dependency> |
| 42 |
<dependency> |
| 43 |
<groupId>com.sun.jersey</groupId> |
| 44 |
<artifactId>jersey-client</artifactId> |
| 45 |
<version>${project.version}</version> |
| 46 |
<scope>test</scope> |
| 47 |
<classifier>cobertura</classifier> |
| 48 |
</dependency> |
| 49 |
</dependencies> |
| 50 |
</profile> |
| 51 |
<profile> |
| 52 |
<id>default</id> |
| 53 |
<activation> |
| 54 |
<activeByDefault>true</activeByDefault> |
| 55 |
</activation> |
| 56 |
<dependencies> |
| 57 |
<dependency> |
| 58 |
<groupId>com.sun.jersey</groupId> |
| 59 |
<artifactId>jersey-servlet</artifactId> |
| 60 |
<version>${project.version}</version> |
| 61 |
</dependency> |
| 62 |
<dependency> |
| 63 |
<groupId>com.sun.jersey</groupId> |
| 64 |
<artifactId>jersey-client</artifactId> |
| 65 |
<version>${project.version}</version> |
| 66 |
<scope>test</scope> |
| 67 |
</dependency> |
| 68 |
</dependencies> |
| 69 |
</profile> |
| 70 |
</profiles> |
| 71 |
|
| 72 |
<dependencies> |
| 73 |
<dependency> |
| 74 |
<groupId>junit</groupId> |
| 75 |
<artifactId>junit</artifactId> |
| 76 |
<scope>test</scope> |
| 77 |
</dependency> |
| 78 |
</dependencies> |
| 79 |
|
| 80 |
<build> |
| 81 |
<plugins> |
| 82 |
<plugin> |
| 83 |
<groupId>org.apache.maven.plugins</groupId> |
| 84 |
<artifactId>maven-surefire-plugin</artifactId> |
| 85 |
<configuration> |
| 86 |
<skip>true</skip> |
| 87 |
</configuration> |
| 88 |
<executions> |
| 89 |
<execution> |
| 90 |
<id>surefire-it</id> |
| 91 |
<phase>integration-test</phase> |
| 92 |
<goals> |
| 93 |
<goal>test</goal> |
| 94 |
</goals> |
| 95 |
<configuration> |
| 96 |
<skip>false</skip> |
| 97 |
</configuration> |
| 98 |
</execution> |
| 99 |
</executions> |
| 100 |
</plugin> |
| 101 |
<plugin> |
| 102 |
<groupId>org.mortbay.jetty</groupId> |
| 103 |
<artifactId>maven-jetty-plugin</artifactId> |
| 104 |
<version>6.1.15</version> |
| 105 |
<configuration> |
| 106 |
<!-- By default the artifactId is taken, override it with something simple --> |
| 107 |
<contextPath>/</contextPath> |
| 108 |
<scanIntervalSeconds>2</scanIntervalSeconds> |
| 109 |
<stopKey>foo</stopKey> |
| 110 |
<stopPort>${my.jetty.stop.port}</stopPort> |
| 111 |
<connectors> |
| 112 |
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> |
| 113 |
<port>${my.jetty.port}</port> |
| 114 |
<maxIdleTime>60000</maxIdleTime> |
| 115 |
</connector> |
| 116 |
</connectors> |
| 117 |
</configuration> |
| 118 |
<executions> |
| 119 |
<execution> |
| 120 |
<id>start-jetty</id> |
| 121 |
<phase>pre-integration-test</phase> |
| 122 |
<goals> |
| 123 |
<goal>run</goal> |
| 124 |
</goals> |
| 125 |
<configuration> |
| 126 |
<scanIntervalSeconds>0</scanIntervalSeconds> |
| 127 |
<daemon>true</daemon> |
| 128 |
</configuration> |
| 129 |
</execution> |
| 130 |
<execution> |
| 131 |
<id>stop-jetty</id> |
| 132 |
<phase>post-integration-test</phase> |
| 133 |
<goals> |
| 134 |
<goal>stop</goal> |
| 135 |
</goals> |
| 136 |
</execution> |
| 137 |
</executions> |
| 138 |
</plugin> |
| 139 |
</plugins> |
| 140 |
</build> |
| 141 |
</project> |