| 1 |
<!-- |
| 2 |
This library is free software; you can redistribute it and/or modify it under the terms of |
| 3 |
the GNU Lesser General Public License as published by the Free Software Foundation; |
| 4 |
either version 2.1 of the License, or (at your option) any later version. |
| 5 |
|
| 6 |
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 7 |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 8 |
PURPOSE. See the GNU Lesser General Public License for more details. |
| 9 |
|
| 10 |
You should have received a copy of the GNU Lesser General Public License along with this |
| 11 |
library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 12 |
Boston, MA 02110-1301 USA |
| 13 |
--> |
| 14 |
<!-- This file is used to build and run all the examples --> |
| 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 |
<name>OReilly Workbook Examples</name> |
| 17 |
<modelVersion>4.0.0</modelVersion> |
| 18 |
<parent> |
| 19 |
<groupId>com.sun.jersey.contribs</groupId> |
| 20 |
<artifactId>jersey-contribs</artifactId> |
| 21 |
<version>1.19.3</version> |
| 22 |
</parent> |
| 23 |
|
| 24 |
<groupId>com.sun.jersey.contribs.bill-burke-book</groupId> |
| 25 |
<artifactId>bill-burke-book-examples</artifactId> |
| 26 |
<version>1.19.3</version> |
| 27 |
<packaging>pom</packaging> |
| 28 |
|
| 29 |
<dependencyManagement> |
| 30 |
<dependencies> |
| 31 |
<dependency> |
| 32 |
<groupId>com.sun.xml.bind</groupId> |
| 33 |
<artifactId>jaxb-impl</artifactId> |
| 34 |
<version>2.2.3-1</version> |
| 35 |
</dependency> |
| 36 |
<dependency> |
| 37 |
<groupId>junit</groupId> |
| 38 |
<artifactId>junit</artifactId> |
| 39 |
<version>4.8.2</version> |
| 40 |
</dependency> |
| 41 |
</dependencies> |
| 42 |
</dependencyManagement> |
| 43 |
|
| 44 |
<modules> |
| 45 |
<module>ex03_1</module> |
| 46 |
<module>ex04_1</module> |
| 47 |
<module>ex04_2</module> |
| 48 |
<module>ex04_3</module> |
| 49 |
<module>ex05_1</module> |
| 50 |
<module>ex05_2</module> |
| 51 |
<module>ex06_1</module> |
| 52 |
<module>ex06_2</module> |
| 53 |
<module>ex07_1</module> |
| 54 |
<module>ex08_1</module> |
| 55 |
<module>ex08_2</module> |
| 56 |
<module>ex09_1</module> |
| 57 |
<module>ex09_2</module> |
| 58 |
<module>ex10_1</module> |
| 59 |
<module>ex11_2</module> |
| 60 |
</modules> |
| 61 |
|
| 62 |
<profiles> |
| 63 |
<profile> |
| 64 |
<id>hudson</id> |
| 65 |
<activation> |
| 66 |
<property> |
| 67 |
<name>env.JERSEY_HTTP_PORT</name> |
| 68 |
</property> |
| 69 |
</activation> |
| 70 |
<properties> |
| 71 |
<my.jetty.port>${env.JERSEY_HTTP_PORT}</my.jetty.port> |
| 72 |
<my.jetty.stop.port>${env.JETTY_STOP_PORT}</my.jetty.stop.port> |
| 73 |
</properties> |
| 74 |
</profile> |
| 75 |
<profile> |
| 76 |
<id>non-hudson</id> |
| 77 |
<activation> |
| 78 |
<activeByDefault>true</activeByDefault> |
| 79 |
</activation> |
| 80 |
<properties> |
| 81 |
<my.jetty.port>9095</my.jetty.port> |
| 82 |
<my.jetty.stop.port>9999</my.jetty.stop.port> |
| 83 |
</properties> |
| 84 |
</profile> |
| 85 |
<profile> |
| 86 |
<id>cobertura</id> |
| 87 |
<activation> |
| 88 |
<property> |
| 89 |
<name>cobertura</name> |
| 90 |
</property> |
| 91 |
</activation> |
| 92 |
<properties> |
| 93 |
<my.jetty.port>9095</my.jetty.port> |
| 94 |
<my.jetty.stop.port>9999</my.jetty.stop.port> |
| 95 |
</properties> |
| 96 |
<dependencies> |
| 97 |
<dependency> |
| 98 |
<groupId>net.sourceforge.cobertura</groupId> |
| 99 |
<artifactId>cobertura</artifactId> |
| 100 |
<optional>true</optional> |
| 101 |
<version>1.9.4.1</version> |
| 102 |
</dependency> |
| 103 |
</dependencies> |
| 104 |
<build> |
| 105 |
<plugins> |
| 106 |
<plugin> |
| 107 |
<groupId>org.codehaus.mojo</groupId> |
| 108 |
<artifactId>cobertura-maven-plugin</artifactId> |
| 109 |
<executions> |
| 110 |
<execution> |
| 111 |
<id>cobertura-instrument</id> |
| 112 |
<phase>pre-integration-test</phase> |
| 113 |
<goals> |
| 114 |
<goal>instrument</goal> |
| 115 |
</goals> |
| 116 |
</execution> |
| 117 |
</executions> |
| 118 |
</plugin> |
| 119 |
|
| 120 |
<plugin> |
| 121 |
<groupId>org.apache.maven.plugins</groupId> |
| 122 |
<artifactId>maven-jar-plugin</artifactId> |
| 123 |
<executions> |
| 124 |
<execution> |
| 125 |
<id>cobertura-jar</id> |
| 126 |
<phase>post-integration-test</phase> |
| 127 |
<goals> |
| 128 |
<goal>jar</goal> |
| 129 |
</goals> |
| 130 |
<configuration> |
| 131 |
<classifier>cobertura</classifier> |
| 132 |
<classesDirectory>${basedir}/target/generated-classes/cobertura</classesDirectory> |
| 133 |
</configuration> |
| 134 |
</execution> |
| 135 |
</executions> |
| 136 |
</plugin> |
| 137 |
|
| 138 |
<plugin> |
| 139 |
<groupId>org.apache.maven.plugins</groupId> |
| 140 |
<artifactId>maven-install-plugin</artifactId> |
| 141 |
<executions> |
| 142 |
<execution> |
| 143 |
<id>cobertura-install</id> |
| 144 |
<phase>install</phase> |
| 145 |
<goals> |
| 146 |
<goal>install</goal> |
| 147 |
</goals> |
| 148 |
<configuration> |
| 149 |
<classifier>cobertura</classifier> |
| 150 |
</configuration> |
| 151 |
</execution> |
| 152 |
</executions> |
| 153 |
</plugin> |
| 154 |
</plugins> |
| 155 |
</build> |
| 156 |
</profile> |
| 157 |
</profiles> |
| 158 |
|
| 159 |
<build> |
| 160 |
<plugins> |
| 161 |
<plugin> |
| 162 |
<groupId>org.apache.maven.plugins</groupId> |
| 163 |
<artifactId>maven-compiler-plugin</artifactId> |
| 164 |
<version>2.3</version> |
| 165 |
<inherited>true</inherited> |
| 166 |
<configuration> |
| 167 |
<source>1.6</source> |
| 168 |
<target>1.6</target> |
| 169 |
</configuration> |
| 170 |
</plugin> |
| 171 |
<plugin> |
| 172 |
<artifactId>maven-assembly-plugin</artifactId> |
| 173 |
<configuration> |
| 174 |
<descriptors> |
| 175 |
<descriptor>assembly.xml</descriptor> |
| 176 |
</descriptors> |
| 177 |
</configuration> |
| 178 |
<executions> |
| 179 |
<execution> |
| 180 |
<id>make-assembly</id> <!-- this is used for inheritance merges --> |
| 181 |
<phase>package</phase> <!-- append to the packaging phase. --> |
| 182 |
<goals> |
| 183 |
<goal>attached</goal> <!-- goals == mojos --> |
| 184 |
</goals> |
| 185 |
</execution> |
| 186 |
</executions> |
| 187 |
</plugin> |
| 188 |
</plugins> |
| 189 |
</build> |
| 190 |
|
| 191 |
<licenses> |
| 192 |
<license> |
| 193 |
<name> |
| 194 |
GNU Lesser General Public License, version 2.1 |
| 195 |
</name> |
| 196 |
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url> |
| 197 |
<distribution>repo</distribution> |
| 198 |
</license> |
| 199 |
</licenses> |
| 200 |
|
| 201 |
</project> |