blob: 36e2818604544a27dfbd75a8430b886b3fa51ced [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 Kanarakis7d060a22020-03-06 23:22:50 +0200234 <version>2.8</version>
235 <configuration>
236 <skip>true</skip>
237 </configuration>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200238 </plugin>
239 <plugin>
240 <groupId>org.springframework.boot</groupId>
241 <artifactId>spring-boot-maven-plugin</artifactId>
242 <version>${spring-boot.version}</version>
243 <executions>
244 <execution>
245 <goals>
246 <goal>repackage</goal>
247 </goals>
248 </execution>
249 </executions>
250 </plugin>
251 <plugin>
252 <groupId>pl.project13.maven</groupId>
253 <artifactId>git-commit-id-plugin</artifactId>
254 <version>2.2.6</version>
255 </plugin>
256 <plugin>
257 <groupId>org.apache.maven.plugins</groupId>
258 <artifactId>maven-jar-plugin</artifactId>
259 <version>3.1.1</version>
260 </plugin>
261 <plugin>
262 <groupId>com.spotify</groupId>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300263 <artifactId>dockerfile-maven-plugin</artifactId>
264 <version>1.4.10</version>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200265 </plugin>
266 <plugin>
267 <groupId>org.apache.maven.plugins</groupId>
268 <artifactId>maven-surefire-plugin</artifactId>
269 <version>2.19.1</version>
270 <dependencies>
271 <dependency>
272 <groupId>org.junit.platform</groupId>
273 <artifactId>junit-platform-surefire-provider</artifactId>
274 <version>${junit-platform.version}</version>
275 </dependency>
276 </dependencies>
277 </plugin>
278 </plugins>
279 </pluginManagement>
280 <plugins>
281 <plugin>
282 <groupId>pl.project13.maven</groupId>
283 <artifactId>git-commit-id-plugin</artifactId>
284 <configuration>
285 <dateFormat>${maven.build.timestamp.format}</dateFormat>
286 <generateGitPropertiesFile>true</generateGitPropertiesFile>
287 <format>json</format>
288 <generateGitPropertiesFilename>${project.build.outputDirectory}/git_info.json</generateGitPropertiesFilename>
289 </configuration>
290 <executions>
291 <execution>
292 <id>get-git-info</id>
293 <goals>
294 <goal>revision</goal>
295 </goals>
296 </execution>
297 </executions>
298 </plugin>
299 <plugin>
300 <groupId>org.apache.maven.plugins</groupId>
301 <artifactId>maven-jar-plugin</artifactId>
302 <configuration>
303 <archive>
304 <manifest>
305 <addClasspath>true</addClasspath>
306 <classpathPrefix>./${dependency.dir.name}/</classpathPrefix>
307 <useUniqueVersions>false</useUniqueVersions>
308 <mainClass>${bbs-event-processor.main.class}</mainClass>
309 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
310 </manifest>
311 <manifestEntries>
312 <Build-Time>${maven.build.timestamp}</Build-Time>
313 </manifestEntries>
314 </archive>
315 </configuration>
316 </plugin>
317 <plugin>
318 <groupId>org.apache.maven.plugins</groupId>
319 <artifactId>maven-dependency-plugin</artifactId>
320 <configuration>
321 <outputDirectory>${dependency.dir.location}</outputDirectory>
322 <includeScope>runtime</includeScope>
323 <silent>true</silent>
324 </configuration>
325 <executions>
326 <execution>
327 <id>copy-external-dependencies</id>
328 <phase>package</phase>
329 <goals>
330 <goal>copy-dependencies</goal>
331 </goals>
332 </execution>
333 </executions>
334 </plugin>
335 <plugin>
336 <groupId>com.spotify</groupId>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300337 <artifactId>dockerfile-maven-plugin</artifactId>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200338 <configuration>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300339 <contextDirectory>${project.basedir}</contextDirectory>
340 <repository>${docker.image.name}</repository>
341 <tag>latest</tag>
342 <buildArgs>
343 <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME>
344 <DEPENDENCIES_DIR>${dependency.dir.name}</DEPENDENCIES_DIR>
345 <DOCKER_ARTIFACT_DIR>/opt</DOCKER_ARTIFACT_DIR>
346 <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR>
347 </buildArgs>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200348 </configuration>
349 <executions>
350 <execution>
351 <id>build-bbs-event-processor-image</id>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200352 <phase>package</phase>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200353 <goals>
354 <goal>build</goal>
355 </goals>
356 </execution>
357 <execution>
Stavros Kanarakisbc054e72019-03-29 10:44:59 +0200358 <id>tag-and-push-image-latest</id>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200359 <phase>package</phase>
Stavros Kanarakisbc054e72019-03-29 10:44:59 +0200360 <goals>
361 <goal>tag</goal>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300362 <goal>push</goal>
Stavros Kanarakisbc054e72019-03-29 10:44:59 +0200363 </goals>
364 <configuration>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300365 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
366 <tag>latest</tag>
Gerard Hickey82a1eb12019-07-11 15:54:54 +0100367 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
Stavros Kanarakisbc054e72019-03-29 10:44:59 +0200368 </configuration>
369 </execution>
370 <execution>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200371 <id>tag-and-push-image-with-version</id>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200372 <phase>package</phase>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200373 <goals>
374 <goal>tag</goal>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300375 <goal>push</goal>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200376 </goals>
377 <configuration>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300378 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
379 <tag>${project.version}</tag>
Gerard Hickey82a1eb12019-07-11 15:54:54 +0100380 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200381 </configuration>
382 </execution>
383 <execution>
384 <id>tag-and-push-image-with-version-and-date</id>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200385 <phase>package</phase>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200386 <goals>
387 <goal>tag</goal>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300388 <goal>push</goal>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200389 </goals>
390 <configuration>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300391 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
392 <tag>${project.version}-${maven.build.timestamp}Z</tag>
Gerard Hickey82a1eb12019-07-11 15:54:54 +0100393 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200394 </configuration>
395 </execution>
396 </executions>
397 </plugin>
398 </plugins>
399 </build>
400</project>