Clean up eclipse and document warnings
[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-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         </dependency>
142         <dependency>
143             <groupId>com.salesforce.kafka.test</groupId>
144             <artifactId>kafka-junit4</artifactId>
145             <version>3.0.1</version>
146             <scope>test</scope>
147         </dependency>
148         <dependency>
149             <groupId>org.apache.activemq.tooling</groupId>
150             <artifactId>activemq-junit</artifactId>
151             <version>${activemq-version}</version>
152             <scope>test</scope>
153         </dependency>
154         <dependency>
155             <groupId>org.apache.activemq</groupId>
156             <artifactId>activemq-broker</artifactId>
157             <version>${activemq-version}</version>
158             <scope>test</scope>
159         </dependency>
160         <dependency>
161             <groupId>org.apache.activemq</groupId>
162             <artifactId>activemq-jaas</artifactId>
163             <version>${activemq-version}</version>
164             <scope>test</scope>
165         </dependency>
166
167         <dependency>
168             <groupId>org.glassfish.jersey.core</groupId>
169             <artifactId>jersey-client</artifactId>
170             <version>${version.jersey}</version>
171         </dependency>
172         <dependency>
173             <groupId>org.glassfish.jersey.containers</groupId>
174             <artifactId>jersey-container-grizzly2-http</artifactId>
175             <version>${version.jersey}</version>
176             <scope>test</scope>
177         </dependency>
178         <dependency>
179             <groupId>org.glassfish.jersey.containers</groupId>
180             <artifactId>jersey-container-servlet-core</artifactId>
181             <version>${version.jersey}</version>
182         </dependency>
183     </dependencies>
184
185     <build>
186         <plugins>
187              <!-- Copy required resources and examples -->
188             <plugin>
189                 <groupId>org.apache.maven.plugins</groupId>
190                 <artifactId>maven-dependency-plugin</artifactId>
191                 <executions>
192                     <execution>
193                         <id>unpack-examples</id>
194                         <phase>generate-test-resources</phase>
195                         <goals>
196                             <goal>unpack</goal>
197                         </goals>
198                         <configuration>
199                             <artifactItems>
200                                 <artifactItem>
201                                     <groupId>org.onap.policy.apex-pdp.testsuites.integration</groupId>
202                                     <artifactId>integration-common</artifactId>
203                                     <version>${project.version}</version>
204                                     <type>jar</type>
205                                     <overWrite>false</overWrite>
206                                     <outputDirectory>${project.build.directory}</outputDirectory>
207                                     <includes>examples/**/*</includes>
208                                 </artifactItem>
209                             </artifactItems>
210                             <overWriteReleases>true</overWriteReleases>
211                             <overWriteSnapshots>true</overWriteSnapshots>
212                         </configuration>
213                     </execution>
214                 </executions>
215             </plugin>
216             <plugin>
217                 <groupId>org.apache.maven.plugins</groupId>
218                 <artifactId>maven-surefire-plugin</artifactId>
219                 <configuration>
220                     <reuseForks>false</reuseForks>
221                 </configuration>
222             </plugin>
223         </plugins>
224     </build>
225
226     <profiles>
227          <profile>
228             <id>only-eclipse</id>
229             <activation>
230                 <property>
231                     <name>m2e.version</name>
232                 </property>
233             </activation>
234             <build>
235                 <pluginManagement>
236                     <plugins>
237                         <plugin>
238                             <groupId>org.eclipse.m2e</groupId>
239                             <artifactId>lifecycle-mapping</artifactId>
240                             <version>1.0.0</version>
241                             <configuration>
242                                 <lifecycleMappingMetadata>
243                                     <pluginExecutions>
244                                         <pluginExecution>
245                                             <pluginExecutionFilter>
246                                                 <groupId>org.apache.maven.plugins</groupId>
247                                                 <artifactId>maven-dependency-plugin</artifactId>
248                                                 <versionRange>[2.0,)</versionRange>
249                                                 <goals>
250                                                     <goal>unpack</goal>
251                                                 </goals>
252                                             </pluginExecutionFilter>
253                                             <action>
254                                                 <ignore />
255                                             </action>
256                                         </pluginExecution>
257                                     </pluginExecutions>
258                                 </lifecycleMappingMetadata>
259                             </configuration>
260                         </plugin>
261                     </plugins>
262                 </pluginManagement>
263             </build>
264         </profile>
265
266         <profile>
267             <id>apexSite</id>
268             <activation>
269                 <property>
270                     <name>apexSite</name>
271                 </property>
272             </activation>
273             <distributionManagement>
274                 <site>
275                     <id>${project.artifactId}-site</id>
276                     <url>${apex.adsite.prefix}/modules/testsuites/${project.parent.artifactId}/${project.artifactId}/</url>
277                 </site>
278             </distributionManagement>
279         </profile>
280     </profiles>
281 </project>