blob: 7d8c43f04ab9fb05877c61af97aacd80aab2b67d [file] [log] [blame]
Stavros Kanarakisd8603572019-03-21 10:50:44 +02001<?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>
Gerard Hickey82a1eb12019-07-11 15:54:54 +01006
Stavros Kanarakisd8603572019-03-21 10:50:44 +02007 <parent>
Stavros Kanarakis3601ddf2019-04-04 12:05:02 +03008 <groupId>org.onap.oparent</groupId>
9 <artifactId>oparent</artifactId>
Gerard Hickey82a1eb12019-07-11 15:54:54 +010010 <version>2.0.0</version>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020011 </parent>
12
13 <groupId>org.onap.dcaegen2.services.components</groupId>
14 <artifactId>bbs-event-processor</artifactId>
Stavros Kanarakis22025d42020-02-28 21:53:04 +020015 <version>2.0.0-SNAPSHOT</version>
Gerard Hickey82a1eb12019-07-11 15:54:54 +010016
Vijay Venkatesh Kumar1d6ab882019-03-22 13:04:35 +000017 <name>dcaegen2-services-bbs-event-processor</name>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020018 <description>BBS Re-Registration and CPE Authentication Handler</description>
19 <packaging>jar</packaging>
20
21 <licenses>
22 <license>
23 <name>The Apache Software License, Version 2.0</name>
24 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
25 </license>
26 </licenses>
27
28 <properties>
Stavros Kanarakis22025d42020-02-28 21:53:04 +020029 <java.version>11</java.version>
30 <immutables.version>2.8.3</immutables.version>
31 <spring-boot.version>2.1.12.RELEASE</spring-boot.version>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020032 <junit-platform.version>1.1.0</junit-platform.version>
33 <jacoco.version>0.8.2</jacoco.version>
Stavros Kanarakis22025d42020-02-28 21:53:04 +020034 <dcae.sdk.version>1.3.4</dcae.sdk.version>
35 <wiremock.version>2.24.0</wiremock.version>
36 <jaxb.api.version>2.3.0</jaxb.api.version>
37 <springfox-swagger.version>2.9.2</springfox-swagger.version>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020038 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
39 <bbs-event-processor.main.class>org.onap.bbs.event.processor.Application</bbs-event-processor.main.class>
40 <dependency.dir.name>libs</dependency.dir.name>
41 <dependency.dir.location>${project.build.directory}/${dependency.dir.name}</dependency.dir.location>
Stavros Kanarakisbc054e72019-03-29 10:44:59 +020042 <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020043 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
Stavros Kanarakis0ac37dc2020-03-11 15:50:14 +020044 <sonar.coverage.jacoco.xmlReportPaths>
45 ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
46 </sonar.coverage.jacoco.xmlReportPaths>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020047 </properties>
48
49 <dependencyManagement>
50 <dependencies>
51 <dependency>
52 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
53 <artifactId>cbs-client</artifactId>
Stavros Kanarakis47201b62019-04-10 13:04:11 +030054 <version>${dcae.sdk.version}</version>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020055 </dependency>
56 <dependency>
57 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
58 <artifactId>dmaap-client</artifactId>
Stavros Kanarakis47201b62019-04-10 13:04:11 +030059 <version>${dcae.sdk.version}</version>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020060 </dependency>
61 <dependency>
62 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
Stavros Kanarakis22025d42020-02-28 21:53:04 +020063 <artifactId>http-client</artifactId>
Stavros Kanarakis47201b62019-04-10 13:04:11 +030064 <version>${dcae.sdk.version}</version>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020065 </dependency>
66 <dependency>
67 <groupId>io.springfox</groupId>
68 <artifactId>springfox-swagger2</artifactId>
69 <version>${springfox-swagger.version}</version>
70 </dependency>
71 <dependency>
72 <groupId>io.springfox</groupId>
73 <artifactId>springfox-swagger-ui</artifactId>
74 <version>${springfox-swagger.version}</version>
75 </dependency>
76 <dependency>
77 <groupId>org.immutables</groupId>
78 <artifactId>value</artifactId>
79 <version>${immutables.version}</version>
80 </dependency>
81 <dependency>
82 <groupId>org.immutables</groupId>
83 <artifactId>gson</artifactId>
84 <version>${immutables.version}</version>
85 </dependency>
86 <dependency>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020087 <groupId>org.springframework.boot</groupId>
88 <artifactId>spring-boot-dependencies</artifactId>
89 <version>${spring-boot.version}</version>
90 <type>pom</type>
91 <scope>import</scope>
92 </dependency>
93 <dependency>
94 <groupId>com.github.tomakehurst</groupId>
95 <artifactId>wiremock-jre8</artifactId>
96 <version>${wiremock.version}</version>
97 </dependency>
Stavros Kanarakis22025d42020-02-28 21:53:04 +020098 <dependency>
99 <groupId>javax.xml.bind</groupId>
100 <artifactId>jaxb-api</artifactId>
101 <version>${jaxb.api.version}</version>
102 </dependency>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200103 </dependencies>
104 </dependencyManagement>
105
106 <dependencies>
107 <dependency>
108 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
109 <artifactId>cbs-client</artifactId>
110 </dependency>
111 <dependency>
112 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200113 <artifactId>dmaap-client</artifactId>
114 </dependency>
115 <dependency>
116 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200117 <artifactId>http-client</artifactId>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200118 </dependency>
119 <dependency>
120 <groupId>org.springframework.boot</groupId>
121 <artifactId>spring-boot-starter-web</artifactId>
122 </dependency>
123 <dependency>
124 <groupId>org.springframework.boot</groupId>
125 <artifactId>spring-boot-starter-webflux</artifactId>
126 </dependency>
127 <dependency>
128 <groupId>org.springframework.boot</groupId>
129 <artifactId>spring-boot-starter-test</artifactId>
130 <scope>test</scope>
131 </dependency>
132 <dependency>
133 <groupId>io.springfox</groupId>
134 <artifactId>springfox-swagger2</artifactId>
135 </dependency>
136 <dependency>
137 <groupId>io.springfox</groupId>
138 <artifactId>springfox-swagger-ui</artifactId>
139 </dependency>
140 <dependency>
141 <groupId>io.projectreactor</groupId>
142 <artifactId>reactor-core</artifactId>
143 </dependency>
144 <dependency>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200145 <groupId>org.immutables</groupId>
146 <artifactId>value</artifactId>
147 </dependency>
148 <dependency>
149 <groupId>org.immutables</groupId>
150 <artifactId>gson</artifactId>
151 </dependency>
152 <dependency>
153 <groupId>org.junit.jupiter</groupId>
154 <artifactId>junit-jupiter-engine</artifactId>
155 <scope>test</scope>
156 </dependency>
157 <dependency>
158 <groupId>org.mockito</groupId>
159 <artifactId>mockito-core</artifactId>
160 <scope>test</scope>
161 </dependency>
162 <dependency>
163 <groupId>io.projectreactor</groupId>
164 <artifactId>reactor-test</artifactId>
165 <scope>test</scope>
166 </dependency>
167 <dependency>
168 <groupId>org.projectlombok</groupId>
169 <artifactId>lombok</artifactId>
170 </dependency>
171 <dependency>
Stavros Kanarakis3601ddf2019-04-04 12:05:02 +0300172 <groupId>com.fasterxml.jackson.datatype</groupId>
173 <artifactId>jackson-datatype-jsr310</artifactId>
174 <scope>test</scope>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200175 </dependency>
176 <dependency>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200177 <groupId>javax.xml.bind</groupId>
178 <artifactId>jaxb-api</artifactId>
179 </dependency>
180 <dependency>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200181 <groupId>com.github.tomakehurst</groupId>
182 <artifactId>wiremock-jre8</artifactId>
183 <scope>test</scope>
Stavros Kanarakis3601ddf2019-04-04 12:05:02 +0300184 <exclusions>
185 <exclusion>
186 <groupId>com.fasterxml.jackson.core</groupId>
187 <artifactId>jackson-core</artifactId>
188 </exclusion>
189 <exclusion>
190 <groupId>com.fasterxml.jackson.core</groupId>
191 <artifactId>jackson-annotations</artifactId>
192 </exclusion>
193 <exclusion>
194 <groupId>com.fasterxml.jackson.core</groupId>
195 <artifactId>jackson-databind</artifactId>
196 </exclusion>
197 </exclusions>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200198 </dependency>
199 </dependencies>
200
201 <build>
202 <pluginManagement>
203 <plugins>
204 <plugin>
205 <groupId>org.apache.maven.plugins</groupId>
206 <artifactId>maven-compiler-plugin</artifactId>
207 <version>3.7.0</version>
208 <configuration>
209 <source>${java.version}</source>
210 <target>${java.version}</target>
211 <encoding>${project.build.sourceEncoding}</encoding>
212 <showWarnings>true</showWarnings>
213 <showDeprecation>true</showDeprecation>
214 </configuration>
215 </plugin>
216 <plugin>
217 <groupId>org.apache.maven.plugins</groupId>
218 <artifactId>maven-resources-plugin</artifactId>
219 <version>3.1.0</version>
220 <configuration>
221 <encoding>${project.build.sourceEncoding}</encoding>
222 </configuration>
223 </plugin>
224 <plugin>
225 <groupId>org.apache.maven.plugins</groupId>
226 <artifactId>maven-enforcer-plugin</artifactId>
227 <configuration>
228 <skip>true</skip>
229 </configuration>
230 </plugin>
231 <plugin>
232 <groupId>org.apache.maven.plugins</groupId>
233 <artifactId>maven-deploy-plugin</artifactId>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200234 </plugin>
235 <plugin>
236 <groupId>org.springframework.boot</groupId>
237 <artifactId>spring-boot-maven-plugin</artifactId>
238 <version>${spring-boot.version}</version>
239 <executions>
240 <execution>
241 <goals>
242 <goal>repackage</goal>
243 </goals>
244 </execution>
245 </executions>
246 </plugin>
247 <plugin>
248 <groupId>pl.project13.maven</groupId>
249 <artifactId>git-commit-id-plugin</artifactId>
250 <version>2.2.6</version>
251 </plugin>
252 <plugin>
253 <groupId>org.apache.maven.plugins</groupId>
254 <artifactId>maven-jar-plugin</artifactId>
255 <version>3.1.1</version>
256 </plugin>
257 <plugin>
258 <groupId>com.spotify</groupId>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300259 <artifactId>dockerfile-maven-plugin</artifactId>
260 <version>1.4.10</version>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200261 </plugin>
262 <plugin>
263 <groupId>org.apache.maven.plugins</groupId>
264 <artifactId>maven-surefire-plugin</artifactId>
265 <version>2.19.1</version>
266 <dependencies>
267 <dependency>
268 <groupId>org.junit.platform</groupId>
269 <artifactId>junit-platform-surefire-provider</artifactId>
270 <version>${junit-platform.version}</version>
271 </dependency>
272 </dependencies>
273 </plugin>
274 </plugins>
275 </pluginManagement>
276 <plugins>
277 <plugin>
278 <groupId>pl.project13.maven</groupId>
279 <artifactId>git-commit-id-plugin</artifactId>
280 <configuration>
281 <dateFormat>${maven.build.timestamp.format}</dateFormat>
282 <generateGitPropertiesFile>true</generateGitPropertiesFile>
283 <format>json</format>
284 <generateGitPropertiesFilename>${project.build.outputDirectory}/git_info.json</generateGitPropertiesFilename>
285 </configuration>
286 <executions>
287 <execution>
288 <id>get-git-info</id>
289 <goals>
290 <goal>revision</goal>
291 </goals>
292 </execution>
293 </executions>
294 </plugin>
295 <plugin>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-jar-plugin</artifactId>
298 <configuration>
299 <archive>
300 <manifest>
301 <addClasspath>true</addClasspath>
302 <classpathPrefix>./${dependency.dir.name}/</classpathPrefix>
303 <useUniqueVersions>false</useUniqueVersions>
304 <mainClass>${bbs-event-processor.main.class}</mainClass>
305 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
306 </manifest>
307 <manifestEntries>
308 <Build-Time>${maven.build.timestamp}</Build-Time>
309 </manifestEntries>
310 </archive>
311 </configuration>
312 </plugin>
313 <plugin>
314 <groupId>org.apache.maven.plugins</groupId>
315 <artifactId>maven-dependency-plugin</artifactId>
316 <configuration>
317 <outputDirectory>${dependency.dir.location}</outputDirectory>
318 <includeScope>runtime</includeScope>
319 <silent>true</silent>
320 </configuration>
321 <executions>
322 <execution>
323 <id>copy-external-dependencies</id>
324 <phase>package</phase>
325 <goals>
326 <goal>copy-dependencies</goal>
327 </goals>
328 </execution>
329 </executions>
330 </plugin>
331 <plugin>
332 <groupId>com.spotify</groupId>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300333 <artifactId>dockerfile-maven-plugin</artifactId>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200334 <configuration>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300335 <contextDirectory>${project.basedir}</contextDirectory>
336 <repository>${docker.image.name}</repository>
337 <tag>latest</tag>
338 <buildArgs>
339 <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME>
340 <DEPENDENCIES_DIR>${dependency.dir.name}</DEPENDENCIES_DIR>
341 <DOCKER_ARTIFACT_DIR>/opt</DOCKER_ARTIFACT_DIR>
342 <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR>
343 </buildArgs>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200344 </configuration>
345 <executions>
346 <execution>
347 <id>build-bbs-event-processor-image</id>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200348 <phase>package</phase>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200349 <goals>
350 <goal>build</goal>
351 </goals>
352 </execution>
353 <execution>
Stavros Kanarakisbc054e72019-03-29 10:44:59 +0200354 <id>tag-and-push-image-latest</id>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200355 <phase>package</phase>
Stavros Kanarakisbc054e72019-03-29 10:44:59 +0200356 <goals>
357 <goal>tag</goal>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300358 <goal>push</goal>
Stavros Kanarakisbc054e72019-03-29 10:44:59 +0200359 </goals>
360 <configuration>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300361 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
362 <tag>latest</tag>
Gerard Hickey82a1eb12019-07-11 15:54:54 +0100363 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
Stavros Kanarakisbc054e72019-03-29 10:44:59 +0200364 </configuration>
365 </execution>
366 <execution>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200367 <id>tag-and-push-image-with-version</id>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200368 <phase>package</phase>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200369 <goals>
370 <goal>tag</goal>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300371 <goal>push</goal>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200372 </goals>
373 <configuration>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300374 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
375 <tag>${project.version}</tag>
Gerard Hickey82a1eb12019-07-11 15:54:54 +0100376 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200377 </configuration>
378 </execution>
379 <execution>
380 <id>tag-and-push-image-with-version-and-date</id>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200381 <phase>package</phase>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200382 <goals>
383 <goal>tag</goal>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300384 <goal>push</goal>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200385 </goals>
386 <configuration>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300387 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
388 <tag>${project.version}-${maven.build.timestamp}Z</tag>
Gerard Hickey82a1eb12019-07-11 15:54:54 +0100389 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200390 </configuration>
391 </execution>
392 </executions>
393 </plugin>
394 </plugins>
395 </build>
396</project>