1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 <modelVersion>4.0.0</modelVersion>
8 <groupId>org.onap.oparent</groupId>
9 <artifactId>oparent</artifactId>
10 <version>2.0.0</version>
13 <groupId>org.onap.dcaegen2.services.components</groupId>
14 <artifactId>bbs-event-processor</artifactId>
15 <version>1.1.0-SNAPSHOT</version>
17 <name>dcaegen2-services-bbs-event-processor</name>
18 <description>BBS Re-Registration and CPE Authentication Handler</description>
19 <packaging>jar</packaging>
23 <name>The Apache Software License, Version 2.0</name>
24 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
29 <java.version>8</java.version>
30 <immutables.version>2.7.5</immutables.version>
31 <spring-boot.version>2.1.3.RELEASE</spring-boot.version>
32 <tomcat.version>8.5.32</tomcat.version>
33 <slf4j.version>1.7.25</slf4j.version>
34 <junit-platform.version>1.1.0</junit-platform.version>
35 <jacoco.version>0.8.2</jacoco.version>
36 <dcae.sdk.version>1.1.4</dcae.sdk.version>
37 <wiremock.version>2.21.0</wiremock.version>
38 <springfox-swagger.version>2.8.0</springfox-swagger.version>
39 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
40 <bbs-event-processor.main.class>org.onap.bbs.event.processor.Application</bbs-event-processor.main.class>
41 <dependency.dir.name>libs</dependency.dir.name>
42 <dependency.dir.location>${project.build.directory}/${dependency.dir.name}</dependency.dir.location>
43 <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
44 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
45 <sonar.coverage.jacoco.xmlReportPaths>
46 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
47 </sonar.coverage.jacoco.xmlReportPaths>
50 <dependencyManagement>
53 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
54 <artifactId>cbs-client</artifactId>
55 <version>${dcae.sdk.version}</version>
58 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
59 <artifactId>dmaap-client</artifactId>
60 <version>${dcae.sdk.version}</version>
63 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
64 <artifactId>common-dependency</artifactId>
65 <version>${dcae.sdk.version}</version>
68 <groupId>io.springfox</groupId>
69 <artifactId>springfox-swagger2</artifactId>
70 <version>${springfox-swagger.version}</version>
73 <groupId>io.springfox</groupId>
74 <artifactId>springfox-swagger-ui</artifactId>
75 <version>${springfox-swagger.version}</version>
78 <groupId>org.immutables</groupId>
79 <artifactId>value</artifactId>
80 <version>${immutables.version}</version>
83 <groupId>org.immutables</groupId>
84 <artifactId>gson</artifactId>
85 <version>${immutables.version}</version>
88 <groupId>org.springframework.boot</groupId>
89 <artifactId>spring-boot-dependencies</artifactId>
90 <version>${spring-boot.version}</version>
95 <groupId>com.github.tomakehurst</groupId>
96 <artifactId>wiremock-jre8</artifactId>
97 <version>${wiremock.version}</version>
100 </dependencyManagement>
104 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
105 <artifactId>cbs-client</artifactId>
108 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
109 <artifactId>dmaap-client</artifactId>
112 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
113 <artifactId>common-dependency</artifactId>
116 <groupId>org.springframework.boot</groupId>
117 <artifactId>spring-boot-starter-web</artifactId>
120 <groupId>org.springframework.boot</groupId>
121 <artifactId>spring-boot-starter-webflux</artifactId>
124 <groupId>org.springframework.boot</groupId>
125 <artifactId>spring-boot-starter-test</artifactId>
129 <groupId>io.springfox</groupId>
130 <artifactId>springfox-swagger2</artifactId>
133 <groupId>io.springfox</groupId>
134 <artifactId>springfox-swagger-ui</artifactId>
137 <groupId>io.projectreactor</groupId>
138 <artifactId>reactor-core</artifactId>
141 <groupId>org.immutables</groupId>
142 <artifactId>value</artifactId>
145 <groupId>org.immutables</groupId>
146 <artifactId>gson</artifactId>
149 <groupId>org.junit.jupiter</groupId>
150 <artifactId>junit-jupiter-engine</artifactId>
154 <groupId>org.mockito</groupId>
155 <artifactId>mockito-core</artifactId>
159 <groupId>io.projectreactor</groupId>
160 <artifactId>reactor-test</artifactId>
164 <groupId>org.projectlombok</groupId>
165 <artifactId>lombok</artifactId>
168 <groupId>com.fasterxml.jackson.datatype</groupId>
169 <artifactId>jackson-datatype-jsr310</artifactId>
173 <groupId>com.github.tomakehurst</groupId>
174 <artifactId>wiremock-jre8</artifactId>
178 <groupId>com.fasterxml.jackson.core</groupId>
179 <artifactId>jackson-core</artifactId>
182 <groupId>com.fasterxml.jackson.core</groupId>
183 <artifactId>jackson-annotations</artifactId>
186 <groupId>com.fasterxml.jackson.core</groupId>
187 <artifactId>jackson-databind</artifactId>
197 <groupId>org.apache.maven.plugins</groupId>
198 <artifactId>maven-compiler-plugin</artifactId>
199 <version>3.7.0</version>
201 <source>${java.version}</source>
202 <target>${java.version}</target>
203 <encoding>${project.build.sourceEncoding}</encoding>
204 <showWarnings>true</showWarnings>
205 <showDeprecation>true</showDeprecation>
209 <groupId>org.apache.maven.plugins</groupId>
210 <artifactId>maven-resources-plugin</artifactId>
211 <version>3.1.0</version>
213 <encoding>${project.build.sourceEncoding}</encoding>
217 <groupId>org.apache.maven.plugins</groupId>
218 <artifactId>maven-enforcer-plugin</artifactId>
224 <groupId>org.apache.maven.plugins</groupId>
225 <artifactId>maven-deploy-plugin</artifactId>
228 <groupId>org.springframework.boot</groupId>
229 <artifactId>spring-boot-maven-plugin</artifactId>
230 <version>${spring-boot.version}</version>
234 <goal>repackage</goal>
240 <groupId>pl.project13.maven</groupId>
241 <artifactId>git-commit-id-plugin</artifactId>
242 <version>2.2.6</version>
245 <groupId>org.apache.maven.plugins</groupId>
246 <artifactId>maven-jar-plugin</artifactId>
247 <version>3.1.1</version>
250 <groupId>com.spotify</groupId>
251 <artifactId>dockerfile-maven-plugin</artifactId>
252 <version>1.4.10</version>
255 <groupId>org.apache.maven.plugins</groupId>
256 <artifactId>maven-surefire-plugin</artifactId>
257 <version>2.19.1</version>
260 <groupId>org.junit.platform</groupId>
261 <artifactId>junit-platform-surefire-provider</artifactId>
262 <version>${junit-platform.version}</version>
270 <groupId>pl.project13.maven</groupId>
271 <artifactId>git-commit-id-plugin</artifactId>
273 <dateFormat>${maven.build.timestamp.format}</dateFormat>
274 <generateGitPropertiesFile>true</generateGitPropertiesFile>
275 <format>json</format>
276 <generateGitPropertiesFilename>${project.build.outputDirectory}/git_info.json</generateGitPropertiesFilename>
280 <id>get-git-info</id>
282 <goal>revision</goal>
288 <groupId>org.apache.maven.plugins</groupId>
289 <artifactId>maven-jar-plugin</artifactId>
293 <addClasspath>true</addClasspath>
294 <classpathPrefix>./${dependency.dir.name}/</classpathPrefix>
295 <useUniqueVersions>false</useUniqueVersions>
296 <mainClass>${bbs-event-processor.main.class}</mainClass>
297 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
300 <Build-Time>${maven.build.timestamp}</Build-Time>
306 <groupId>org.apache.maven.plugins</groupId>
307 <artifactId>maven-dependency-plugin</artifactId>
309 <outputDirectory>${dependency.dir.location}</outputDirectory>
310 <includeScope>runtime</includeScope>
311 <silent>true</silent>
315 <id>copy-external-dependencies</id>
316 <phase>package</phase>
318 <goal>copy-dependencies</goal>
324 <groupId>com.spotify</groupId>
325 <artifactId>dockerfile-maven-plugin</artifactId>
327 <contextDirectory>${project.basedir}</contextDirectory>
328 <repository>${docker.image.name}</repository>
331 <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME>
332 <DEPENDENCIES_DIR>${dependency.dir.name}</DEPENDENCIES_DIR>
333 <DOCKER_ARTIFACT_DIR>/opt</DOCKER_ARTIFACT_DIR>
334 <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR>
339 <id>build-bbs-event-processor-image</id>
340 <phase>deploy</phase>
346 <id>tag-and-push-image-latest</id>
347 <phase>deploy</phase>
353 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
355 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
359 <id>tag-and-push-image-with-version</id>
360 <phase>deploy</phase>
366 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
367 <tag>${project.version}</tag>
368 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
372 <id>tag-and-push-image-with-version-and-date</id>
373 <phase>deploy</phase>
379 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
380 <tag>${project.version}-${maven.build.timestamp}Z</tag>
381 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>