Step snapshot version of 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   ================================================================================
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.1-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.plugins.plugins-context.plugins-context-schema</groupId>
54             <artifactId>plugins-context-schema-avro</artifactId>
55             <version>${project.version}</version>
56             <scope>test</scope>
57         </dependency>
58         <dependency>
59             <groupId>org.onap.policy.apex-pdp.plugins.plugins-executor</groupId>
60             <artifactId>plugins-executor-javascript</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-mvel</artifactId>
67             <version>${project.version}</version>
68             <scope>test</scope>
69         </dependency>
70         <dependency>
71             <groupId>org.onap.policy.apex-pdp.plugins.plugins-context.plugins-context-distribution</groupId>
72             <artifactId>plugins-context-distribution-infinispan</artifactId>
73             <version>${project.version}</version>
74             <scope>test</scope>
75         </dependency>
76         <dependency>
77             <groupId>org.onap.policy.apex-pdp.plugins.plugins-event.plugins-event-carrier</groupId>
78             <artifactId>plugins-event-carrier-kafka</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-websocket</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-jms</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-restclient</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-restserver</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-restrequestor</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-protocol</groupId>
114             <artifactId>plugins-event-protocol-xml</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-jms</artifactId>
121             <version>${project.version}</version>
122             <scope>test</scope>
123         </dependency>
124         <dependency>
125             <groupId>org.onap.policy.apex-pdp.auth</groupId>
126             <artifactId>cli-editor</artifactId>
127             <version>${project.version}</version>
128             <scope>test</scope>
129         </dependency>
130         <dependency>
131             <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
132             <artifactId>integration-common</artifactId>
133             <version>${project.version}</version>
134             <scope>test</scope>
135         </dependency>
136         <dependency>
137             <groupId>org.apache.kafka</groupId>
138             <artifactId>kafka_2.12</artifactId>
139             <version>${version.kafka}</version>
140             <scope>test</scope>
141              <exclusions>
142                 <!-- The default Zookeeper version in Kafka has vulnerabilities -->
143                 <exclusion>
144                     <groupId>org.apache.zookeeper</groupId>
145                     <artifactId>zookeeper</artifactId>
146                 </exclusion>
147             </exclusions>
148         </dependency>
149         <dependency>
150             <groupId>com.salesforce.kafka.test</groupId>
151             <artifactId>kafka-junit4</artifactId>
152             <version>3.0.1</version>
153             <scope>test</scope>
154         </dependency>
155         <dependency>
156             <groupId>org.apache.activemq.tooling</groupId>
157             <artifactId>activemq-junit</artifactId>
158             <version>${activemq-version}</version>
159             <scope>test</scope>
160         </dependency>
161         <dependency>
162             <groupId>org.apache.activemq</groupId>
163             <artifactId>activemq-broker</artifactId>
164             <version>${activemq-version}</version>
165             <scope>test</scope>
166         </dependency>
167         <dependency>
168             <groupId>org.apache.activemq</groupId>
169             <artifactId>activemq-jaas</artifactId>
170             <version>${activemq-version}</version>
171             <scope>test</scope>
172         </dependency>
173
174         <dependency>
175             <groupId>org.glassfish.jersey.core</groupId>
176             <artifactId>jersey-client</artifactId>
177             <version>${version.jersey}</version>
178         </dependency>
179         <dependency>
180             <groupId>org.glassfish.jersey.containers</groupId>
181             <artifactId>jersey-container-grizzly2-http</artifactId>
182             <version>${version.jersey}</version>
183             <scope>test</scope>
184         </dependency>
185         <dependency>
186             <groupId>org.glassfish.jersey.containers</groupId>
187             <artifactId>jersey-container-servlet-core</artifactId>
188             <version>${version.jersey}</version>
189         </dependency>
190         <dependency>
191             <groupId>org.glassfish.jersey.inject</groupId>
192             <artifactId>jersey-hk2</artifactId>
193             <version>${version.jersey}</version>
194         </dependency>
195     </dependencies>
196
197     <build>
198         <plugins>
199              <!-- Copy required resources and examples -->
200             <plugin>
201                 <groupId>org.apache.maven.plugins</groupId>
202                 <artifactId>maven-dependency-plugin</artifactId>
203                 <executions>
204                     <execution>
205                         <id>unpack-examples</id>
206                         <phase>generate-test-resources</phase>
207                         <goals>
208                             <goal>unpack</goal>
209                         </goals>
210                         <configuration>
211                             <artifactItems>
212                                 <artifactItem>
213                                     <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
214                                     <artifactId>integration-common</artifactId>
215                                     <version>${project.version}</version>
216                                     <type>jar</type>
217                                     <overWrite>false</overWrite>
218                                     <outputDirectory>${project.build.directory}</outputDirectory>
219                                     <includes>examples/**/*</includes>
220                                 </artifactItem>
221                             </artifactItems>
222                             <overWriteReleases>true</overWriteReleases>
223                             <overWriteSnapshots>true</overWriteSnapshots>
224                         </configuration>
225                     </execution>
226                 </executions>
227             </plugin>
228             <plugin>
229                 <groupId>org.apache.maven.plugins</groupId>
230                 <artifactId>maven-surefire-plugin</artifactId>
231                 <configuration>
232                     <reuseForks>false</reuseForks>
233                 </configuration>
234             </plugin>
235         </plugins>
236     </build>
237
238     <profiles>
239          <profile>
240             <id>only-eclipse</id>
241             <activation>
242                 <property>
243                     <name>m2e.version</name>
244                 </property>
245             </activation>
246             <build>
247                 <pluginManagement>
248                     <plugins>
249                         <plugin>
250                             <groupId>org.eclipse.m2e</groupId>
251                             <artifactId>lifecycle-mapping</artifactId>
252                             <version>1.0.0</version>
253                             <configuration>
254                                 <lifecycleMappingMetadata>
255                                     <pluginExecutions>
256                                         <pluginExecution>
257                                             <pluginExecutionFilter>
258                                                 <groupId>org.apache.maven.plugins</groupId>
259                                                 <artifactId>maven-dependency-plugin</artifactId>
260                                                 <versionRange>[2.0,)</versionRange>
261                                                 <goals>
262                                                     <goal>unpack</goal>
263                                                 </goals>
264                                             </pluginExecutionFilter>
265                                             <action>
266                                                 <ignore />
267                                             </action>
268                                         </pluginExecution>
269                                     </pluginExecutions>
270                                 </lifecycleMappingMetadata>
271                             </configuration>
272                         </plugin>
273                     </plugins>
274                 </pluginManagement>
275             </build>
276         </profile>
277
278         <profile>
279             <id>apexSite</id>
280             <activation>
281                 <property>
282                     <name>apexSite</name>
283                 </property>
284             </activation>
285             <distributionManagement>
286                 <site>
287                     <id>${project.artifactId}-site</id>
288                     <url>${apex.adsite.prefix}/modules/testsuites/${project.parent.artifactId}/${project.artifactId}/</url>
289                 </site>
290             </distributionManagement>
291         </profile>
292     </profiles>
293 </project>