blob: 47e0967102adcf37e98eea259756de8a57f67fb8 [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 Distribution License v. 1.0, which is available at
8 http://www.eclipse.org/org/documents/edl-v10.php.
9
10 SPDX-License-Identifier: BSD-3-Clause
11
12-->
13
14<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/xsd/maven-4.0.0.xsd">
15
16 <modelVersion>4.0.0</modelVersion>
17
18 <parent>
19 <groupId>org.glassfish.jersey.examples</groupId>
20 <artifactId>webapp-example-parent</artifactId>
21 <relativePath>../webapp-example-parent/pom.xml</relativePath>
jersey-bot9727e9a2024-01-07 02:21:50 +000022 <version>4.0.99-SNAPSHOT</version>
Jan Supol12a05732018-04-25 17:50:03 +020023 </parent>
24
25 <artifactId>cdi-webapp</artifactId>
26 <packaging>war</packaging>
27 <name>jersey-examples-cdi-webapp</name>
28
29 <description>Jersey CDI example.</description>
30
31 <dependencies>
32 <dependency>
33 <groupId>org.glassfish.jersey.inject</groupId>
34 <artifactId>jersey-hk2</artifactId>
35 <scope>provided</scope>
36 </dependency>
37 <dependency>
Markus KARG2b594162018-11-22 12:11:58 +010038 <groupId>jakarta.ws.rs</groupId>
39 <artifactId>jakarta.ws.rs-api</artifactId>
Jan Supol12a05732018-04-25 17:50:03 +020040 <scope>provided</scope>
41 </dependency>
42 <dependency>
jansupol7aebbcf2018-12-04 14:32:47 +010043 <groupId>jakarta.annotation</groupId>
44 <artifactId>jakarta.annotation-api</artifactId>
Jan Supol12a05732018-04-25 17:50:03 +020045 <scope>provided</scope>
46 </dependency>
47 <dependency>
Maxim Nesenef8f6612020-05-05 17:49:04 +020048 <groupId>jakarta.enterprise</groupId>
49 <artifactId>jakarta.enterprise.cdi-api</artifactId>
Jan Supol12a05732018-04-25 17:50:03 +020050 <scope>provided</scope>
51 </dependency>
52 <dependency> <!-- this is to avoid Jersey jars to be bundled with the WAR -->
53 <groupId>org.glassfish.jersey.containers</groupId>
54 <artifactId>jersey-container-servlet-core</artifactId>
55 <scope>provided</scope>
56 </dependency>
57 <dependency>
58 <groupId>org.glassfish.jersey.containers</groupId>
59 <artifactId>jersey-container-grizzly2-http</artifactId>
60 <scope>provided</scope>
61 </dependency>
62 <dependency>
63 <groupId>org.glassfish.jersey.core</groupId>
64 <artifactId>jersey-server</artifactId>
65 <scope>provided</scope>
66 </dependency>
67 <dependency>
68 <groupId>org.glassfish.jersey.ext.cdi</groupId>
69 <artifactId>jersey-weld2-se</artifactId>
70 <version>${project.version}</version>
71 <scope>provided</scope>
72 </dependency>
73 <dependency>
Tomas Langerfb797a52020-03-02 20:43:40 +010074 <groupId>org.jboss.weld.se</groupId>
75 <artifactId>weld-se-core</artifactId>
76 <scope>provided</scope>
77 </dependency>
78 <dependency>
Jan Supol12a05732018-04-25 17:50:03 +020079 <groupId>org.glassfish.jersey.ext.cdi</groupId>
80 <artifactId>jersey-cdi1x</artifactId>
81 <version>${project.version}</version>
82 <scope>provided</scope>
83 </dependency>
Jan Supola7421d72020-10-29 19:40:40 +010084 <dependency>
85 <groupId>jakarta.xml.bind</groupId>
86 <artifactId>jakarta.xml.bind-api</artifactId>
87 </dependency>
88 <dependency>
89 <groupId>com.sun.xml.bind</groupId>
90 <artifactId>jaxb-osgi</artifactId>
91 </dependency>
Jan Supol12a05732018-04-25 17:50:03 +020092 </dependencies>
93
94 <profiles>
95 <profile>
96 <id>run-external-tests</id>
97 <build>
98 <plugins>
99 <plugin>
100 <groupId>org.apache.maven.plugins</groupId>
101 <artifactId>maven-surefire-plugin</artifactId>
102 <configuration>
103 <systemPropertyVariables>
104 <jersey.config.test.container.factory>${external.container.factory}</jersey.config.test.container.factory>
105 <jersey.config.test.container.port>${external.container.port}</jersey.config.test.container.port>
106 </systemPropertyVariables>
107 </configuration>
108 </plugin>
109 </plugins>
110 </build>
111 <properties>
112 <!-- External test container configuration is done via properties to allow overriding via command line. -->
113 <external.container.factory>org.glassfish.jersey.test.external.ExternalTestContainerFactory</external.container.factory>
114 <external.container.port>8080</external.container.port>
115 <maven.test.skip>false</maven.test.skip>
116 </properties>
117 </profile>
118 <profile>
Jan Supoldf7479f2019-02-05 15:43:03 +0100119 <id>pre-release</id>
Jan Supol12a05732018-04-25 17:50:03 +0200120 <build>
121 <plugins>
122 <plugin>
123 <groupId>org.codehaus.mojo</groupId>
124 <artifactId>xml-maven-plugin</artifactId>
125 </plugin>
126 <plugin>
127 <groupId>org.apache.maven.plugins</groupId>
128 <artifactId>maven-assembly-plugin</artifactId>
129 </plugin>
130 <plugin>
131 <groupId>org.apache.maven.plugins</groupId>
132 <artifactId>maven-surefire-plugin</artifactId>
133 <configuration>
134 <skip>true</skip>
135 </configuration>
136 </plugin>
137 </plugins>
138 </build>
139 </profile>
140
141 <profile>
142 <id>tomcat-packaging</id>
143
144 <dependencies>
145 <dependency>
146 <groupId>org.glassfish.jersey.containers</groupId>
147 <artifactId>jersey-container-servlet</artifactId>
148 <scope>compile</scope>
149 </dependency>
150 <dependency>
Markus KARG2b594162018-11-22 12:11:58 +0100151 <groupId>jakarta.ws.rs</groupId>
152 <artifactId>jakarta.ws.rs-api</artifactId>
Jan Supol12a05732018-04-25 17:50:03 +0200153 <scope>compile</scope>
154 </dependency>
155 <dependency>
156 <groupId>org.glassfish.jersey.containers</groupId>
157 <artifactId>jersey-container-servlet-core</artifactId>
158 <scope>compile</scope>
159 </dependency>
160 <dependency>
Maxim Nesen19542822020-05-04 12:27:00 +0200161 <groupId>jakarta.inject</groupId>
162 <artifactId>jakarta.inject-api</artifactId>
Jan Supol12a05732018-04-25 17:50:03 +0200163 <scope>provided</scope>
164 </dependency>
165 <dependency>
166 <groupId>org.glassfish.jersey.core</groupId>
167 <artifactId>jersey-server</artifactId>
168 <scope>compile</scope>
169 </dependency>
170 <dependency>
171 <groupId>org.glassfish.jersey.ext.cdi</groupId>
172 <artifactId>jersey-cdi1x</artifactId>
173 <scope>compile</scope>
174 </dependency>
175 <dependency>
176 <groupId>org.glassfish.jersey.ext.cdi</groupId>
177 <artifactId>jersey-cdi1x-servlet</artifactId>
178 <scope>compile</scope>
179 </dependency>
180 <dependency>
181 <groupId>org.jboss.weld.servlet</groupId>
jansupol165d3192018-09-20 14:34:22 +0200182 <artifactId>weld-servlet-core</artifactId>
jansupola0e95682023-11-15 18:45:22 +0100183 <version>${weld.version}</version>
Jan Supol12a05732018-04-25 17:50:03 +0200184 </dependency>
185 </dependencies>
186 </profile>
187 </profiles>
188
189 <build>
190 <plugins>
191 <plugin>
192 <groupId>org.codehaus.mojo</groupId>
193 <artifactId>exec-maven-plugin</artifactId>
194 <configuration>
195 <mainClass>org.glassfish.jersey.examples.cdi.App</mainClass>
196 <classpathScope>test</classpathScope>
197 </configuration>
198 </plugin>
Maxim Nesend07e8802020-04-30 16:15:40 +0200199 <plugin>
200 <groupId>org.apache.maven.plugins</groupId>
201 <artifactId>maven-surefire-plugin</artifactId>
202 <configuration>
jansupola0e95682023-11-15 18:45:22 +0100203 <forkCount>1</forkCount>
204 <reuseForks>false</reuseForks>
Maxim Nesend07e8802020-04-30 16:15:40 +0200205 <enableAssertions>false</enableAssertions>
Maxim Nesend07e8802020-04-30 16:15:40 +0200206 </configuration>
207 </plugin>
Jan Supol12a05732018-04-25 17:50:03 +0200208 </plugins>
209 </build>
210
211</project>