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