blob: a2cc155b5920b32d60802352eb51ec47bc523397 [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>
44 </properties>
45
46 <dependencyManagement>
47 <dependencies>
48 <dependency>
49 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
50 <artifactId>cbs-client</artifactId>
Stavros Kanarakis47201b62019-04-10 13:04:11 +030051 <version>${dcae.sdk.version}</version>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020052 </dependency>
53 <dependency>
54 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
55 <artifactId>dmaap-client</artifactId>
Stavros Kanarakis47201b62019-04-10 13:04:11 +030056 <version>${dcae.sdk.version}</version>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020057 </dependency>
58 <dependency>
59 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
Stavros Kanarakis22025d42020-02-28 21:53:04 +020060 <artifactId>http-client</artifactId>
Stavros Kanarakis47201b62019-04-10 13:04:11 +030061 <version>${dcae.sdk.version}</version>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020062 </dependency>
63 <dependency>
64 <groupId>io.springfox</groupId>
65 <artifactId>springfox-swagger2</artifactId>
66 <version>${springfox-swagger.version}</version>
67 </dependency>
68 <dependency>
69 <groupId>io.springfox</groupId>
70 <artifactId>springfox-swagger-ui</artifactId>
71 <version>${springfox-swagger.version}</version>
72 </dependency>
73 <dependency>
74 <groupId>org.immutables</groupId>
75 <artifactId>value</artifactId>
76 <version>${immutables.version}</version>
77 </dependency>
78 <dependency>
79 <groupId>org.immutables</groupId>
80 <artifactId>gson</artifactId>
81 <version>${immutables.version}</version>
82 </dependency>
83 <dependency>
Stavros Kanarakisd8603572019-03-21 10:50:44 +020084 <groupId>org.springframework.boot</groupId>
85 <artifactId>spring-boot-dependencies</artifactId>
86 <version>${spring-boot.version}</version>
87 <type>pom</type>
88 <scope>import</scope>
89 </dependency>
90 <dependency>
91 <groupId>com.github.tomakehurst</groupId>
92 <artifactId>wiremock-jre8</artifactId>
93 <version>${wiremock.version}</version>
94 </dependency>
Stavros Kanarakis22025d42020-02-28 21:53:04 +020095 <dependency>
96 <groupId>javax.xml.bind</groupId>
97 <artifactId>jaxb-api</artifactId>
98 <version>${jaxb.api.version}</version>
99 </dependency>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200100 </dependencies>
101 </dependencyManagement>
102
103 <dependencies>
104 <dependency>
105 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
106 <artifactId>cbs-client</artifactId>
107 </dependency>
108 <dependency>
109 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200110 <artifactId>dmaap-client</artifactId>
111 </dependency>
112 <dependency>
113 <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200114 <artifactId>http-client</artifactId>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200115 </dependency>
116 <dependency>
117 <groupId>org.springframework.boot</groupId>
118 <artifactId>spring-boot-starter-web</artifactId>
119 </dependency>
120 <dependency>
121 <groupId>org.springframework.boot</groupId>
122 <artifactId>spring-boot-starter-webflux</artifactId>
123 </dependency>
124 <dependency>
125 <groupId>org.springframework.boot</groupId>
126 <artifactId>spring-boot-starter-test</artifactId>
127 <scope>test</scope>
128 </dependency>
129 <dependency>
130 <groupId>io.springfox</groupId>
131 <artifactId>springfox-swagger2</artifactId>
132 </dependency>
133 <dependency>
134 <groupId>io.springfox</groupId>
135 <artifactId>springfox-swagger-ui</artifactId>
136 </dependency>
137 <dependency>
138 <groupId>io.projectreactor</groupId>
139 <artifactId>reactor-core</artifactId>
140 </dependency>
141 <dependency>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200142 <groupId>org.immutables</groupId>
143 <artifactId>value</artifactId>
144 </dependency>
145 <dependency>
146 <groupId>org.immutables</groupId>
147 <artifactId>gson</artifactId>
148 </dependency>
149 <dependency>
150 <groupId>org.junit.jupiter</groupId>
151 <artifactId>junit-jupiter-engine</artifactId>
152 <scope>test</scope>
153 </dependency>
154 <dependency>
155 <groupId>org.mockito</groupId>
156 <artifactId>mockito-core</artifactId>
157 <scope>test</scope>
158 </dependency>
159 <dependency>
160 <groupId>io.projectreactor</groupId>
161 <artifactId>reactor-test</artifactId>
162 <scope>test</scope>
163 </dependency>
164 <dependency>
165 <groupId>org.projectlombok</groupId>
166 <artifactId>lombok</artifactId>
167 </dependency>
168 <dependency>
Stavros Kanarakis3601ddf2019-04-04 12:05:02 +0300169 <groupId>com.fasterxml.jackson.datatype</groupId>
170 <artifactId>jackson-datatype-jsr310</artifactId>
171 <scope>test</scope>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200172 </dependency>
173 <dependency>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200174 <groupId>javax.xml.bind</groupId>
175 <artifactId>jaxb-api</artifactId>
176 </dependency>
177 <dependency>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200178 <groupId>com.github.tomakehurst</groupId>
179 <artifactId>wiremock-jre8</artifactId>
180 <scope>test</scope>
Stavros Kanarakis3601ddf2019-04-04 12:05:02 +0300181 <exclusions>
182 <exclusion>
183 <groupId>com.fasterxml.jackson.core</groupId>
184 <artifactId>jackson-core</artifactId>
185 </exclusion>
186 <exclusion>
187 <groupId>com.fasterxml.jackson.core</groupId>
188 <artifactId>jackson-annotations</artifactId>
189 </exclusion>
190 <exclusion>
191 <groupId>com.fasterxml.jackson.core</groupId>
192 <artifactId>jackson-databind</artifactId>
193 </exclusion>
194 </exclusions>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200195 </dependency>
196 </dependencies>
197
198 <build>
199 <pluginManagement>
200 <plugins>
201 <plugin>
202 <groupId>org.apache.maven.plugins</groupId>
203 <artifactId>maven-compiler-plugin</artifactId>
204 <version>3.7.0</version>
205 <configuration>
206 <source>${java.version}</source>
207 <target>${java.version}</target>
208 <encoding>${project.build.sourceEncoding}</encoding>
209 <showWarnings>true</showWarnings>
210 <showDeprecation>true</showDeprecation>
211 </configuration>
212 </plugin>
213 <plugin>
214 <groupId>org.apache.maven.plugins</groupId>
215 <artifactId>maven-resources-plugin</artifactId>
216 <version>3.1.0</version>
217 <configuration>
218 <encoding>${project.build.sourceEncoding}</encoding>
219 </configuration>
220 </plugin>
221 <plugin>
222 <groupId>org.apache.maven.plugins</groupId>
223 <artifactId>maven-enforcer-plugin</artifactId>
224 <configuration>
225 <skip>true</skip>
226 </configuration>
227 </plugin>
228 <plugin>
229 <groupId>org.apache.maven.plugins</groupId>
230 <artifactId>maven-deploy-plugin</artifactId>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200231 </plugin>
232 <plugin>
233 <groupId>org.springframework.boot</groupId>
234 <artifactId>spring-boot-maven-plugin</artifactId>
235 <version>${spring-boot.version}</version>
236 <executions>
237 <execution>
238 <goals>
239 <goal>repackage</goal>
240 </goals>
241 </execution>
242 </executions>
243 </plugin>
244 <plugin>
245 <groupId>pl.project13.maven</groupId>
246 <artifactId>git-commit-id-plugin</artifactId>
247 <version>2.2.6</version>
248 </plugin>
249 <plugin>
250 <groupId>org.apache.maven.plugins</groupId>
251 <artifactId>maven-jar-plugin</artifactId>
252 <version>3.1.1</version>
253 </plugin>
254 <plugin>
255 <groupId>com.spotify</groupId>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300256 <artifactId>dockerfile-maven-plugin</artifactId>
257 <version>1.4.10</version>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200258 </plugin>
259 <plugin>
260 <groupId>org.apache.maven.plugins</groupId>
261 <artifactId>maven-surefire-plugin</artifactId>
262 <version>2.19.1</version>
263 <dependencies>
264 <dependency>
265 <groupId>org.junit.platform</groupId>
266 <artifactId>junit-platform-surefire-provider</artifactId>
267 <version>${junit-platform.version}</version>
268 </dependency>
269 </dependencies>
270 </plugin>
271 </plugins>
272 </pluginManagement>
273 <plugins>
274 <plugin>
275 <groupId>pl.project13.maven</groupId>
276 <artifactId>git-commit-id-plugin</artifactId>
277 <configuration>
278 <dateFormat>${maven.build.timestamp.format}</dateFormat>
279 <generateGitPropertiesFile>true</generateGitPropertiesFile>
280 <format>json</format>
281 <generateGitPropertiesFilename>${project.build.outputDirectory}/git_info.json</generateGitPropertiesFilename>
282 </configuration>
283 <executions>
284 <execution>
285 <id>get-git-info</id>
286 <goals>
287 <goal>revision</goal>
288 </goals>
289 </execution>
290 </executions>
291 </plugin>
292 <plugin>
293 <groupId>org.apache.maven.plugins</groupId>
294 <artifactId>maven-jar-plugin</artifactId>
295 <configuration>
296 <archive>
297 <manifest>
298 <addClasspath>true</addClasspath>
299 <classpathPrefix>./${dependency.dir.name}/</classpathPrefix>
300 <useUniqueVersions>false</useUniqueVersions>
301 <mainClass>${bbs-event-processor.main.class}</mainClass>
302 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
303 </manifest>
304 <manifestEntries>
305 <Build-Time>${maven.build.timestamp}</Build-Time>
306 </manifestEntries>
307 </archive>
308 </configuration>
309 </plugin>
310 <plugin>
311 <groupId>org.apache.maven.plugins</groupId>
312 <artifactId>maven-dependency-plugin</artifactId>
313 <configuration>
314 <outputDirectory>${dependency.dir.location}</outputDirectory>
315 <includeScope>runtime</includeScope>
316 <silent>true</silent>
317 </configuration>
318 <executions>
319 <execution>
320 <id>copy-external-dependencies</id>
321 <phase>package</phase>
322 <goals>
323 <goal>copy-dependencies</goal>
324 </goals>
325 </execution>
326 </executions>
327 </plugin>
328 <plugin>
329 <groupId>com.spotify</groupId>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300330 <artifactId>dockerfile-maven-plugin</artifactId>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200331 <configuration>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300332 <contextDirectory>${project.basedir}</contextDirectory>
333 <repository>${docker.image.name}</repository>
334 <tag>latest</tag>
335 <buildArgs>
336 <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME>
337 <DEPENDENCIES_DIR>${dependency.dir.name}</DEPENDENCIES_DIR>
338 <DOCKER_ARTIFACT_DIR>/opt</DOCKER_ARTIFACT_DIR>
339 <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR>
340 </buildArgs>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200341 </configuration>
342 <executions>
343 <execution>
344 <id>build-bbs-event-processor-image</id>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200345 <phase>package</phase>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200346 <goals>
347 <goal>build</goal>
348 </goals>
349 </execution>
350 <execution>
Stavros Kanarakisbc054e72019-03-29 10:44:59 +0200351 <id>tag-and-push-image-latest</id>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200352 <phase>package</phase>
Stavros Kanarakisbc054e72019-03-29 10:44:59 +0200353 <goals>
354 <goal>tag</goal>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300355 <goal>push</goal>
Stavros Kanarakisbc054e72019-03-29 10:44:59 +0200356 </goals>
357 <configuration>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300358 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
359 <tag>latest</tag>
Gerard Hickey82a1eb12019-07-11 15:54:54 +0100360 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
Stavros Kanarakisbc054e72019-03-29 10:44:59 +0200361 </configuration>
362 </execution>
363 <execution>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200364 <id>tag-and-push-image-with-version</id>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200365 <phase>package</phase>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200366 <goals>
367 <goal>tag</goal>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300368 <goal>push</goal>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200369 </goals>
370 <configuration>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300371 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
372 <tag>${project.version}</tag>
Gerard Hickey82a1eb12019-07-11 15:54:54 +0100373 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200374 </configuration>
375 </execution>
376 <execution>
377 <id>tag-and-push-image-with-version-and-date</id>
Stavros Kanarakis22025d42020-02-28 21:53:04 +0200378 <phase>package</phase>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200379 <goals>
380 <goal>tag</goal>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300381 <goal>push</goal>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200382 </goals>
383 <configuration>
Stavros Kanarakisf6668af2019-04-22 18:41:18 +0300384 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
385 <tag>${project.version}-${maven.build.timestamp}Z</tag>
Gerard Hickey82a1eb12019-07-11 15:54:54 +0100386 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
Stavros Kanarakisd8603572019-03-21 10:50:44 +0200387 </configuration>
388 </execution>
389 </executions>
390 </plugin>
391 </plugins>
392 </build>
393</project>