| <?xml version="1.0" encoding="UTF-8"?> | 
 | <!-- | 
 |  | 
 |     Copyright (c) 2010, 2024 Oracle and/or its affiliates. All rights reserved. | 
 |  | 
 |     This program and the accompanying materials are made available under the | 
 |     terms of the Eclipse Distribution License v. 1.0, which is available at | 
 |     http://www.eclipse.org/org/documents/edl-v10.php. | 
 |  | 
 |     SPDX-License-Identifier: BSD-3-Clause | 
 |  | 
 | --> | 
 |  | 
 | <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"> | 
 |  | 
 |     <modelVersion>4.0.0</modelVersion> | 
 |  | 
 |     <parent> | 
 |         <groupId>org.glassfish.jersey.examples</groupId> | 
 |         <artifactId>osgi-http-service</artifactId> | 
 |         <version>3.1.0-SNAPSHOT</version> | 
 |     </parent> | 
 |  | 
 |     <groupId>org.glassfish.jersey.examples.osgi-http-service</groupId> | 
 |     <artifactId>functional-test</artifactId> | 
 |     <packaging>pom</packaging> | 
 |     <name>jersey-examples-osgi-http-service-test</name> | 
 |  | 
 |     <dependencies> | 
 |         <!-- Example bundle --> | 
 |         <dependency> | 
 |             <groupId>org.glassfish.jersey.examples.osgi-http-service</groupId> | 
 |             <artifactId>bundle</artifactId> | 
 |             <version>${project.version}</version> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |  | 
 |         <dependency> | 
 |             <groupId>org.glassfish.jersey.core</groupId> | 
 |             <artifactId>jersey-client</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |         <dependency> | 
 |             <groupId>jakarta.annotation</groupId> | 
 |             <artifactId>jakarta.annotation-api</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |  | 
 |         <dependency> | 
 |             <groupId>org.glassfish.hk2.external</groupId> | 
 |             <artifactId>aopalliance-repackaged</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |         <dependency> | 
 |             <groupId>org.javassist</groupId> | 
 |             <artifactId>javassist</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |  | 
 |         <!-- OSGi runtime - Felix --> | 
 |         <dependency> | 
 |             <groupId>org.apache.felix</groupId> | 
 |             <artifactId>org.apache.felix.framework</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |         <dependency> | 
 |             <groupId>org.apache.felix</groupId> | 
 |             <artifactId>org.apache.felix.eventadmin</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |  | 
 |         <!-- Pax-Exam and JUnit dependencies --> | 
 |         <dependency> | 
 |             <groupId>org.ops4j.pax.exam</groupId> | 
 |             <artifactId>pax-exam</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |         <dependency> | 
 |             <groupId>org.ops4j.pax.exam</groupId> | 
 |             <artifactId>pax-exam-junit4</artifactId> | 
 |         </dependency> | 
 |         <dependency> | 
 |             <groupId>org.ops4j.pax.exam</groupId> | 
 |             <artifactId>pax-exam-container-forked</artifactId> | 
 |         </dependency> | 
 |  | 
 |         <dependency> | 
 |             <groupId>org.ops4j.pax.exam</groupId> | 
 |             <artifactId>pax-exam-link-mvn</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |         <dependency> | 
 |             <groupId>org.ops4j.pax.web</groupId> | 
 |             <artifactId>pax-web-jetty-bundle</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |         <dependency> | 
 |             <groupId>org.ops4j.pax.web</groupId> | 
 |             <artifactId>pax-web-extender-war</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |         <dependency> | 
 |             <groupId>org.ops4j.pax.url</groupId> | 
 |             <artifactId>pax-url-mvn</artifactId> | 
 |             <version>1.3.7</version> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |  | 
 |         <dependency> | 
 |             <groupId>org.osgi</groupId> | 
 |             <artifactId>org.osgi.service.http</artifactId> | 
 |             <version>1.2.1</version> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |         <dependency> | 
 |             <groupId>org.osgi</groupId> | 
 |             <artifactId>org.osgi.service.cm</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |  | 
 |  | 
 |         <dependency> | 
 |             <groupId>junit</groupId> | 
 |             <artifactId>junit</artifactId> | 
 |             <version>${junit4.version}</version> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |  | 
 |         <!-- Grizzly dependencies--> | 
 |         <dependency> | 
 |             <groupId>org.glassfish.grizzly.osgi</groupId> | 
 |             <artifactId>grizzly-httpservice-bundle</artifactId> | 
 |             <scope>test</scope> | 
 |             <version>${grizzly2.version}</version> | 
 |         </dependency> | 
 |  | 
 |  | 
 |         <dependency> | 
 |             <groupId>org.glassfish.jersey.containers</groupId> | 
 |             <artifactId>jersey-container-grizzly2-servlet</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |  | 
 |         <!-- Logging dependencies--> | 
 |         <dependency> | 
 |             <groupId>org.slf4j</groupId> | 
 |             <artifactId>slf4j-log4j12</artifactId> | 
 |             <version>2.0.13</version> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |  | 
 |         <dependency> | 
 |             <groupId>com.sun.xml.bind</groupId> | 
 |             <artifactId>jaxb-osgi</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |         <dependency> | 
 |             <groupId>jakarta.xml.bind</groupId> | 
 |             <artifactId>jakarta.xml.bind-api</artifactId> | 
 |             <scope>test</scope> | 
 |         </dependency> | 
 |     </dependencies> | 
 |  | 
 |     <build> | 
 |         <plugins> | 
 |             <plugin> | 
 |                 <groupId>org.ops4j.pax.exam</groupId> | 
 |                 <artifactId>maven-paxexam-plugin</artifactId> | 
 |                 <executions> | 
 |                     <execution> | 
 |                         <id>generate-config</id> | 
 |                         <goals> | 
 |                             <goal>generate-depends-file</goal> | 
 |                         </goals> | 
 |                     </execution> | 
 |                 </executions> | 
 |             </plugin> | 
 |             <plugin> | 
 |                 <groupId>org.apache.maven.plugins</groupId> | 
 |                 <artifactId>maven-compiler-plugin</artifactId> | 
 |                 <executions> | 
 |                     <execution> | 
 |                         <id>test-compile</id> | 
 |                         <phase>test-compile</phase> | 
 |                         <goals> | 
 |                             <goal>testCompile</goal> | 
 |                         </goals> | 
 |                     </execution> | 
 |                 </executions> | 
 |             </plugin> | 
 |             <plugin> | 
 |                 <groupId>org.apache.maven.plugins</groupId> | 
 |                 <artifactId>maven-resources-plugin</artifactId> | 
 |                 <executions> | 
 |                     <execution> | 
 |                         <phase>process-test-resources</phase> | 
 |                         <goals> | 
 |                             <goal>testResources</goal> | 
 |                         </goals> | 
 |                     </execution> | 
 |                 </executions> | 
 |             </plugin> | 
 |             <plugin> | 
 |                 <groupId>org.apache.maven.plugins</groupId> | 
 |                 <artifactId>maven-surefire-plugin</artifactId> | 
 |                 <configuration> | 
 |                     <forkMode>always</forkMode> | 
 |                     <enableAssertions>false</enableAssertions> | 
 |                 </configuration> | 
 |                 <executions> | 
 |                     <execution> | 
 |                         <id>test</id> | 
 |                         <phase>test</phase> | 
 |                         <goals> | 
 |                             <goal>test</goal> | 
 |                         </goals> | 
 |                         <configuration> | 
 |                             <excludes> | 
 |                                 <!-- | 
 |                                 excluded due to jakarta.servlet-api collision - | 
 |                                 more than one version is required, so it is not possible to execute that test. | 
 |                                 (since pax-exam version 4.13.5) | 
 |                                   --> | 
 |                                 <exclude>org.glassfish.jersey.examples.osgihttpservice.test.GrizzlyHttpServiceFelixTest</exclude> | 
 |                             </excludes> | 
 |                         </configuration> | 
 |                     </execution> | 
 |                 </executions> | 
 |             </plugin> | 
 |         </plugins> | 
 |     </build> | 
 |  | 
 |     <profiles> | 
 |         <profile> | 
 |             <id>testsJdk11</id> | 
 |             <activation> | 
 |                 <jdk>[11,)</jdk> | 
 |             </activation> | 
 |             <dependencies> | 
 |                 <dependency> | 
 |                     <groupId>com.sun.activation</groupId> | 
 |                     <artifactId>jakarta.activation</artifactId> | 
 |                     <version>${jakarta.activation.version}</version> | 
 |                 </dependency> | 
 |             </dependencies> | 
 |         </profile> | 
 |         <profile> | 
 |             <id>jdk8</id> | 
 |             <activation> | 
 |                 <jdk>1.8</jdk> | 
 |             </activation> | 
 |             <build> | 
 |                 <plugins> | 
 |                     <plugin> | 
 |                         <groupId>org.apache.maven.plugins</groupId> | 
 |                         <artifactId>maven-surefire-plugin</artifactId> | 
 |                         <configuration> | 
 |                             <excludes> | 
 |                                 <exclude>**/GrizzlyHttpServiceFelixTest.java</exclude> | 
 |                                 <exclude>**/JettyHttpServiceFelixTest.java</exclude> | 
 |                             </excludes> | 
 |                         </configuration> | 
 |                     </plugin> | 
 |                 </plugins> | 
 |             </build> | 
 |         </profile> | 
 |         <profile> | 
 |             <id>release</id> | 
 |             <!-- do not create source zip bundles --> | 
 |             <build> | 
 |                 <plugins> | 
 |                     <plugin> | 
 |                         <groupId>org.apache.maven.plugins</groupId> | 
 |                         <artifactId>maven-assembly-plugin</artifactId> | 
 |                         <configuration> | 
 |                             <skipAssembly>true</skipAssembly> | 
 |                         </configuration> | 
 |                     </plugin> | 
 |                 </plugins> | 
 |             </build> | 
 |         </profile> | 
 |         <profile> | 
 |             <id>sonar</id> | 
 |             <build> | 
 |                 <pluginManagement> | 
 |                     <plugins> | 
 |                         <plugin> | 
 |                             <groupId>org.apache.maven.plugins</groupId> | 
 |                             <artifactId>maven-surefire-plugin</artifactId> | 
 |                             <configuration> | 
 |                                 <!-- disable JaCoCo listener because it's not working with <forkMode>always</fork> (<reuseForks>false</reuseForks> respectively) | 
 |                                 https://jira.sonarsource.com/browse/SONARJAVA-728 (https://github.com/SonarSource/sonar-java/pull/324) --> | 
 |                                 <properties combine.self="override" /> | 
 |                             </configuration> | 
 |                         </plugin> | 
 |                     </plugins> | 
 |                 </pluginManagement> | 
 |             </build> | 
 |         </profile> | 
 |     </profiles> | 
 |  | 
 | </project> |