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