blob: d8ac509c0df7008a8fe9e9a42dcb0ccf01a65d52 [file] [log] [blame]
Jan Supol12a05732018-04-25 17:50:03 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3
jansupol3c0925b2019-02-07 11:27:52 +01004 Copyright (c) 2010, 2019 Oracle and/or its affiliates. All rights reserved.
Jan Supol12a05732018-04-25 17:50:03 +02005
jansupol46efc002018-10-02 11:26:10 +02006 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are met:
Jan Supol12a05732018-04-25 17:50:03 +02008
jansupol46efc002018-10-02 11:26:10 +02009 1. Redistributions of source code must retain the above copyright notice, this
10 list of conditions and the following disclaimer.
11 2. Redistributions in binary form must reproduce the above copyright notice,
12 this list of conditions and the following disclaimer in the documentation
13 and/or other materials provided with the distribution.
14
15 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
19 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
26 SPDX-License-Identifier: BSD-2-Clause
Jan Supol12a05732018-04-25 17:50:03 +020027
28-->
29
30<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">
31
32 <modelVersion>4.0.0</modelVersion>
33
34 <parent>
35 <groupId>org.glassfish.jersey.examples</groupId>
36 <artifactId>webapp-example-parent</artifactId>
37 <relativePath>../webapp-example-parent/pom.xml</relativePath>
jersey-bote81feb42019-01-25 16:18:12 +000038 <version>2.29-SNAPSHOT</version>
Jan Supol12a05732018-04-25 17:50:03 +020039 </parent>
40
41 <artifactId>bookstore-webapp</artifactId>
42 <packaging>war</packaging>
43 <name>jersey-examples-bookstore-webapp</name>
44
45 <description>Jersey MVC Bookstore example.</description>
46
47 <dependencies>
48 <dependency>
49 <groupId>org.glassfish.jersey.ext</groupId>
50 <artifactId>jersey-mvc-jsp</artifactId>
51 </dependency>
52 <dependency>
53 <groupId>org.glassfish.jersey.inject</groupId>
54 <artifactId>jersey-hk2</artifactId>
55 </dependency>
56 <dependency>
jansupol7aebbcf2018-12-04 14:32:47 +010057 <groupId>jakarta.servlet</groupId>
58 <artifactId>jakarta.servlet-api</artifactId>
59 <version>${servlet4.version}</version>
Jan Supol12a05732018-04-25 17:50:03 +020060 </dependency>
61 <dependency>
jansupol7aebbcf2018-12-04 14:32:47 +010062 <groupId>jakarta.servlet.jsp.jstl</groupId>
63 <artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
Jan Supol12a05732018-04-25 17:50:03 +020064 <version>${jstl.version}</version>
65 </dependency>
66 </dependencies>
67
68 <build>
69 <plugins>
70 <!-- Run the application using "mvn jetty:run" -->
71 <plugin>
72 <groupId>org.mortbay.jetty</groupId>
73 <artifactId>jetty-maven-plugin</artifactId>
74 <configuration>
75 <webApp>
76 <contextPath>/bookstore-webapp</contextPath>
77 </webApp>
78 <connectors>
79 <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
80 <port>8080</port>
81 <responseHeaderSize>16192</responseHeaderSize>
82 </connector>
83 </connectors>
84 </configuration>
85 </plugin>
86 </plugins>
87 </build>
88
89 <profiles>
90 <profile>
91 <!-- mvn test -Prun-external-tests -->
92 <id>run-external-tests</id>
93 <build>
94 <plugins>
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-surefire-plugin</artifactId>
98 <configuration>
99 <systemPropertyVariables>
100 <jersey.config.test.container.factory>${external.container.factory}</jersey.config.test.container.factory>
101 <jersey.config.test.container.port>${external.container.port}</jersey.config.test.container.port>
102 </systemPropertyVariables>
103 </configuration>
104 </plugin>
105 </plugins>
106 </build>
107 <properties>
108 <!-- External test container configuration is done via properties to allow overriding via command line. -->
109 <external.container.factory>org.glassfish.jersey.test.external.ExternalTestContainerFactory</external.container.factory>
110 <external.container.port>8080</external.container.port>
111 <maven.test.skip>false</maven.test.skip>
112 </properties>
113 </profile>
114 <profile>
jansupol3c0925b2019-02-07 11:27:52 +0100115 <id>pre-release</id>
Jan Supol12a05732018-04-25 17:50:03 +0200116 <build>
117 <plugins>
118 <plugin>
119 <groupId>org.codehaus.mojo</groupId>
120 <artifactId>xml-maven-plugin</artifactId>
121 </plugin>
122 <plugin>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-assembly-plugin</artifactId>
125 </plugin>
126 <plugin>
127 <groupId>org.apache.maven.plugins</groupId>
128 <artifactId>maven-surefire-plugin</artifactId>
129 <configuration>
130 <skip>true</skip>
131 </configuration>
132 </plugin>
133 </plugins>
134 </build>
135 </profile>
136 </profiles>
137
138 <properties>
139 <maven.test.skip>true</maven.test.skip>
140 </properties>
141
142</project>