[DCAE] INFO.yaml update
[dcaegen2/services/son-handler.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 /*******************************************************************************
4  *  ============LICENSE_START=======================================================
5  *  son-handler
6  *  ================================================================================
7  *   Copyright (C) 2019-2022 Wipro Limited.
8  *   ==============================================================================
9  *     Licensed under the Apache License, Version 2.0 (the "License");
10  *     you may not use this file except in compliance with the License.
11  *     You may obtain a copy of the License at
12  *
13  *          http://www.apache.org/licenses/LICENSE-2.0
14  *
15  *     Unless required by applicable law or agreed to in writing, software
16  *     distributed under the License is distributed on an "AS IS" BASIS,
17  *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  *     See the License for the specific language governing permissions and
19  *     limitations under the License.
20  *     ============LICENSE_END=========================================================
21  *
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         <groupId>org.onap.dcaegen2.services.son-handler</groupId>
28         <artifactId>son-handler</artifactId>
29         <name>dcaegen2-services-son-handler</name>
30         <version>2.1.6-SNAPSHOT</version>
31
32        <!--parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId>
33                 <version>2.0.4.RELEASE</version> </parent -->
34
35         <parent>
36                 <groupId>org.onap.oparent</groupId>
37                 <artifactId>oparent</artifactId>
38                 <version>2.0.0</version>
39                 <relativePath />
40         </parent>
41
42
43         <properties>
44                 <sdk.version>1.8.6</sdk.version>
45                 <spring.version>5.3.14</spring.version>
46                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
47                 <maven.compiler.source>11</maven.compiler.source>
48                 <maven.compiler.target>11</maven.compiler.target>
49                 <docker.image.name>onap/org.onap.dcaegen2.services.son-handler</docker.image.name>
50                 <!-- NEXUS RELATED SETTINGS -->
51                 <nexusproxy>https://nexus.onap.org</nexusproxy>
52                 <snapshots.path>content/repositories/snapshots/</snapshots.path>
53                 <releases.path>content/repositories/releases/</releases.path>
54                 <site.path>content/sites/site/org/onap/dcaegen2/services/son-handler/${project.artifactId}/${project.version}</site.path>
55                 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
56                 <sonar.coverage.jacoco.xmlReportPaths>
57                    ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
58                 </sonar.coverage.jacoco.xmlReportPaths>
59         </properties>
60
61         <dependencies>
62                 <!-- https://mvnrepository.com/artifact/org.apache.tomcat/tomcat-util -->
63                 <dependency>
64                         <groupId>org.apache.tomcat</groupId>
65                         <artifactId>tomcat-util</artifactId>
66                         <version>9.0.37</version>
67                 </dependency>
68                 <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-autoconfigure -->
69                 <dependency>
70                         <groupId>org.springframework.boot</groupId>
71                         <artifactId>spring-boot-autoconfigure</artifactId>
72                         <version>2.3.1.RELEASE</version>
73                 </dependency>
74                 <dependency>
75                         <groupId>org.springframework</groupId>
76                         <artifactId>spring-webmvc</artifactId>
77                         <version>${spring.version}</version>
78                 </dependency>
79                 <dependency>
80                          <groupId>org.springframework</groupId>
81                          <artifactId>spring-core</artifactId>
82                          <version>${spring.version}</version>
83                 </dependency>
84                 <dependency>
85                         <groupId>org.springframework</groupId>
86                         <artifactId>spring-beans</artifactId>
87                         <version>${spring.version}</version>
88                 </dependency>
89                 <dependency>
90                         <groupId>org.springframework</groupId>
91                         <artifactId>spring-expression</artifactId>
92                         <version>${spring.version}</version>
93                 </dependency>
94                 <dependency>
95                         <groupId>org.springframework</groupId>
96                         <artifactId>spring-web</artifactId>
97                         <version>${spring.version}</version>
98                 </dependency>
99                 <dependency>
100                         <groupId>org.springframework</groupId>
101                         <artifactId>spring-tx</artifactId>
102                         <version>${spring.version}</version>
103                 </dependency>
104                 <dependency>
105                         <groupId>org.springframework.data</groupId>
106                         <artifactId>spring-data-commons</artifactId>
107                         <version>2.2.0.RELEASE</version>
108                 </dependency>
109                 <!-- https://mvnrepository.com/artifact/io.projectreactor.netty/reactor-netty -->
110                 <dependency>
111                         <groupId>io.projectreactor.netty</groupId>
112                         <artifactId>reactor-netty</artifactId>
113                         <version>0.9.12.RELEASE</version>
114                 </dependency>
115                 <!-- cbs client -->
116                 <dependency>
117                         <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
118                         <artifactId>cbs-client</artifactId>
119                         <version>${sdk.version}</version>
120                 </dependency>
121                 <dependency>
122                         <groupId>org.onap.dcaegen2.services.sdk.security.crypt</groupId>
123                         <artifactId>crypt-password</artifactId>
124                         <version>${sdk.version}</version>
125                         </dependency>
126                 <dependency>
127                         <!-- Import dependency management from Spring Boot -->
128                         <groupId>org.springframework.boot</groupId>
129                         <artifactId>spring-boot-dependencies</artifactId>
130                         <version>2.1.3.RELEASE</version>
131                         <type>pom</type>
132                         <scope>import</scope>
133                 </dependency>
134                 <dependency>
135                         <groupId>com.att.nsa</groupId>
136                         <artifactId>cambriaClient</artifactId>
137                         <version>0.0.1</version>
138                 </dependency>
139                 <dependency>
140                         <groupId>junit</groupId>
141                         <artifactId>junit</artifactId>
142                         <scope>test</scope>
143                 </dependency>
144                 <dependency>
145                         <groupId>com.fasterxml.jackson.core</groupId>
146                         <artifactId>jackson-core</artifactId>
147                         <version>2.12.6</version>
148                 </dependency>
149                 <dependency>
150                         <groupId>com.fasterxml.jackson.core</groupId>
151                         <artifactId>jackson-databind</artifactId>
152                         <version>2.12.6</version>
153                 </dependency>
154                 <!-- https://mvnrepository.com/artifact/javax.json/javax.json-api -->
155                 <dependency>
156                         <groupId>javax.json</groupId>
157                         <artifactId>javax.json-api</artifactId>
158                         <version>1.1.2</version>
159                 </dependency>
160                 <dependency>
161                         <groupId>org.springframework.boot</groupId>
162                         <artifactId>spring-boot-starter-web</artifactId>
163                         <version>2.1.3.RELEASE</version>
164                         <exclusions>
165                                 <exclusion>
166                                         <groupId>org.springframework.boot</groupId>
167                                         <artifactId>spring-boot-starter-tomcat</artifactId>
168                                 </exclusion>
169                         </exclusions>
170                 </dependency>
171                  <dependency>
172                         <groupId>org.postgresql</groupId>
173                         <artifactId>postgresql</artifactId>
174                         <version>42.2.18</version>
175                         </dependency>
176                  <dependency>
177                         <groupId>org.springframework.boot</groupId>
178                         <artifactId>spring-boot-starter-data-jpa</artifactId>
179                         <version>2.1.3.RELEASE</version>
180                 </dependency>
181                 <dependency>
182                         <groupId>org.hibernate.javax.persistence</groupId>
183                         <artifactId>hibernate-jpa-2.0-api</artifactId>
184                         <version>1.0.1.Final</version>
185                 </dependency>
186                 <!-- https://mvnrepository.com/artifact/org.springframework/spring-beans -->
187                 <dependency>
188                         <groupId>org.springframework.boot</groupId>
189                         <artifactId>spring-boot-starter-test</artifactId>
190                         <version>2.1.3.RELEASE</version>
191                         <scope>test</scope>
192                         <!-- exclusions> <exclusion> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId>
193                                 </exclusion> </exclusions -->
194                 </dependency>
195                 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
196                 <dependency>
197                         <groupId>org.mockito</groupId>
198                         <artifactId>mockito-core</artifactId>
199                         <version>2.21.0</version>
200                         <scope>test</scope>
201                 </dependency>
202                 <dependency>
203                         <groupId>junit</groupId>
204                         <artifactId>junit</artifactId>
205                         <version>4.12</version>
206                         <scope>test</scope>
207                 </dependency>
208                 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito2 -->
209                 <dependency>
210                         <groupId>org.powermock</groupId>
211                         <artifactId>powermock-api-mockito2</artifactId>
212                         <version>2.0.2</version>
213                         <exclusions>
214                                 <exclusion>
215                                         <groupId>org.mockito</groupId>
216                                         <artifactId>mockito-all</artifactId>
217                                 </exclusion>
218                         </exclusions>
219                 </dependency>
220                 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
221                 <dependency>
222                         <groupId>org.powermock</groupId>
223                         <artifactId>powermock-module-junit4</artifactId>
224                         <version>2.0.2</version>
225                         <scope>test</scope>
226                 </dependency>
227
228                 <dependency>
229                     <groupId>org.functionaljava</groupId>
230                     <artifactId>functionaljava</artifactId>
231                     <version>3.0</version>
232             </dependency>
233
234             <dependency>
235                     <groupId>org.apache.httpcomponents</groupId>
236                     <artifactId>httpclient</artifactId>
237                     <version>4.5.13</version>
238             </dependency>
239
240            <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
241             <dependency>
242                    <groupId>commons-beanutils</groupId>
243                    <artifactId>commons-beanutils</artifactId>
244                    <version>1.9.4</version>
245             </dependency>
246             <!-- mvnrepository.com/artifact/org.eclipse.jetty/jetty-server -->
247             <dependency>
248                    <groupId>org.eclipse.jetty</groupId>
249                    <artifactId>jetty-server</artifactId>
250                    <version>9.4.40.v20210413</version>
251             </dependency>
252             <!-- https://mvnrepository.com/artifact/org.webjars/bootstrap -->
253             <dependency>
254                    <groupId>org.webjars</groupId>
255                    <artifactId>bootstrap</artifactId>
256                    <version>4.3.1</version>
257             </dependency>
258             <!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
259             <dependency>
260                    <groupId>javax.xml.bind</groupId>
261                    <artifactId>jaxb-api</artifactId>
262                    <version>2.3.0</version>
263             </dependency>
264             <!-- https://mvnrepository.com/artifact/org.javassist/javassist -->
265             <dependency>
266                    <groupId>org.javassist</groupId>
267                    <artifactId>javassist</artifactId>
268                    <version>3.24.1-GA</version>
269             </dependency>
270             <dependency>
271                     <groupId>org.apache.tomcat.embed</groupId>
272                     <artifactId>tomcat-embed-core</artifactId>
273                     <version>9.0.50</version>
274             </dependency>
275             <dependency>
276                    <groupId>ch.qos.logback</groupId>
277                    <artifactId>logback-core</artifactId>
278                    <version>1.2.10</version>
279             </dependency>
280         </dependencies>
281
282         <build>
283                 <plugins>
284
285                         <!--plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId>
286                                 <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution>
287                                 <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId>
288                                 <versionRange>2.17,)</versionRange> <goals> <goal>check</goal> </goals> </pluginExecutionFilter>
289                                 <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata>
290                                 </configuration> </plugin -->
291                         <plugin>
292                                 <groupId>org.springframework.boot</groupId>
293                                 <artifactId>spring-boot-maven-plugin</artifactId>
294                                 <version>2.3.1.RELEASE</version>
295                                 <executions>
296                                         <execution>
297                                                 <goals>
298                                                         <goal>repackage</goal>
299                                                 </goals>
300                                         </execution>
301                                 </executions>
302                         </plugin>
303                         <plugin>
304                                 <groupId>com.spotify</groupId>
305                                 <artifactId>docker-maven-plugin</artifactId>
306                                 <configuration>
307                                         <serverId>${onap.nexus.dockerregistry.daily}</serverId>
308
309                                         <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
310                                         <imageTags>
311                                                 <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
312                                                 <imageTag>${project.version}</imageTag>
313                                                 <imageTag>latest</imageTag>
314                                         </imageTags>
315                                         <baseImage>openjdk:11.0.6-jre-slim</baseImage>
316                                         <user>sonhms</user>
317                                         <resources>
318                                                 <resource>
319                                                         <targetPath>/bin</targetPath>
320                                                         <directory>${project.build.directory}</directory>
321                                                         <include>${project.artifactId}-${project.version}.jar</include>
322                                                 </resource>
323                                         </resources>
324                                         <runs>
325                                                 <!-- Maven is loosing file permissions during artifacts copy -->
326                                                 <run>adduser --disabled-password sonhms </run>
327                                                 <run>mv /bin/*.jar /bin/application.jar</run>
328                                                 <run>chmod -R 777 /bin</run>
329                                         </runs>
330                                         <exposes>
331                                                 <expose>8080</expose>
332                                         </exposes>
333                                         <entryPoint>java -jar /bin/application.jar</entryPoint>
334                                 </configuration>
335 <!--
336                                 <executions>
337                                         <execution>
338                                                 <id>build-image</id>
339                                                 <phase>package</phase>
340                                                 <goals>
341                                                         <goal>build</goal>
342                                                 </goals>
343                                         </execution>
344                                         <execution>
345                                                 <id>tag-and-push-image-latest</id>
346                                                 <phase>deploy</phase>
347                                                 <goals>
348                                                         <goal>tag</goal>
349                                                 </goals>
350                                                 <configuration>
351                                                         <image>${docker.image.name}:latest</image>
352                                                         <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
353                                                         <pushImage>true</pushImage>
354                                                 </configuration>
355                                         </execution>
356                                         <execution>
357                                                 <id>tag-and-push-image-with-version</id>
358                                                 <phase>deploy</phase>
359                                                 <goals>
360                                                         <goal>tag</goal>
361                                                 </goals>
362                                                 <configuration>
363                                                         <image>${docker.image.name}:latest</image>
364                                                         <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
365                                                         <pushImage>true</pushImage>
366                                                 </configuration>
367                                         </execution>
368                                         <execution>
369                                                 <id>tag-and-push-image-with-version-and-date</id>
370                                                 <phase>deploy</phase>
371                                                 <goals>
372                                                         <goal>tag</goal>
373                                                 </goals>
374                                                 <configuration>
375                                                         <image>${docker.image.name}:latest</image>
376                                                         <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
377                                                         <pushImage>true</pushImage>
378                                                 </configuration>
379                                         </execution>
380                                 </executions>
381 -->
382                         </plugin>
383                 </plugins>
384         </build>
385 </project>