1 <?xml version="1.0" encoding="UTF-8"?>
3 /*******************************************************************************
4 * ============LICENSE_START=======================================================
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
22 *******************************************************************************/
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>
32 <!--parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId>
33 <version>2.0.4.RELEASE</version> </parent -->
36 <groupId>org.onap.oparent</groupId>
37 <artifactId>oparent</artifactId>
38 <version>2.0.0</version>
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>
62 <!-- https://mvnrepository.com/artifact/org.apache.tomcat/tomcat-util -->
64 <groupId>org.apache.tomcat</groupId>
65 <artifactId>tomcat-util</artifactId>
66 <version>9.0.37</version>
68 <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-autoconfigure -->
70 <groupId>org.springframework.boot</groupId>
71 <artifactId>spring-boot-autoconfigure</artifactId>
72 <version>2.3.1.RELEASE</version>
75 <groupId>org.springframework</groupId>
76 <artifactId>spring-webmvc</artifactId>
77 <version>${spring.version}</version>
80 <groupId>org.springframework</groupId>
81 <artifactId>spring-core</artifactId>
82 <version>${spring.version}</version>
85 <groupId>org.springframework</groupId>
86 <artifactId>spring-beans</artifactId>
87 <version>${spring.version}</version>
90 <groupId>org.springframework</groupId>
91 <artifactId>spring-expression</artifactId>
92 <version>${spring.version}</version>
95 <groupId>org.springframework</groupId>
96 <artifactId>spring-web</artifactId>
97 <version>${spring.version}</version>
100 <groupId>org.springframework</groupId>
101 <artifactId>spring-tx</artifactId>
102 <version>${spring.version}</version>
105 <groupId>org.springframework.data</groupId>
106 <artifactId>spring-data-commons</artifactId>
107 <version>2.2.0.RELEASE</version>
109 <!-- https://mvnrepository.com/artifact/io.projectreactor.netty/reactor-netty -->
111 <groupId>io.projectreactor.netty</groupId>
112 <artifactId>reactor-netty</artifactId>
113 <version>0.9.12.RELEASE</version>
117 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
118 <artifactId>cbs-client</artifactId>
119 <version>${sdk.version}</version>
122 <groupId>org.onap.dcaegen2.services.sdk.security.crypt</groupId>
123 <artifactId>crypt-password</artifactId>
124 <version>${sdk.version}</version>
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>
132 <scope>import</scope>
135 <groupId>com.att.nsa</groupId>
136 <artifactId>cambriaClient</artifactId>
137 <version>0.0.1</version>
140 <groupId>junit</groupId>
141 <artifactId>junit</artifactId>
145 <groupId>com.fasterxml.jackson.core</groupId>
146 <artifactId>jackson-core</artifactId>
147 <version>2.12.6</version>
150 <groupId>com.fasterxml.jackson.core</groupId>
151 <artifactId>jackson-databind</artifactId>
152 <version>2.12.6</version>
154 <!-- https://mvnrepository.com/artifact/javax.json/javax.json-api -->
156 <groupId>javax.json</groupId>
157 <artifactId>javax.json-api</artifactId>
158 <version>1.1.2</version>
161 <groupId>org.springframework.boot</groupId>
162 <artifactId>spring-boot-starter-web</artifactId>
163 <version>2.1.3.RELEASE</version>
166 <groupId>org.springframework.boot</groupId>
167 <artifactId>spring-boot-starter-tomcat</artifactId>
172 <groupId>org.postgresql</groupId>
173 <artifactId>postgresql</artifactId>
174 <version>42.2.18</version>
177 <groupId>org.springframework.boot</groupId>
178 <artifactId>spring-boot-starter-data-jpa</artifactId>
179 <version>2.1.3.RELEASE</version>
182 <groupId>org.hibernate.javax.persistence</groupId>
183 <artifactId>hibernate-jpa-2.0-api</artifactId>
184 <version>1.0.1.Final</version>
186 <!-- https://mvnrepository.com/artifact/org.springframework/spring-beans -->
188 <groupId>org.springframework.boot</groupId>
189 <artifactId>spring-boot-starter-test</artifactId>
190 <version>2.1.3.RELEASE</version>
192 <!-- exclusions> <exclusion> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId>
193 </exclusion> </exclusions -->
195 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
197 <groupId>org.mockito</groupId>
198 <artifactId>mockito-core</artifactId>
199 <version>2.21.0</version>
203 <groupId>junit</groupId>
204 <artifactId>junit</artifactId>
205 <version>4.12</version>
208 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito2 -->
210 <groupId>org.powermock</groupId>
211 <artifactId>powermock-api-mockito2</artifactId>
212 <version>2.0.2</version>
215 <groupId>org.mockito</groupId>
216 <artifactId>mockito-all</artifactId>
220 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
222 <groupId>org.powermock</groupId>
223 <artifactId>powermock-module-junit4</artifactId>
224 <version>2.0.2</version>
229 <groupId>org.functionaljava</groupId>
230 <artifactId>functionaljava</artifactId>
231 <version>3.0</version>
235 <groupId>org.apache.httpcomponents</groupId>
236 <artifactId>httpclient</artifactId>
237 <version>4.5.13</version>
240 <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
242 <groupId>commons-beanutils</groupId>
243 <artifactId>commons-beanutils</artifactId>
244 <version>1.9.4</version>
246 <!-- mvnrepository.com/artifact/org.eclipse.jetty/jetty-server -->
248 <groupId>org.eclipse.jetty</groupId>
249 <artifactId>jetty-server</artifactId>
250 <version>9.4.40.v20210413</version>
252 <!-- https://mvnrepository.com/artifact/org.webjars/bootstrap -->
254 <groupId>org.webjars</groupId>
255 <artifactId>bootstrap</artifactId>
256 <version>4.3.1</version>
258 <!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api -->
260 <groupId>javax.xml.bind</groupId>
261 <artifactId>jaxb-api</artifactId>
262 <version>2.3.0</version>
264 <!-- https://mvnrepository.com/artifact/org.javassist/javassist -->
266 <groupId>org.javassist</groupId>
267 <artifactId>javassist</artifactId>
268 <version>3.24.1-GA</version>
271 <groupId>org.apache.tomcat.embed</groupId>
272 <artifactId>tomcat-embed-core</artifactId>
273 <version>9.0.50</version>
276 <groupId>ch.qos.logback</groupId>
277 <artifactId>logback-core</artifactId>
278 <version>1.2.10</version>
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 -->
292 <groupId>org.springframework.boot</groupId>
293 <artifactId>spring-boot-maven-plugin</artifactId>
294 <version>2.3.1.RELEASE</version>
298 <goal>repackage</goal>
304 <groupId>com.spotify</groupId>
305 <artifactId>docker-maven-plugin</artifactId>
307 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
309 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
311 <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
312 <imageTag>${project.version}</imageTag>
313 <imageTag>latest</imageTag>
315 <baseImage>openjdk:11.0.6-jre-slim</baseImage>
319 <targetPath>/bin</targetPath>
320 <directory>${project.build.directory}</directory>
321 <include>${project.artifactId}-${project.version}.jar</include>
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>
331 <expose>8080</expose>
333 <entryPoint>java -jar /bin/application.jar</entryPoint>
339 <phase>package</phase>
345 <id>tag-and-push-image-latest</id>
346 <phase>deploy</phase>
351 <image>${docker.image.name}:latest</image>
352 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
353 <pushImage>true</pushImage>
357 <id>tag-and-push-image-with-version</id>
358 <phase>deploy</phase>
363 <image>${docker.image.name}:latest</image>
364 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
365 <pushImage>true</pushImage>
369 <id>tag-and-push-image-with-version-and-date</id>
370 <phase>deploy</phase>
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>