blob: 1b93b86e76b58eae78bfce17a2a099924d36e42a [file] [log] [blame]
Jan Supol12a05732018-04-25 17:50:03 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3
jersey-bot59a5d502024-01-07 02:21:04 +00004 Copyright (c) 2010, 2024 Oracle and/or its affiliates. All rights reserved.
Jan Supol12a05732018-04-25 17:50:03 +02005
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-bot9727e9a2024-01-07 02:21:50 +000026 <version>4.0.99-SNAPSHOT</version>
Jan Supol12a05732018-04-25 17:50:03 +020027 </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 Nesen3093a7d2023-06-28 14:45:39 +020084 <version>${compiler.common.mvn.plugin.version}</version>
Jan Supol12a05732018-04-25 17:50:03 +020085 <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>
jansupol100db132018-12-10 15:14:46 +010099 <artifactId>istack-commons-maven-plugin</artifactId>
Jan Supol12a05732018-04-25 17:50:03 +0200100 <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 Nesenc522d342021-01-06 12:21:15 +0100130 jakarta.activation.*;version="!";resolution:=optional,
jansupol9edb3d42020-12-14 22:54:43 +0100131 javax.imageio;resolution:=optional,
132 javax.imageio.spi;resolution:=optional,
133 javax.imageio.stream;resolution:=optional,
Maxim Nesenc522d342021-01-06 12:21:15 +0100134 jakarta.xml.bind;version="!";resolution:=optional,
135 jakarta.xml.bind.annotation;version="!";resolution:=optional,
136 jakarta.xml.bind.annotation.adapters;version="!";resolution:=optional,
jansupol9edb3d42020-12-14 22:54:43 +0100137 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 Nesend07e8802020-04-30 16:15:40 +0200145 ${jakarta.annotation.osgi.version},
Jan Supol12a05732018-04-25 17:50:03 +0200146 *
147 </Import-Package>
jansupolbd069092020-05-20 19:56:07 +0200148 <Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy>
Jan Supol12a05732018-04-25 17:50:03 +0200149 <Export-Package>org.glassfish.jersey.*;version=${project.version}</Export-Package>
Jan Supol7d192332019-06-12 14:42:29 +0200150 <Require-Capability>osgi.ee;filter:="(&amp;(osgi.ee=JavaSE)(version=1.8))"</Require-Capability>
Jan Supol12a05732018-04-25 17:50:03 +0200151 </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. Bychkovf03e3512022-10-28 12:30:37 +0200176 <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 Supol12a05732018-04-25 17:50:03 +0200199 <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 KARG2b594162018-11-22 12:11:58 +0100211 <groupId>jakarta.ws.rs</groupId>
212 <artifactId>jakarta.ws.rs-api</artifactId>
Jan Supol12a05732018-04-25 17:50:03 +0200213 </dependency>
214 <dependency>
jansupol7aebbcf2018-12-04 14:32:47 +0100215 <groupId>jakarta.annotation</groupId>
216 <artifactId>jakarta.annotation-api</artifactId>
Jan Supol12a05732018-04-25 17:50:03 +0200217 </dependency>
218 <dependency>
Maxim Nesen3c12e852023-05-10 14:18:49 +0200219 <groupId>org.eclipse.angus</groupId>
220 <artifactId>angus-activation</artifactId>
Maxim Nesenc522d342021-01-06 12:21:15 +0100221 <scope>provided</scope>
222 <optional>true</optional>
Maxim Nesen0c6b2c52020-04-17 14:37:45 +0200223 </dependency>
224 <dependency>
Jan Supol12a05732018-04-25 17:50:03 +0200225 <groupId>org.osgi</groupId>
226 <artifactId>org.osgi.core</artifactId>
227 <scope>provided</scope>
228 </dependency>
229 <dependency>
Maxim Nesen19542822020-05-04 12:27:00 +0200230 <groupId>jakarta.inject</groupId>
231 <artifactId>jakarta.inject-api</artifactId>
Jan Supol12a05732018-04-25 17:50:03 +0200232 </dependency>
233 <dependency>
234 <groupId>org.glassfish.hk2</groupId>
235 <artifactId>osgi-resource-locator</artifactId>
236 </dependency>
237
238 <dependency>
Vladimir V. Bychkovf03e3512022-10-28 12:30:37 +0200239 <groupId>org.junit.jupiter</groupId>
240 <artifactId>junit-jupiter</artifactId>
Jan Supol12a05732018-04-25 17:50:03 +0200241 <scope>test</scope>
242 </dependency>
243 <dependency>
Denis Kurochkin6b876432021-03-31 15:36:06 +0300244 <groupId>org.mockito</groupId>
jansupole129ced2021-05-10 13:43:08 +0200245 <artifactId>mockito-core</artifactId>
Denis Kurochkin6b876432021-03-31 15:36:06 +0300246 <scope>test</scope>
247 </dependency>
248 <dependency>
Jan Supol12a05732018-04-25 17:50:03 +0200249 <groupId>org.hamcrest</groupId>
Maxim Nesend5b68232022-05-05 10:18:16 +0200250 <artifactId>hamcrest</artifactId>
Jan Supol12a05732018-04-25 17:50:03 +0200251 <scope>test</scope>
252 </dependency>
253 </dependencies>
254
255 <profiles>
256 <profile>
Jan Supol12a05732018-04-25 17:50:03 +0200257 <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 Supol12a05732018-04-25 17:50:03 +0200292 </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 Supol12a05732018-04-25 17:50:03 +0200296 </properties>
297
298</project>