Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | |
jersey-bot | 59a5d50 | 2024-01-07 02:21:04 +0000 | [diff] [blame] | 4 | Copyright (c) 2010, 2024 Oracle and/or its affiliates. All rights reserved. |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 5 | |
| 6 | This program and the accompanying materials are made available under the |
| 7 | terms of the Eclipse Public License v. 2.0, which is available at |
| 8 | http://www.eclipse.org/legal/epl-2.0. |
| 9 | |
| 10 | This Source Code may also be made available under the following Secondary |
| 11 | Licenses when the conditions for such availability set forth in the |
| 12 | Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| 13 | version 2 with the GNU Classpath Exception, which is available at |
| 14 | https://www.gnu.org/software/classpath/license.html. |
| 15 | |
| 16 | SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| 17 | |
| 18 | --> |
| 19 | |
| 20 | <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"> |
| 21 | <modelVersion>4.0.0</modelVersion> |
| 22 | |
| 23 | <parent> |
| 24 | <groupId>org.glassfish.jersey</groupId> |
| 25 | <artifactId>project</artifactId> |
jersey-bot | 9727e9a | 2024-01-07 02:21:50 +0000 | [diff] [blame] | 26 | <version>4.0.99-SNAPSHOT</version> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 27 | </parent> |
| 28 | |
| 29 | <groupId>org.glassfish.jersey.core</groupId> |
| 30 | <artifactId>jersey-common</artifactId> |
| 31 | <packaging>jar</packaging> |
| 32 | <name>jersey-core-common</name> |
| 33 | |
| 34 | <description>Jersey core common packages</description> |
| 35 | |
| 36 | <licenses> |
| 37 | <license> |
| 38 | <name>EPL 2.0</name> |
| 39 | <url>http://www.eclipse.org/legal/epl-2.0</url> |
| 40 | <distribution>repo</distribution> |
| 41 | <comments>Except for Guava, JSR-166 files, Dropwizard Monitoring inspired classes, ASM and Jackson JAX-RS Providers. |
| 42 | See also https://github.com/eclipse-ee4j/jersey/blob/master/NOTICE.md</comments> |
| 43 | </license> |
| 44 | <license> |
| 45 | <name>The GNU General Public License (GPL), Version 2, With Classpath Exception</name> |
| 46 | <url>https://www.gnu.org/software/classpath/license.html</url> |
| 47 | <distribution>repo</distribution> |
| 48 | <comments>Except for Guava, and JSR-166 files. |
| 49 | See also https://github.com/eclipse-ee4j/jersey/blob/master/NOTICE.md</comments> |
| 50 | </license> |
| 51 | <license> |
| 52 | <name>Apache License, 2.0</name> |
| 53 | <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> |
| 54 | <distribution>repo</distribution> |
| 55 | <comments>Google Guava @ org.glassfish.jersey.internal.guava</comments> |
| 56 | </license> |
| 57 | <license> |
| 58 | <name>Public Domain</name> |
| 59 | <url>https://creativecommons.org/publicdomain/zero/1.0/</url> |
| 60 | <distribution>repo</distribution> |
| 61 | <comments>JSR-166 Extension to JEP 266 @ org.glassfish.jersey.internal.jsr166</comments> |
| 62 | </license> |
| 63 | </licenses> |
| 64 | |
| 65 | <build> |
| 66 | <resources> |
| 67 | <resource> |
| 68 | <directory>${basedir}/src/main/resources</directory> |
| 69 | <filtering>true</filtering> |
| 70 | </resource> |
| 71 | </resources> |
| 72 | |
| 73 | <testResources> |
| 74 | <testResource> |
| 75 | <directory>${basedir}/src/test/resources</directory> |
| 76 | <filtering>true</filtering> |
| 77 | </testResource> |
| 78 | </testResources> |
| 79 | |
| 80 | <plugins> |
| 81 | <plugin> |
| 82 | <groupId>org.apache.maven.plugins</groupId> |
| 83 | <artifactId>maven-compiler-plugin</artifactId> |
Maxim Nesen | 3093a7d | 2023-06-28 14:45:39 +0200 | [diff] [blame] | 84 | <version>${compiler.common.mvn.plugin.version}</version> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 85 | <inherited>false</inherited> |
| 86 | <configuration> |
| 87 | <source>${java.version}</source> |
| 88 | <target>${java.version}</target> |
| 89 | <compilerArguments> |
| 90 | <!-- Do not warn about using sun.misc.Unsafe --> |
| 91 | <XDignore.symbol.file /> |
| 92 | </compilerArguments> |
| 93 | <showWarnings>false</showWarnings> |
| 94 | <fork>false</fork> |
| 95 | </configuration> |
| 96 | </plugin> |
| 97 | <plugin> |
| 98 | <groupId>com.sun.istack</groupId> |
jansupol | 100db13 | 2018-12-10 15:14:46 +0100 | [diff] [blame] | 99 | <artifactId>istack-commons-maven-plugin</artifactId> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 100 | <inherited>true</inherited> |
| 101 | </plugin> |
| 102 | <plugin> |
| 103 | <groupId>org.codehaus.mojo</groupId> |
| 104 | <artifactId>build-helper-maven-plugin</artifactId> |
| 105 | <inherited>true</inherited> |
| 106 | </plugin> |
| 107 | <plugin> |
| 108 | <groupId>org.apache.maven.plugins</groupId> |
| 109 | <artifactId>maven-jar-plugin</artifactId> |
| 110 | <executions> |
| 111 | <execution> |
| 112 | <id>default-jar</id> |
| 113 | <phase>package</phase> |
| 114 | <goals> |
| 115 | <goal>jar</goal> |
| 116 | </goals> |
| 117 | </execution> |
| 118 | </executions> |
| 119 | </plugin> |
| 120 | <plugin> |
| 121 | <groupId>org.apache.felix</groupId> |
| 122 | <artifactId>maven-bundle-plugin</artifactId> |
| 123 | <inherited>true</inherited> |
| 124 | <extensions>true</extensions> |
| 125 | <configuration> |
| 126 | <instructions> |
| 127 | <!-- Note: When you're changing these properties change them also in bundles/jaxrs-ri/pom.xml. --> |
| 128 | <Import-Package> |
| 129 | sun.misc.*;resolution:=optional, |
Maxim Nesen | c522d34 | 2021-01-06 12:21:15 +0100 | [diff] [blame] | 130 | jakarta.activation.*;version="!";resolution:=optional, |
jansupol | 9edb3d4 | 2020-12-14 22:54:43 +0100 | [diff] [blame] | 131 | javax.imageio;resolution:=optional, |
| 132 | javax.imageio.spi;resolution:=optional, |
| 133 | javax.imageio.stream;resolution:=optional, |
Maxim Nesen | c522d34 | 2021-01-06 12:21:15 +0100 | [diff] [blame] | 134 | jakarta.xml.bind;version="!";resolution:=optional, |
| 135 | jakarta.xml.bind.annotation;version="!";resolution:=optional, |
| 136 | jakarta.xml.bind.annotation.adapters;version="!";resolution:=optional, |
jansupol | 9edb3d4 | 2020-12-14 22:54:43 +0100 | [diff] [blame] | 137 | javax.xml.namespace;resolution:=optional, |
| 138 | javax.xml.parsers;resolution:=optional, |
| 139 | javax.xml.transform;resolution:=optional, |
| 140 | javax.xml.transform.dom;resolution:=optional, |
| 141 | javax.xml.transform.sax;resolution:=optional, |
| 142 | javax.xml.transform.stream;resolution:=optional, |
| 143 | org.w3c.dom;resolution:=optional, |
| 144 | org.xml.sax;resolution:=optional, |
Maxim Nesen | d07e880 | 2020-04-30 16:15:40 +0200 | [diff] [blame] | 145 | ${jakarta.annotation.osgi.version}, |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 146 | * |
| 147 | </Import-Package> |
jansupol | bd06909 | 2020-05-20 19:56:07 +0200 | [diff] [blame] | 148 | <Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 149 | <Export-Package>org.glassfish.jersey.*;version=${project.version}</Export-Package> |
Jan Supol | 7d19233 | 2019-06-12 14:42:29 +0200 | [diff] [blame] | 150 | <Require-Capability>osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"</Require-Capability> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 151 | </instructions> |
| 152 | <unpackBundle>true</unpackBundle> |
| 153 | </configuration> |
| 154 | </plugin> |
| 155 | <plugin> |
| 156 | <groupId>org.codehaus.mojo</groupId> |
| 157 | <artifactId>buildnumber-maven-plugin</artifactId> |
| 158 | <configuration> |
| 159 | <format>{0,date,yyyy-MM-dd HH:mm:ss}</format> |
| 160 | <items> |
| 161 | <item>timestamp</item> |
| 162 | </items> |
| 163 | </configuration> |
| 164 | <executions> |
| 165 | <execution> |
| 166 | <phase>validate</phase> |
| 167 | <goals> |
| 168 | <goal>create</goal> |
| 169 | </goals> |
| 170 | </execution> |
| 171 | </executions> |
| 172 | </plugin> |
| 173 | <plugin> |
| 174 | <groupId>org.apache.maven.plugins</groupId> |
| 175 | <artifactId>maven-surefire-plugin</artifactId> |
Vladimir V. Bychkov | f03e351 | 2022-10-28 12:30:37 +0200 | [diff] [blame] | 176 | <executions> |
| 177 | <execution> |
| 178 | <id>default-test</id> |
| 179 | <configuration> |
| 180 | <excludes> |
| 181 | <exclude>**/ByteBufferInputStreamTest.java</exclude> |
| 182 | </excludes> |
| 183 | </configuration> |
| 184 | </execution> |
| 185 | <execution> |
| 186 | <id>tests-with-additional-permissions</id> |
| 187 | <phase>test</phase> |
| 188 | <goals> |
| 189 | <goal>test</goal> |
| 190 | </goals> |
| 191 | <configuration> |
| 192 | <argLine>-Djava.security.policy=${project.build.directory}/test-classes/surefire-jdk17.policy</argLine> |
| 193 | <includes> |
| 194 | <include>**/ByteBufferInputStreamTest.java</include> |
| 195 | </includes> |
| 196 | </configuration> |
| 197 | </execution> |
| 198 | </executions> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 199 | <configuration> |
| 200 | <!-- Execute test classes in parallel - 1 thread per CPU core. --> |
| 201 | <parallel>classesAndMethods</parallel> |
| 202 | <perCoreThreadCount>true</perCoreThreadCount> |
| 203 | <threadCount>1</threadCount> |
| 204 | </configuration> |
| 205 | </plugin> |
| 206 | </plugins> |
| 207 | </build> |
| 208 | |
| 209 | <dependencies> |
| 210 | <dependency> |
Markus KARG | 2b59416 | 2018-11-22 12:11:58 +0100 | [diff] [blame] | 211 | <groupId>jakarta.ws.rs</groupId> |
| 212 | <artifactId>jakarta.ws.rs-api</artifactId> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 213 | </dependency> |
| 214 | <dependency> |
jansupol | 7aebbcf | 2018-12-04 14:32:47 +0100 | [diff] [blame] | 215 | <groupId>jakarta.annotation</groupId> |
| 216 | <artifactId>jakarta.annotation-api</artifactId> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 217 | </dependency> |
| 218 | <dependency> |
Maxim Nesen | 3c12e85 | 2023-05-10 14:18:49 +0200 | [diff] [blame] | 219 | <groupId>org.eclipse.angus</groupId> |
| 220 | <artifactId>angus-activation</artifactId> |
Maxim Nesen | c522d34 | 2021-01-06 12:21:15 +0100 | [diff] [blame] | 221 | <scope>provided</scope> |
| 222 | <optional>true</optional> |
Maxim Nesen | 0c6b2c5 | 2020-04-17 14:37:45 +0200 | [diff] [blame] | 223 | </dependency> |
| 224 | <dependency> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 225 | <groupId>org.osgi</groupId> |
| 226 | <artifactId>org.osgi.core</artifactId> |
| 227 | <scope>provided</scope> |
| 228 | </dependency> |
| 229 | <dependency> |
Maxim Nesen | 1954282 | 2020-05-04 12:27:00 +0200 | [diff] [blame] | 230 | <groupId>jakarta.inject</groupId> |
| 231 | <artifactId>jakarta.inject-api</artifactId> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 232 | </dependency> |
| 233 | <dependency> |
| 234 | <groupId>org.glassfish.hk2</groupId> |
| 235 | <artifactId>osgi-resource-locator</artifactId> |
| 236 | </dependency> |
| 237 | |
| 238 | <dependency> |
Vladimir V. Bychkov | f03e351 | 2022-10-28 12:30:37 +0200 | [diff] [blame] | 239 | <groupId>org.junit.jupiter</groupId> |
| 240 | <artifactId>junit-jupiter</artifactId> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 241 | <scope>test</scope> |
| 242 | </dependency> |
| 243 | <dependency> |
Denis Kurochkin | 6b87643 | 2021-03-31 15:36:06 +0300 | [diff] [blame] | 244 | <groupId>org.mockito</groupId> |
jansupol | e129ced | 2021-05-10 13:43:08 +0200 | [diff] [blame] | 245 | <artifactId>mockito-core</artifactId> |
Denis Kurochkin | 6b87643 | 2021-03-31 15:36:06 +0300 | [diff] [blame] | 246 | <scope>test</scope> |
| 247 | </dependency> |
| 248 | <dependency> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 249 | <groupId>org.hamcrest</groupId> |
Maxim Nesen | d5b6823 | 2022-05-05 10:18:16 +0200 | [diff] [blame] | 250 | <artifactId>hamcrest</artifactId> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 251 | <scope>test</scope> |
| 252 | </dependency> |
| 253 | </dependencies> |
| 254 | |
| 255 | <profiles> |
| 256 | <profile> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 257 | <id>securityOff</id> |
| 258 | <properties> |
| 259 | <surefire.security.argline /> |
| 260 | </properties> |
| 261 | <build> |
| 262 | <plugins> |
| 263 | <plugin> |
| 264 | <groupId>org.apache.maven.plugins</groupId> |
| 265 | <artifactId>maven-surefire-plugin</artifactId> |
| 266 | <configuration> |
| 267 | <excludes> |
| 268 | <exclude>**/SecurityManagerConfiguredTest.java</exclude> |
| 269 | <exclude>**/ReflectionHelperTest.java</exclude> |
| 270 | </excludes> |
| 271 | </configuration> |
| 272 | </plugin> |
| 273 | </plugins> |
| 274 | </build> |
| 275 | </profile> |
| 276 | <profile> |
| 277 | <id>sonar</id> |
| 278 | <build> |
| 279 | <plugins> |
| 280 | <plugin> |
| 281 | <groupId>org.apache.maven.plugins</groupId> |
| 282 | <artifactId>maven-surefire-plugin</artifactId> |
| 283 | <configuration> |
| 284 | <!-- disable parallel execution so that JaCoCo listener can properly work --> |
| 285 | <parallel>none</parallel> |
| 286 | <perCoreThreadCount>false</perCoreThreadCount> |
| 287 | </configuration> |
| 288 | </plugin> |
| 289 | </plugins> |
| 290 | </build> |
| 291 | </profile> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 292 | </profiles> |
| 293 | |
| 294 | <properties> |
| 295 | <surefire.security.argline>-Djava.security.manager -Djava.security.policy=${project.build.directory}/test-classes/surefire.policy</surefire.security.argline> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 296 | </properties> |
| 297 | |
| 298 | </project> |