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 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-bot | 9727e9a | 2024-01-07 02:21:50 +0000 | [diff] [blame] | 22 | <version>4.0.99-SNAPSHOT</version> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 23 | </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 KARG | 2b59416 | 2018-11-22 12:11:58 +0100 | [diff] [blame] | 38 | <groupId>jakarta.ws.rs</groupId> |
| 39 | <artifactId>jakarta.ws.rs-api</artifactId> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 40 | <scope>provided</scope> |
| 41 | </dependency> |
| 42 | <dependency> |
jansupol | 7aebbcf | 2018-12-04 14:32:47 +0100 | [diff] [blame] | 43 | <groupId>jakarta.annotation</groupId> |
| 44 | <artifactId>jakarta.annotation-api</artifactId> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 45 | <scope>provided</scope> |
| 46 | </dependency> |
| 47 | <dependency> |
Maxim Nesen | ef8f661 | 2020-05-05 17:49:04 +0200 | [diff] [blame] | 48 | <groupId>jakarta.enterprise</groupId> |
| 49 | <artifactId>jakarta.enterprise.cdi-api</artifactId> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 50 | <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 Langer | fb797a5 | 2020-03-02 20:43:40 +0100 | [diff] [blame] | 74 | <groupId>org.jboss.weld.se</groupId> |
| 75 | <artifactId>weld-se-core</artifactId> |
| 76 | <scope>provided</scope> |
| 77 | </dependency> |
| 78 | <dependency> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 79 | <groupId>org.glassfish.jersey.ext.cdi</groupId> |
| 80 | <artifactId>jersey-cdi1x</artifactId> |
| 81 | <version>${project.version}</version> |
| 82 | <scope>provided</scope> |
| 83 | </dependency> |
Jan Supol | a7421d7 | 2020-10-29 19:40:40 +0100 | [diff] [blame] | 84 | <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 Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 92 | </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 Supol | df7479f | 2019-02-05 15:43:03 +0100 | [diff] [blame] | 119 | <id>pre-release</id> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 120 | <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 KARG | 2b59416 | 2018-11-22 12:11:58 +0100 | [diff] [blame] | 151 | <groupId>jakarta.ws.rs</groupId> |
| 152 | <artifactId>jakarta.ws.rs-api</artifactId> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 153 | <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 Nesen | 1954282 | 2020-05-04 12:27:00 +0200 | [diff] [blame] | 161 | <groupId>jakarta.inject</groupId> |
| 162 | <artifactId>jakarta.inject-api</artifactId> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 163 | <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> |
jansupol | 165d319 | 2018-09-20 14:34:22 +0200 | [diff] [blame] | 182 | <artifactId>weld-servlet-core</artifactId> |
jansupol | a0e9568 | 2023-11-15 18:45:22 +0100 | [diff] [blame] | 183 | <version>${weld.version}</version> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 184 | </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 Nesen | d07e880 | 2020-04-30 16:15:40 +0200 | [diff] [blame] | 199 | <plugin> |
| 200 | <groupId>org.apache.maven.plugins</groupId> |
| 201 | <artifactId>maven-surefire-plugin</artifactId> |
| 202 | <configuration> |
jansupol | a0e9568 | 2023-11-15 18:45:22 +0100 | [diff] [blame] | 203 | <forkCount>1</forkCount> |
| 204 | <reuseForks>false</reuseForks> |
Maxim Nesen | d07e880 | 2020-04-30 16:15:40 +0200 | [diff] [blame] | 205 | <enableAssertions>false</enableAssertions> |
Maxim Nesen | d07e880 | 2020-04-30 16:15:40 +0200 | [diff] [blame] | 206 | </configuration> |
| 207 | </plugin> |
Jan Supol | 12a0573 | 2018-04-25 17:50:03 +0200 | [diff] [blame] | 208 | </plugins> |
| 209 | </build> |
| 210 | |
| 211 | </project> |