15ae6ed75c221d5e8372e2ccee5beafe76339e48
[dcaegen2/services.git] / components / slice-analysis-ms / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 /*******************************************************************************
4  *  ============LICENSE_START=======================================================
5  *  slice-analysis-ms
6  *  ================================================================================
7  *  Copyright (C) 2020-2022 Wipro Limited.
8  *  Copyright (C) 2022 Huawei Canada Limited.
9  *  Copyright (C) 2022 CTC, Inc.
10  *  Copyright (C) 2022 Huawei Technologies Co., Ltd.
11  *  ================================================================================
12  *     Licensed under the Apache License, Version 2.0 (the "License");
13  *     you may not use this file except in compliance with the License.
14  *     You may obtain a copy of the License at
15  *
16  *          http://www.apache.org/licenses/LICENSE-2.0
17  *
18  *     Unless required by applicable law or agreed to in writing, software
19  *     distributed under the License is distributed on an "AS IS" BASIS,
20  *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  *     See the License for the specific language governing permissions and
22  *     limitations under the License.
23  *     ============LICENSE_END=========================================================
24  *
25  *******************************************************************************/
26 -->
27
28 <project xmlns="http://maven.apache.org/POM/4.0.0"
29         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
30         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
31         <modelVersion>4.0.0</modelVersion>
32         <parent>
33                 <groupId>org.onap.oparent</groupId>
34                 <artifactId>oparent</artifactId>
35                 <version>2.0.0</version>
36         </parent>
37         <groupId>org.onap.dcaegen2.services.components</groupId>
38         <artifactId>slice-analysis-ms</artifactId>
39         <version>1.1.5-SNAPSHOT</version>
40         <name>dcaegen2-services-slice-analysis-ms</name>
41         <description>Network slice PM analyser</description>
42         <packaging>jar</packaging>
43         <properties>
44                 <java.version>11</java.version>
45                 <sdk.version>1.8.7</sdk.version>
46                 <spring.version>5.3.20</spring.version>
47                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48                 <maven.compiler.source>11</maven.compiler.source>
49                 <maven.compiler.target>11</maven.compiler.target>
50                 <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
51                 <!-- NEXUS RELATED SETTINGS -->
52                 <nexusproxy>https://nexus.onap.org</nexusproxy>
53                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
54                 <releases.path>content/repositories/releases/</releases.path>
55                 <site.path>content/sites/site/org/onap/dcaegen2/services/${project.artifactId}/${project.version}</site.path>
56                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
57                 <sonar.coverage.jacoco.xmlReportPaths>
58                         ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
59                 </sonar.coverage.jacoco.xmlReportPaths>
60         </properties>
61         <dependencies>
62                 <dependency>
63                         <groupId>com.google.code.gson</groupId>
64                         <artifactId>gson</artifactId>
65                         <version>2.9.0</version>
66                 </dependency>
67                 <!-- https://mvnrepository.com/artifact/org.apache.tomcat/tomcat-util -->
68                 <dependency>
69                         <groupId>org.apache.tomcat</groupId>
70                         <artifactId>tomcat-util</artifactId>
71                         <version>9.0.37</version>
72                 </dependency>
73                 <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-autoconfigure -->
74                 <dependency>
75                         <groupId>org.springframework.boot</groupId>
76                         <artifactId>spring-boot-autoconfigure</artifactId>
77                         <version>2.3.1.RELEASE</version>
78                 </dependency>
79                 <dependency>
80                         <groupId>org.springframework</groupId>
81                         <artifactId>spring-webmvc</artifactId>
82                         <version>${spring.version}</version>
83                 </dependency>
84                 <dependency>
85                         <groupId>org.springframework</groupId>
86                         <artifactId>spring-core</artifactId>
87                         <version>${spring.version}</version>
88                 </dependency>
89                 <dependency>
90                         <groupId>org.springframework</groupId>
91                         <artifactId>spring-beans</artifactId>
92                         <version>${spring.version}</version>
93                 </dependency>
94                 <dependency>
95                         <groupId>org.springframework</groupId>
96                         <artifactId>spring-expression</artifactId>
97                         <version>${spring.version}</version>
98                 </dependency>
99                 <dependency>
100                         <groupId>org.springframework</groupId>
101                         <artifactId>spring-web</artifactId>
102                         <version>${spring.version}</version>
103                 </dependency>
104                 <dependency>
105                         <groupId>org.springframework</groupId>
106                         <artifactId>spring-tx</artifactId>
107                         <version>${spring.version}</version>
108                 </dependency>
109                 <dependency>
110                         <groupId>org.springframework.data</groupId>
111                         <artifactId>spring-data-commons</artifactId>
112                         <version>2.2.0.RELEASE</version>
113                 </dependency>
114                 <dependency>
115                         <groupId>org.apache.commons</groupId>
116                         <artifactId>commons-lang3</artifactId>
117                         <version>3.4</version>
118                 </dependency>
119                 <dependency>
120                         <groupId>io.projectreactor</groupId>
121                         <artifactId>reactor-core</artifactId>
122                         <version>3.4.18</version>
123                 </dependency>
124                 <dependency>
125                         <groupId>io.projectreactor</groupId>
126                         <artifactId>reactor-test</artifactId>
127                         <version>3.4.18</version>
128                         <scope>test</scope>
129                 </dependency>
130                 <dependency>
131                         <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
132                         <artifactId>dmaapClient</artifactId>
133                         <version>1.1.12</version>
134                         <exclusions>
135                                 <exclusion>
136                                         <groupId>org.slf4j</groupId>
137                                         <artifactId>slf4j-log4j12</artifactId>
138                                 </exclusion>
139                                 <exclusion>
140                                         <groupId>log4j</groupId>
141                                         <artifactId>log4j</artifactId>
142                                 </exclusion>
143                                 <exclusion>
144                                         <artifactId>apache-log4j-extras</artifactId>
145                                         <groupId>log4j</groupId>
146                                 </exclusion>
147                         </exclusions>
148                 </dependency>
149                 <!-- cbs client -->
150                 <dependency>
151                         <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
152                         <artifactId>cbs-client</artifactId>
153                         <version>${sdk.version}</version>
154                 </dependency>
155                 <dependency>
156                         <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
157                         <artifactId>dmaap-client</artifactId>
158                         <version>${sdk.version}</version>
159                 </dependency>
160                 <dependency>
161                         <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
162                         <artifactId>http-client</artifactId>
163                         <version>${sdk.version}</version>
164                 </dependency>
165                 <dependency>
166                         <groupId>org.onap.dcaegen2.services.sdk.security.crypt</groupId>
167                         <artifactId>crypt-password</artifactId>
168                         <version>${sdk.version}</version>
169                 </dependency>
170                 <dependency>
171                         <!-- Import dependency management from Spring Boot -->
172                         <groupId>org.springframework.boot</groupId>
173                         <artifactId>spring-boot-dependencies</artifactId>
174                         <version>2.1.3.RELEASE</version>
175                         <type>pom</type>
176                         <scope>import</scope>
177                 </dependency>
178                 <dependency>
179                         <groupId>junit</groupId>
180                         <artifactId>junit</artifactId>
181                         <scope>test</scope>
182                 </dependency>
183                 <dependency>
184                         <groupId>com.fasterxml.jackson.core</groupId>
185                         <artifactId>jackson-core</artifactId>
186                         <version>2.13.3</version>
187                 </dependency>
188                 <dependency>
189                         <groupId>net.javacrumbs.json-unit</groupId>
190                         <artifactId>json-unit-assertj</artifactId>
191                         <version>2.14.0</version>
192                         <scope>test</scope>
193                 </dependency>
194                 <dependency>
195                         <groupId>com.fasterxml.jackson.core</groupId>
196                         <artifactId>jackson-databind</artifactId>
197                         <version>2.13.3</version>
198                 </dependency>
199                 <!-- https://mvnrepository.com/artifact/javax.json/javax.json-api -->
200                 <dependency>
201                         <groupId>javax.json</groupId>
202                         <artifactId>javax.json-api</artifactId>
203                         <version>1.1.2</version>
204                 </dependency>
205                 <dependency>
206                         <groupId>org.springframework.boot</groupId>
207                         <artifactId>spring-boot-starter-web</artifactId>
208                         <version>2.1.3.RELEASE</version>
209                         <exclusions>
210                                 <exclusion>
211                                         <groupId>org.springframework.boot</groupId>
212                                         <artifactId>spring-boot-starter-tomcat</artifactId>
213                                 </exclusion>
214                         </exclusions>
215                 </dependency>
216                 <dependency>
217                         <groupId>org.postgresql</groupId>
218                         <artifactId>postgresql</artifactId>
219                         <version>42.3.6</version>
220                 </dependency>
221                 <dependency>
222                         <groupId>org.springframework.boot</groupId>
223                         <artifactId>spring-boot-starter-data-jpa</artifactId>
224                         <version>2.1.3.RELEASE</version>
225                 </dependency>
226                 <dependency>
227                         <groupId>org.hibernate.javax.persistence</groupId>
228                         <artifactId>hibernate-jpa-2.0-api</artifactId>
229                         <version>1.0.1.Final</version>
230                 </dependency>
231                 <!-- https://mvnrepository.com/artifact/org.springframework/spring-beans -->
232                 <dependency>
233                         <groupId>org.springframework.boot</groupId>
234                         <artifactId>spring-boot-starter-test</artifactId>
235                         <version>2.1.3.RELEASE</version>
236                         <scope>test</scope>
237                         <!-- exclusions> <exclusion> <groupId>org.mockito</groupId>
238                                 <artifactId>mockito-core</artiifactId> </exclusion> </exclusions -->
239                 </dependency>
240                 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
241                 <dependency>
242                         <groupId>org.mockito</groupId>
243                         <artifactId>mockito-core</artifactId>
244                         <version>2.21.0</version>
245                         <scope>test</scope>
246                 </dependency>
247                 <dependency>
248                         <groupId>com.openpojo</groupId>
249                         <artifactId>openpojo</artifactId>
250                         <version>0.8.10</version>
251                 </dependency>
252                 <dependency>
253                         <groupId>junit</groupId>
254                         <artifactId>junit</artifactId>
255                         <version>4.12</version>
256                         <scope>test</scope>
257                 </dependency>
258                 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito2 -->
259                 <dependency>
260                         <groupId>org.powermock</groupId>
261                         <artifactId>powermock-api-mockito2</artifactId>
262                         <version>2.0.2</version>
263                         <exclusions>
264                                 <exclusion>
265                                         <groupId>org.mockito</groupId>
266                                         <artifactId>mockito-all</artifactId>
267                                 </exclusion>
268                         </exclusions>
269                 </dependency>
270                 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
271                 <dependency>
272                         <groupId>org.powermock</groupId>
273                         <artifactId>powermock-module-junit4</artifactId>
274                         <version>2.0.2</version>
275                         <scope>test</scope>
276                 </dependency>
277                 <dependency>
278                         <groupId>org.functionaljava</groupId>
279                         <artifactId>functionaljava</artifactId>
280                         <version>3.0</version>
281                 </dependency>
282                 <dependency>
283                         <groupId>org.apache.httpcomponents</groupId>
284                         <artifactId>httpclient</artifactId>
285                         <version>4.5.13</version>
286                 </dependency>
287                 <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
288                 <dependency>
289                         <groupId>commons-beanutils</groupId>
290                         <artifactId>commons-beanutils</artifactId>
291                         <version>1.9.4</version>
292                 </dependency>
293                 <!-- mvnrepository.com/artifact/org.eclipse.jetty/jetty-server -->
294                 <dependency>
295                         <groupId>org.eclipse.jetty</groupId>
296                         <artifactId>jetty-server</artifactId>
297                         <version>9.4.41.v20210516</version>
298                 </dependency>
299                 <!-- https://mvnrepository.com/artifact/org.webjars/bootstrap -->
300                 <dependency>
301                         <groupId>org.webjars</groupId>
302                         <artifactId>bootstrap</artifactId>
303                         <version>4.3.1</version>
304                 </dependency>
305                 <!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
306                 <dependency>
307                         <groupId>javax.xml.bind</groupId>
308                         <artifactId>jaxb-api</artifactId>
309                         <version>2.3.0</version>
310                 </dependency>
311                 <!-- https://mvnrepository.com/artifact/org.javassist/javassist -->
312                 <dependency>
313                         <groupId>org.javassist</groupId>
314                         <artifactId>javassist</artifactId>
315                         <version>3.24.1-GA</version>
316                 </dependency>
317                 <dependency>
318                         <groupId>org.apache.tomcat.embed</groupId>
319                         <artifactId>tomcat-embed-core</artifactId>
320                         <version>9.0.65</version>
321                 </dependency>
322                 <!-- https://mvnrepository.com/artifact/nl.jqno.equalsverifier/equalsverifier -->
323                 <dependency>
324                         <groupId>nl.jqno.equalsverifier</groupId>
325                         <artifactId>equalsverifier</artifactId>
326                         <version>3.5.5</version>
327                         <scope>test</scope>
328                 </dependency>
329                 <dependency>
330                         <groupId>ch.qos.logback</groupId>
331                         <artifactId>logback-core</artifactId>
332                         <version>1.2.10</version>
333                  </dependency>
334                  <dependency>
335                         <groupId>org.projectlombok</groupId>
336                         <artifactId>lombok</artifactId>
337                         <version>1.18.22</version>
338                         <scope>provided</scope>
339                 </dependency>
340                 <dependency>
341                         <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
342                         <artifactId>dmaap-client</artifactId>
343                         <version>1.8.7</version>
344                         <scope>test</scope>
345                 </dependency>
346                 <dependency>
347                         <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
348                         <artifactId>dmaap-client</artifactId>
349                         <version>1.8.7</version>
350                         <scope>compile</scope>
351                 </dependency>
352                 <dependency>
353                         <groupId>io.projectreactor</groupId>
354                         <artifactId>reactor-core</artifactId>
355                         <version>3.4.18</version>
356                         <scope>test</scope>
357                 </dependency>
358                 <dependency>
359                         <groupId>io.projectreactor</groupId>
360                         <artifactId>reactor-core</artifactId>
361                         <version>3.4.18</version>
362                         <scope>compile</scope>
363                 </dependency>
364         </dependencies>
365         <build>
366                 <plugins>
367                         <plugin>
368                                 <groupId>org.springframework.boot</groupId>
369                                 <artifactId>spring-boot-maven-plugin</artifactId>
370                                 <version>2.3.1.RELEASE</version>
371                                 <executions>
372                                         <execution>
373                                                 <goals>
374                                                         <goal>repackage</goal>
375                                                 </goals>
376                                         </execution>
377                                 </executions>
378                         </plugin>
379                         <plugin>
380                                 <groupId>com.spotify</groupId>
381                                 <artifactId>docker-maven-plugin</artifactId>
382                                 <configuration>
383                                         <serverId>${onap.nexus.dockerregistry.daily}</serverId>
384                                         <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
385                                         <imageTags>
386                                                 <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
387                                                 <imageTag>${project.version}</imageTag>
388                                                 <imageTag>latest</imageTag>
389                                         </imageTags>
390                                         <baseImage>nexus3.onap.org:10001/onap/integration-java11:10.0.0</baseImage>
391                                         <user>sliceanalysis></user>
392                                         <dockerDirectory>${project.basedir}/src/main/docker/dockerfile</dockerDirectory>
393                                         <buildArgs>
394                                                 <JAR_FILE>${project.artifactId}-${project.version}.jar</JAR_FILE>
395                                         </buildArgs>
396                                         <resources>
397                                                 <resource>
398                                                         <targetPath>/bin</targetPath>
399                                                         <directory>${project.build.directory}</directory>
400                                                         <include>${project.artifactId}-${project.version}.jar</include>
401                                                 </resource>
402                                                 <resource>
403                                                         <targetPath>/bin</targetPath>
404                                                         <directory>${project.basedir}</directory>
405                                                         <include>entry.sh</include>
406                                                 </resource>
407                                         </resources>
408                                 </configuration>
409                         </plugin>
410                 </plugins>
411         </build>
412 </project>