| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- |
| 3 |
|
| 4 |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
| 5 |
|
| 6 |
Copyright (c) 2010-2016 Oracle and/or its affiliates. All rights reserved. |
| 7 |
|
| 8 |
The contents of this file are subject to the terms of either the GNU |
| 9 |
General Public License Version 2 only ("GPL") or the Common Development |
| 10 |
and Distribution License("CDDL") (collectively, the "License"). You |
| 11 |
may not use this file except in compliance with the License. You can |
| 12 |
obtain a copy of the License at |
| 13 |
http://glassfish.java.net/public/CDDL+GPL_1_1.html |
| 14 |
or packager/legal/LICENSE.txt. See the License for the specific |
| 15 |
language governing permissions and limitations under the License. |
| 16 |
|
| 17 |
When distributing the software, include this License Header Notice in each |
| 18 |
file and include the License file at packager/legal/LICENSE.txt. |
| 19 |
|
| 20 |
GPL Classpath Exception: |
| 21 |
Oracle designates this particular file as subject to the "Classpath" |
| 22 |
exception as provided by Oracle in the GPL Version 2 section of the License |
| 23 |
file that accompanied this code. |
| 24 |
|
| 25 |
Modifications: |
| 26 |
If applicable, add the following below the License Header, with the fields |
| 27 |
enclosed by brackets [] replaced by your own identifying information: |
| 28 |
"Portions Copyright [year] [name of copyright owner]" |
| 29 |
|
| 30 |
Contributor(s): |
| 31 |
If you wish your version of this file to be governed by only the CDDL or |
| 32 |
only the GPL Version 2, indicate your decision by adding "[Contributor] |
| 33 |
elects to include this software in this distribution under the [CDDL or GPL |
| 34 |
Version 2] license." If you don't indicate a single choice of license, a |
| 35 |
recipient has the option to distribute your version of this file under |
| 36 |
either the CDDL, the GPL Version 2 or to extend the choice of license to |
| 37 |
its licensees as provided above. However, if you add GPL Version 2 code |
| 38 |
and therefore, elected the GPL Version 2 license, then the option applies |
| 39 |
only if the new code is made subject to such option by the copyright |
| 40 |
holder. |
| 41 |
|
| 42 |
--> |
| 43 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 44 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 45 |
<modelVersion>4.0.0</modelVersion> |
| 46 |
<parent> |
| 47 |
<groupId>net.java</groupId> |
| 48 |
<artifactId>jvnet-parent</artifactId> |
| 49 |
<version>1</version> |
| 50 |
</parent> |
| 51 |
<groupId>com.sun.jersey.samples.helloworld-osgi-webapp</groupId> |
| 52 |
<artifactId>functional-test</artifactId> |
| 53 |
<version>1.20-SNAPSHOT</version> |
| 54 |
<packaging>pom</packaging> |
| 55 |
|
| 56 |
<name>Helloworld OSGi WebApp - Jersey Sample Test</name> |
| 57 |
|
| 58 |
<!-- we can use full maven properties incl. inheritance ! --> |
| 59 |
<properties> |
| 60 |
<junit-version>4.5</junit-version> |
| 61 |
<pax-exam-version>1.2.3</pax-exam-version> |
| 62 |
<osgi-version>4.2.0</osgi-version> |
| 63 |
<jetty-version>0.7.1</jetty-version> |
| 64 |
<slf4j-log4j-binding-impl-version>1.6.4</slf4j-log4j-binding-impl-version> |
| 65 |
</properties> |
| 66 |
|
| 67 |
<profiles> |
| 68 |
<!-- To use this profile, must first build Jersey source with "mvn clean install -Dcobertura" --> |
| 69 |
<profile> |
| 70 |
<id>cobertura</id> |
| 71 |
<activation> |
| 72 |
<property> |
| 73 |
<name>cobertura</name> |
| 74 |
</property> |
| 75 |
</activation> |
| 76 |
<dependencies> |
| 77 |
<dependency> |
| 78 |
<groupId>com.sun.jersey</groupId> |
| 79 |
<artifactId>jersey-grizzly</artifactId> |
| 80 |
<scope>test</scope> |
| 81 |
<version>${project.version}</version> |
| 82 |
<classifier>cobertura</classifier> |
| 83 |
</dependency> |
| 84 |
<dependency> |
| 85 |
<groupId>com.sun.jersey</groupId> |
| 86 |
<artifactId>jersey-client</artifactId> |
| 87 |
<scope>test</scope> |
| 88 |
<version>${project.version}</version> |
| 89 |
<classifier>cobertura</classifier> |
| 90 |
</dependency> |
| 91 |
</dependencies> |
| 92 |
</profile> |
| 93 |
<profile> |
| 94 |
<id>default</id> |
| 95 |
<activation> |
| 96 |
<activeByDefault>true</activeByDefault> |
| 97 |
</activation> |
| 98 |
<dependencies> |
| 99 |
<dependency> |
| 100 |
<groupId>com.sun.jersey</groupId> |
| 101 |
<artifactId>jersey-grizzly</artifactId> |
| 102 |
<scope>test</scope> |
| 103 |
<version>${project.version}</version> |
| 104 |
</dependency> |
| 105 |
<dependency> |
| 106 |
<groupId>com.sun.jersey</groupId> |
| 107 |
<artifactId>jersey-client</artifactId> |
| 108 |
<scope>test</scope> |
| 109 |
<version>${project.version}</version> |
| 110 |
</dependency> |
| 111 |
</dependencies> |
| 112 |
</profile> |
| 113 |
<profile> |
| 114 |
<id>release</id> |
| 115 |
<build> |
| 116 |
<plugins> |
| 117 |
<plugin> |
| 118 |
<groupId>org.apache.maven.plugins</groupId> |
| 119 |
<artifactId>maven-gpg-plugin</artifactId> |
| 120 |
<version>1.1</version> |
| 121 |
<executions> |
| 122 |
<execution> |
| 123 |
<id>sign-artifact</id> |
| 124 |
<phase>verify</phase> |
| 125 |
<goals> |
| 126 |
<goal>sign</goal> |
| 127 |
</goals> |
| 128 |
</execution> |
| 129 |
</executions> |
| 130 |
</plugin> |
| 131 |
</plugins> |
| 132 |
</build> |
| 133 |
</profile> |
| 134 |
</profiles> |
| 135 |
|
| 136 |
<dependencies> |
| 137 |
<dependency> |
| 138 |
<groupId>com.sun.jersey.samples.helloworld-osgi-webapp</groupId> |
| 139 |
<artifactId>war-bundle</artifactId> |
| 140 |
<type>war</type> |
| 141 |
<version>${project.version}</version> |
| 142 |
<scope>test</scope> |
| 143 |
</dependency> |
| 144 |
<dependency> |
| 145 |
<groupId>org.slf4j</groupId> |
| 146 |
<artifactId>slf4j-log4j12</artifactId> |
| 147 |
<version>${slf4j-log4j-binding-impl-version}</version> |
| 148 |
<scope>test</scope> |
| 149 |
</dependency> |
| 150 |
<dependency> |
| 151 |
<groupId>org.ops4j.pax.exam</groupId> |
| 152 |
<artifactId>pax-exam</artifactId> |
| 153 |
<version>${pax-exam-version}</version> |
| 154 |
<scope>test</scope> |
| 155 |
</dependency> |
| 156 |
<dependency> |
| 157 |
<groupId>org.ops4j.pax.exam</groupId> |
| 158 |
<artifactId>pax-exam-junit</artifactId> |
| 159 |
<version>${pax-exam-version}</version> |
| 160 |
<scope>test</scope> |
| 161 |
</dependency> |
| 162 |
<dependency> |
| 163 |
<groupId>org.ops4j.pax.exam</groupId> |
| 164 |
<artifactId>pax-exam-container-default</artifactId> |
| 165 |
<version>${pax-exam-version}</version> |
| 166 |
<scope>test</scope> |
| 167 |
</dependency> |
| 168 |
<dependency> |
| 169 |
<groupId>junit</groupId> |
| 170 |
<artifactId>junit</artifactId> |
| 171 |
<version>${junit-version}</version> |
| 172 |
<scope>test</scope> |
| 173 |
</dependency> |
| 174 |
<dependency> |
| 175 |
<groupId>org.osgi</groupId> |
| 176 |
<artifactId>org.osgi.core</artifactId> |
| 177 |
<version>${osgi-version}</version> |
| 178 |
<scope>test</scope> |
| 179 |
</dependency> |
| 180 |
<dependency> |
| 181 |
<groupId>org.osgi</groupId> |
| 182 |
<artifactId>org.osgi.compendium</artifactId> |
| 183 |
<version>${osgi-version}</version> |
| 184 |
<scope>test</scope> |
| 185 |
</dependency> |
| 186 |
<dependency> |
| 187 |
<groupId>org.apache.felix</groupId> |
| 188 |
<artifactId>org.apache.felix.eventadmin</artifactId> |
| 189 |
<version>1.2.2</version> |
| 190 |
<scope>test</scope> |
| 191 |
</dependency> |
| 192 |
<dependency> |
| 193 |
<groupId>org.eclipse.equinox</groupId> |
| 194 |
<artifactId>event</artifactId> |
| 195 |
<version>1.0.100-v20070516</version> |
| 196 |
<scope>test</scope> |
| 197 |
</dependency> |
| 198 |
<dependency> |
| 199 |
<groupId>org.ops4j.pax.web</groupId> |
| 200 |
<artifactId>pax-web-jetty-bundle</artifactId> |
| 201 |
<version>${jetty-version}</version> |
| 202 |
<scope>test</scope> |
| 203 |
</dependency> |
| 204 |
<dependency> |
| 205 |
<groupId>org.ops4j.pax.web</groupId> |
| 206 |
<artifactId>pax-web-extender-war</artifactId> |
| 207 |
<version>${jetty-version}</version> |
| 208 |
<scope>test</scope> |
| 209 |
</dependency> |
| 210 |
</dependencies> |
| 211 |
|
| 212 |
<build> |
| 213 |
<plugins> |
| 214 |
<plugin> |
| 215 |
<groupId>org.ops4j.pax.exam</groupId> |
| 216 |
<artifactId>maven-paxexam-plugin</artifactId> |
| 217 |
<version>${pax-exam-version}</version> |
| 218 |
<executions> |
| 219 |
<execution> |
| 220 |
<id>generate-config</id> |
| 221 |
<goals> |
| 222 |
<goal>generate-depends-file</goal> |
| 223 |
</goals> |
| 224 |
</execution> |
| 225 |
</executions> |
| 226 |
</plugin> |
| 227 |
<plugin> |
| 228 |
<groupId>org.apache.maven.plugins</groupId> |
| 229 |
<artifactId>maven-compiler-plugin</artifactId> |
| 230 |
<executions> |
| 231 |
<execution> |
| 232 |
<id>test-compile</id> |
| 233 |
<phase>test-compile</phase> |
| 234 |
<goals> |
| 235 |
<goal>testCompile</goal> |
| 236 |
</goals> |
| 237 |
</execution> |
| 238 |
</executions> |
| 239 |
</plugin> |
| 240 |
<plugin> |
| 241 |
<artifactId>maven-resources-plugin</artifactId> |
| 242 |
<executions> |
| 243 |
<execution> |
| 244 |
<phase>process-test-resources</phase> |
| 245 |
<goals> |
| 246 |
<goal>testResources</goal> |
| 247 |
</goals> |
| 248 |
</execution> |
| 249 |
</executions> |
| 250 |
</plugin> |
| 251 |
<plugin> |
| 252 |
<artifactId>maven-surefire-plugin</artifactId> |
| 253 |
<configuration> |
| 254 |
<excludes> |
| 255 |
<exclude>**/*EquinoxTest.java</exclude> |
| 256 |
</excludes> |
| 257 |
<forkMode>always</forkMode> |
| 258 |
<enableAssertions>false</enableAssertions> |
| 259 |
</configuration> |
| 260 |
<executions> |
| 261 |
<execution> |
| 262 |
<id>test</id> |
| 263 |
<phase>test</phase> |
| 264 |
<goals> |
| 265 |
<goal>test</goal> |
| 266 |
</goals> |
| 267 |
</execution> |
| 268 |
</executions> |
| 269 |
</plugin> |
| 270 |
</plugins> |
| 271 |
</build> |
| 272 |
|
| 273 |
</project> |