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