Support HTTP headers in REST Client
[policy/apex-pdp.git] / testsuites / integration / integration-uservice-test / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
4   ================================================================================
5   Licensed under the Apache License, Version 2.0 (the "License");
6   you may not use this file except in compliance with the License.
7   You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16
17   SPDX-License-Identifier: Apache-2.0
18   ============LICENSE_END=========================================================
19 -->
20
21 <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">
22     <modelVersion>4.0.0</modelVersion>
23     <parent>
24         <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
25         <artifactId>integration</artifactId>
26         <version>2.1.0-SNAPSHOT</version>
27     </parent>
28
29     <artifactId>integration-uservice-test</artifactId>
30     <name>${project.artifactId}</name>
31     <description>Integration tests for Apex microservices</description>
32
33     <properties>
34         <activemq-version>5.15.4</activemq-version>
35     </properties>
36
37     <dependencies>
38         <dependency>
39             <groupId>org.onap.policy.common</groupId>
40             <artifactId>utils</artifactId>
41         </dependency>
42         <dependency>
43             <groupId>org.onap.policy.apex-pdp.core</groupId>
44             <artifactId>core-engine</artifactId>
45             <version>${project.version}</version>
46         </dependency>
47         <dependency>
48             <groupId>org.onap.policy.apex-pdp.core</groupId>
49             <artifactId>core-deployment</artifactId>
50             <version>${project.version}</version>
51         </dependency>
52         <dependency>
53             <groupId>org.onap.policy.apex-pdp.context</groupId>
54             <artifactId>context-test-utils</artifactId>
55             <version>${project.version}</version>
56             <scope>test</scope>
57         </dependency>
58         <dependency>
59             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-schema</groupId>
60             <artifactId>plugins-context-schema-avro</artifactId>
61             <version>${project.version}</version>
62             <scope>test</scope>
63         </dependency>
64         <dependency>
65             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
66             <artifactId>plugins-executor-javascript</artifactId>
67             <version>${project.version}</version>
68             <scope>test</scope>
69         </dependency>
70         <dependency>
71             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
72             <artifactId>plugins-executor-mvel</artifactId>
73             <version>${project.version}</version>
74             <scope>test</scope>
75         </dependency>
76         <dependency>
77             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
78             <artifactId>plugins-context-distribution-infinispan</artifactId>
79             <version>${project.version}</version>
80             <scope>test</scope>
81         </dependency>
82         <dependency>
83             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
84             <artifactId>plugins-event-carrier-kafka</artifactId>
85             <version>${project.version}</version>
86             <scope>test</scope>
87         </dependency>
88         <dependency>
89             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
90             <artifactId>plugins-event-carrier-websocket</artifactId>
91             <version>${project.version}</version>
92             <scope>test</scope>
93         </dependency>
94         <dependency>
95             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
96             <artifactId>plugins-event-carrier-jms</artifactId>
97             <version>${project.version}</version>
98             <scope>test</scope>
99         </dependency>
100         <dependency>
101             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
102             <artifactId>plugins-event-carrier-restclient</artifactId>
103             <version>${project.version}</version>
104             <scope>test</scope>
105         </dependency>
106         <dependency>
107             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
108             <artifactId>plugins-event-carrier-restserver</artifactId>
109             <version>${project.version}</version>
110             <scope>test</scope>
111         </dependency>
112         <dependency>
113             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
114             <artifactId>plugins-event-carrier-restrequestor</artifactId>
115             <version>${project.version}</version>
116             <scope>test</scope>
117         </dependency>
118         <dependency>
119             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
120             <artifactId>plugins-event-protocol-xml</artifactId>
121             <version>${project.version}</version>
122             <scope>test</scope>
123         </dependency>
124         <dependency>
125             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-protocol</groupId>
126             <artifactId>plugins-event-protocol-jms</artifactId>
127             <version>${project.version}</version>
128             <scope>test</scope>
129         </dependency>
130         <dependency>
131             <groupId>org.onap.policy.apex-pdp.auth</groupId>
132             <artifactId>cli-editor</artifactId>
133             <version>${project.version}</version>
134             <scope>test</scope>
135         </dependency>
136         <dependency>
137             <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
138             <artifactId>integration-common</artifactId>
139             <version>${project.version}</version>
140             <scope>test</scope>
141         </dependency>
142         <dependency>
143             <groupId>org.apache.kafka</groupId>
144             <artifactId>kafka_2.12</artifactId>
145             <version>${version.kafka}</version>
146             <scope>test</scope>
147         </dependency>
148         <dependency>
149             <groupId>com.salesforce.kafka.test</groupId>
150             <artifactId>kafka-junit4</artifactId>
151             <version>3.0.1</version>
152             <scope>test</scope>
153         </dependency>
154         <dependency>
155             <groupId>org.apache.activemq.tooling</groupId>
156             <artifactId>activemq-junit</artifactId>
157             <version>${activemq-version}</version>
158             <scope>test</scope>
159         </dependency>
160         <dependency>
161             <groupId>org.apache.activemq</groupId>
162             <artifactId>activemq-broker</artifactId>
163             <version>${activemq-version}</version>
164             <scope>test</scope>
165         </dependency>
166         <dependency>
167             <groupId>org.apache.activemq</groupId>
168             <artifactId>activemq-jaas</artifactId>
169             <version>${activemq-version}</version>
170             <scope>test</scope>
171         </dependency>
172
173         <dependency>
174             <groupId>org.glassfish.jersey.core</groupId>
175             <artifactId>jersey-client</artifactId>
176             <version>${version.jersey}</version>
177         </dependency>
178         <dependency>
179             <groupId>org.glassfish.jersey.containers</groupId>
180             <artifactId>jersey-container-grizzly2-http</artifactId>
181             <version>${version.jersey}</version>
182             <scope>test</scope>
183         </dependency>
184         <dependency>
185             <groupId>org.glassfish.jersey.containers</groupId>
186             <artifactId>jersey-container-servlet-core</artifactId>
187             <version>${version.jersey}</version>
188         </dependency>
189         <dependency>
190             <groupId>org.glassfish.jersey.inject</groupId>
191             <artifactId>jersey-hk2</artifactId>
192             <version>${version.jersey}</version>
193         </dependency>
194     </dependencies>
195
196     <build>
197         <plugins>
198              <!-- Copy required resources and examples -->
199             <plugin>
200                 <groupId>org.apache.maven.plugins</groupId>
201                 <artifactId>maven-dependency-plugin</artifactId>
202                 <executions>
203                     <execution>
204                         <id>unpack-examples</id>
205                         <phase>generate-test-resources</phase>
206                         <goals>
207                             <goal>unpack</goal>
208                         </goals>
209                         <configuration>
210                             <artifactItems>
211                                 <artifactItem>
212                                     <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
213                                     <artifactId>integration-common</artifactId>
214                                     <version>${project.version}</version>
215                                     <type>jar</type>
216                                     <overWrite>false</overWrite>
217                                     <outputDirectory>${project.build.directory}</outputDirectory>
218                                     <includes>examples/**/*</includes>
219                                 </artifactItem>
220                             </artifactItems>
221                             <overWriteReleases>true</overWriteReleases>
222                             <overWriteSnapshots>true</overWriteSnapshots>
223                         </configuration>
224                     </execution>
225                 </executions>
226             </plugin>
227             <plugin>
228                 <groupId>org.apache.maven.plugins</groupId>
229                 <artifactId>maven-surefire-plugin</artifactId>
230                 <configuration>
231                     <reuseForks>false</reuseForks>
232                 </configuration>
233             </plugin>
234         </plugins>
235     </build>
236
237     <profiles>
238          <profile>
239             <id>only-eclipse</id>
240             <activation>
241                 <property>
242                     <name>m2e.version</name>
243                 </property>
244             </activation>
245             <build>
246                 <pluginManagement>
247                     <plugins>
248                         <plugin>
249                             <groupId>org.eclipse.m2e</groupId>
250                             <artifactId>lifecycle-mapping</artifactId>
251                             <version>1.0.0</version>
252                             <configuration>
253                                 <lifecycleMappingMetadata>
254                                     <pluginExecutions>
255                                         <pluginExecution>
256                                             <pluginExecutionFilter>
257                                                 <groupId>org.apache.maven.plugins</groupId>
258                                                 <artifactId>maven-dependency-plugin</artifactId>
259                                                 <versionRange>[2.0,)</versionRange>
260                                                 <goals>
261                                                     <goal>unpack</goal>
262                                                 </goals>
263                                             </pluginExecutionFilter>
264                                             <action>
265                                                 <ignore />
266                                             </action>
267                                         </pluginExecution>
268                                     </pluginExecutions>
269                                 </lifecycleMappingMetadata>
270                             </configuration>
271                         </plugin>
272                     </plugins>
273                 </pluginManagement>
274             </build>
275         </profile>
276
277         <profile>
278             <id>apexSite</id>
279             <activation>
280                 <property>
281                     <name>apexSite</name>
282                 </property>
283             </activation>
284             <distributionManagement>
285                 <site>
286                     <id>${project.artifactId}-site</id>
287                     <url>${apex.adsite.prefix}/modules/testsuites/${project.parent.artifactId}/${project.artifactId}/</url>
288                 </site>
289             </distributionManagement>
290         </profile>
291     </profiles>
292 </project>