1 <?xml version="1.0" encoding="UTF-8"?>
3 /*******************************************************************************
4 * ============LICENSE_START=======================================================
6 * ================================================================================
7 * Copyright (C) 2019 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>1.1.1-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.1.4</sdk.version>
45 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46 <maven.compiler.source>1.8</maven.compiler.source>
47 <maven.compiler.target>1.8</maven.compiler.target>
48 <docker.image.name>onap/org.onap.dcaegen2.services.son-handler</docker.image.name>
49 <!-- NEXUS RELATED SETTINGS -->
50 <nexusproxy>https://nexus.onap.org</nexusproxy>
51 <snapshots.path>content/repositories/snapshots/</snapshots.path>
52 <releases.path>content/repositories/releases/</releases.path>
53 <site.path>content/sites/site/org/onap/dcaegen2/services/son-handler/${project.artifactId}/${project.version}</site.path>
54 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
60 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
61 <artifactId>cbs-client</artifactId>
62 <version>${sdk.version}</version>
66 <groupId>org.onap.dcaegen2.services.sdk.security.crypt</groupId>
67 <artifactId>crypt-password</artifactId>
68 <version>${sdk.version}</version>
71 <!-- Import dependency management from Spring Boot -->
72 <groupId>org.springframework.boot</groupId>
73 <artifactId>spring-boot-dependencies</artifactId>
74 <version>2.0.4.RELEASE</version>
79 <groupId>com.att.nsa</groupId>
80 <artifactId>cambriaClient</artifactId>
81 <version>0.0.1</version>
84 <groupId>junit</groupId>
85 <artifactId>junit</artifactId>
89 <groupId>com.fasterxml.jackson.core</groupId>
90 <artifactId>jackson-core</artifactId>
91 <version>2.9.9</version>
94 <groupId>com.fasterxml.jackson.core</groupId>
95 <artifactId>jackson-databind</artifactId>
96 <version>2.9.9</version>
98 <!-- https://mvnrepository.com/artifact/javax.json/javax.json-api -->
100 <groupId>javax.json</groupId>
101 <artifactId>javax.json-api</artifactId>
102 <version>1.1.2</version>
105 <groupId>org.springframework.boot</groupId>
106 <artifactId>spring-boot-starter-web</artifactId>
107 <version>2.0.4.RELEASE</version>
110 <groupId>org.postgresql</groupId>
111 <artifactId>postgresql</artifactId>
112 <version>42.2.5</version>
115 <groupId>org.springframework.boot</groupId>
116 <artifactId>spring-boot-starter-data-jpa</artifactId>
117 <version>2.0.9.RELEASE</version>
120 <groupId>org.springframework.data</groupId>
121 <artifactId>spring-data-commons-core</artifactId>
122 <version>1.4.0.RELEASE</version>
126 <groupId>org.hibernate.javax.persistence</groupId>
127 <artifactId>hibernate-jpa-2.0-api</artifactId>
128 <version>1.0.1.Final</version>
130 <!-- https://mvnrepository.com/artifact/org.springframework/spring-beans -->
132 <groupId>org.springframework</groupId>
133 <artifactId>spring-beans</artifactId>
134 <version>5.0.10.RELEASE</version>
138 <groupId>org.springframework.boot</groupId>
139 <artifactId>spring-boot-starter-test</artifactId>
140 <version>2.0.4.RELEASE</version>
142 <!-- exclusions> <exclusion> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId>
143 </exclusion> </exclusions -->
145 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
148 <groupId>org.mockito</groupId>
149 <artifactId>mockito-core</artifactId>
150 <version>1.10.16</version>
156 <groupId>junit</groupId>
157 <artifactId>junit</artifactId>
158 <version>4.12</version>
161 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
162 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
164 <groupId>org.powermock</groupId>
165 <artifactId>powermock-api-mockito</artifactId>
166 <version>1.6.4</version>
169 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
171 <groupId>org.powermock</groupId>
172 <artifactId>powermock-module-junit4</artifactId>
173 <version>1.6.4</version>
178 <groupId>org.functionaljava</groupId>
179 <artifactId>functionaljava</artifactId>
180 <version>3.0</version>
183 <groupId>org.springframework</groupId>
184 <artifactId>spring-core</artifactId>
185 <version>5.0.9.RELEASE</version>
188 <groupId>org.springframework</groupId>
189 <artifactId>spring-expression</artifactId>
190 <version>5.0.9.RELEASE</version>
193 <groupId>org.springframework</groupId>
194 <artifactId>spring-web</artifactId>
195 <version>5.0.10.RELEASE</version>
198 <groupId>org.springframework</groupId>
199 <artifactId>spring-webmvc</artifactId>
200 <version>5.0.9.RELEASE</version>
203 <groupId>org.apache.tomcat.embed</groupId>
204 <artifactId>tomcat-embed-core</artifactId>
205 <version>9.0.16</version>
208 <groupId>org.apache.httpcomponents</groupId>
209 <artifactId>httpclient</artifactId>
210 <version>4.5.7</version>
213 <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
215 <groupId>commons-beanutils</groupId>
216 <artifactId>commons-beanutils</artifactId>
217 <version>1.9.4</version>
219 <!-- mvnrepository.com/artifact/org.eclipse.jetty/jetty-server -->
221 <groupId>org.eclipse.jetty</groupId>
222 <artifactId>jetty-server</artifactId>
223 <version>9.4.17.v20190418</version>
225 <!-- https://mvnrepository.com/artifact/org.webjars/bootstrap -->
227 <groupId>org.webjars</groupId>
228 <artifactId>bootstrap</artifactId>
229 <version>4.3.1</version>
237 <!--plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId>
238 <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution>
239 <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId>
240 <versionRange>2.17,)</versionRange> <goals> <goal>check</goal> </goals> </pluginExecutionFilter>
241 <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata>
242 </configuration> </plugin -->
244 <groupId>org.springframework.boot</groupId>
245 <artifactId>spring-boot-maven-plugin</artifactId>
246 <version>2.0.4.RELEASE</version>
250 <goal>repackage</goal>
256 <groupId>com.spotify</groupId>
257 <artifactId>docker-maven-plugin</artifactId>
259 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
261 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
263 <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
264 <imageTag>${project.version}</imageTag>
265 <imageTag>latest</imageTag>
267 <baseImage>openjdk:8-alpine</baseImage>
271 <targetPath>/bin</targetPath>
272 <directory>${project.build.directory}</directory>
273 <include>${project.artifactId}-${project.version}.jar</include>
277 <!-- Maven is loosing file permissions during artifacts copy -->
278 <run>adduser --disabled-password sonhms </run>
279 <run>mv /bin/*.jar /bin/application.jar</run>
280 <run>chmod -R 777 /bin</run>
283 <expose>8080</expose>
285 <entryPoint>java -jar /bin/application.jar</entryPoint>
291 <phase>package</phase>
297 <id>tag-and-push-image-latest</id>
298 <phase>deploy</phase>
303 <image>${docker.image.name}:latest</image>
304 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
305 <pushImage>true</pushImage>
309 <id>tag-and-push-image-with-version</id>
310 <phase>deploy</phase>
315 <image>${docker.image.name}:latest</image>
316 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
317 <pushImage>true</pushImage>
321 <id>tag-and-push-image-with-version-and-date</id>
322 <phase>deploy</phase>
327 <image>${docker.image.name}:latest</image>
328 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
329 <pushImage>true</pushImage>