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>2.0.0-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>
55 <sonar.coverage.jacoco.xmlReportPaths>
56 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
57 </sonar.coverage.jacoco.xmlReportPaths>
63 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
64 <artifactId>cbs-client</artifactId>
65 <version>${sdk.version}</version>
69 <groupId>org.onap.dcaegen2.services.sdk.security.crypt</groupId>
70 <artifactId>crypt-password</artifactId>
71 <version>${sdk.version}</version>
74 <!-- Import dependency management from Spring Boot -->
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-dependencies</artifactId>
77 <version>2.0.4.RELEASE</version>
82 <groupId>com.att.nsa</groupId>
83 <artifactId>cambriaClient</artifactId>
84 <version>0.0.1</version>
87 <groupId>junit</groupId>
88 <artifactId>junit</artifactId>
92 <groupId>com.fasterxml.jackson.core</groupId>
93 <artifactId>jackson-core</artifactId>
94 <version>2.9.9</version>
97 <groupId>com.fasterxml.jackson.core</groupId>
98 <artifactId>jackson-databind</artifactId>
99 <version>2.9.9</version>
101 <!-- https://mvnrepository.com/artifact/javax.json/javax.json-api -->
103 <groupId>javax.json</groupId>
104 <artifactId>javax.json-api</artifactId>
105 <version>1.1.2</version>
108 <groupId>org.springframework.boot</groupId>
109 <artifactId>spring-boot-starter-web</artifactId>
110 <version>2.0.4.RELEASE</version>
113 <groupId>org.postgresql</groupId>
114 <artifactId>postgresql</artifactId>
115 <version>42.2.5</version>
118 <groupId>org.springframework.boot</groupId>
119 <artifactId>spring-boot-starter-data-jpa</artifactId>
120 <version>2.0.9.RELEASE</version>
123 <groupId>org.springframework.data</groupId>
124 <artifactId>spring-data-commons-core</artifactId>
125 <version>1.4.0.RELEASE</version>
129 <groupId>org.hibernate.javax.persistence</groupId>
130 <artifactId>hibernate-jpa-2.0-api</artifactId>
131 <version>1.0.1.Final</version>
133 <!-- https://mvnrepository.com/artifact/org.springframework/spring-beans -->
135 <groupId>org.springframework</groupId>
136 <artifactId>spring-beans</artifactId>
137 <version>5.0.10.RELEASE</version>
141 <groupId>org.springframework.boot</groupId>
142 <artifactId>spring-boot-starter-test</artifactId>
143 <version>2.0.4.RELEASE</version>
145 <!-- exclusions> <exclusion> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId>
146 </exclusion> </exclusions -->
148 <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core -->
151 <groupId>org.mockito</groupId>
152 <artifactId>mockito-core</artifactId>
153 <version>1.10.16</version>
159 <groupId>junit</groupId>
160 <artifactId>junit</artifactId>
161 <version>4.12</version>
164 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
165 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito -->
167 <groupId>org.powermock</groupId>
168 <artifactId>powermock-api-mockito</artifactId>
169 <version>1.6.4</version>
172 <!-- https://mvnrepository.com/artifact/org.powermock/powermock-module-junit4 -->
174 <groupId>org.powermock</groupId>
175 <artifactId>powermock-module-junit4</artifactId>
176 <version>1.6.4</version>
181 <groupId>org.functionaljava</groupId>
182 <artifactId>functionaljava</artifactId>
183 <version>3.0</version>
186 <groupId>org.springframework</groupId>
187 <artifactId>spring-core</artifactId>
188 <version>5.0.9.RELEASE</version>
191 <groupId>org.springframework</groupId>
192 <artifactId>spring-expression</artifactId>
193 <version>5.0.9.RELEASE</version>
196 <groupId>org.springframework</groupId>
197 <artifactId>spring-web</artifactId>
198 <version>5.0.10.RELEASE</version>
201 <groupId>org.springframework</groupId>
202 <artifactId>spring-webmvc</artifactId>
203 <version>5.0.9.RELEASE</version>
206 <groupId>org.apache.tomcat.embed</groupId>
207 <artifactId>tomcat-embed-core</artifactId>
208 <version>9.0.16</version>
211 <groupId>org.apache.httpcomponents</groupId>
212 <artifactId>httpclient</artifactId>
213 <version>4.5.7</version>
216 <!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
218 <groupId>commons-beanutils</groupId>
219 <artifactId>commons-beanutils</artifactId>
220 <version>1.9.4</version>
222 <!-- mvnrepository.com/artifact/org.eclipse.jetty/jetty-server -->
224 <groupId>org.eclipse.jetty</groupId>
225 <artifactId>jetty-server</artifactId>
226 <version>9.4.17.v20190418</version>
228 <!-- https://mvnrepository.com/artifact/org.webjars/bootstrap -->
230 <groupId>org.webjars</groupId>
231 <artifactId>bootstrap</artifactId>
232 <version>4.3.1</version>
240 <!--plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId>
241 <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution>
242 <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId>
243 <versionRange>2.17,)</versionRange> <goals> <goal>check</goal> </goals> </pluginExecutionFilter>
244 <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata>
245 </configuration> </plugin -->
247 <groupId>org.springframework.boot</groupId>
248 <artifactId>spring-boot-maven-plugin</artifactId>
249 <version>2.0.4.RELEASE</version>
253 <goal>repackage</goal>
259 <groupId>com.spotify</groupId>
260 <artifactId>docker-maven-plugin</artifactId>
262 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
264 <imageName>${onap.nexus.dockerregistry.daily}/${docker.image.name}</imageName>
266 <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag>
267 <imageTag>${project.version}</imageTag>
268 <imageTag>latest</imageTag>
270 <baseImage>openjdk:8-alpine</baseImage>
274 <targetPath>/bin</targetPath>
275 <directory>${project.build.directory}</directory>
276 <include>${project.artifactId}-${project.version}.jar</include>
280 <!-- Maven is loosing file permissions during artifacts copy -->
281 <run>adduser --disabled-password sonhms </run>
282 <run>mv /bin/*.jar /bin/application.jar</run>
283 <run>chmod -R 777 /bin</run>
286 <expose>8080</expose>
288 <entryPoint>java -jar /bin/application.jar</entryPoint>
294 <phase>package</phase>
300 <id>tag-and-push-image-latest</id>
301 <phase>deploy</phase>
306 <image>${docker.image.name}:latest</image>
307 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:latest</newName>
308 <pushImage>true</pushImage>
312 <id>tag-and-push-image-with-version</id>
313 <phase>deploy</phase>
318 <image>${docker.image.name}:latest</image>
319 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}</newName>
320 <pushImage>true</pushImage>
324 <id>tag-and-push-image-with-version-and-date</id>
325 <phase>deploy</phase>
330 <image>${docker.image.name}:latest</image>
331 <newName>${onap.nexus.dockerregistry.daily}/${docker.image.name}:${project.version}-${maven.build.timestamp}Z</newName>
332 <pushImage>true</pushImage>