blob: d0cc6b8da75261d0ead98b9ae7d74f0ee06586f1 [file] [log] [blame]
ezcoxemda23b252018-07-31 15:54:56 +01001<!--
2 ============LICENSE_START==================================================
3 * org.onap.dmaap
4 * ===========================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
Piotr Darosz5a410372018-10-03 14:31:25 +02006 * Modifications Copyright (C) 2018 Nokia. All rights reserved.
ezcoxemda23b252018-07-31 15:54:56 +01007 * ===========================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
eronkeo85129f82018-08-14 17:58:28 +010011 *
ezcoxemda23b252018-07-31 15:54:56 +010012 * http://www.apache.org/licenses/LICENSE-2.0
eronkeo85129f82018-08-14 17:58:28 +010013 *
ezcoxemda23b252018-07-31 15:54:56 +010014 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END====================================================
20 *
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 *
23-->
24<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
25 <modelVersion>4.0.0</modelVersion>
26 <groupId>org.onap.dmaap.datarouter</groupId>
27 <artifactId>parent</artifactId>
28 <name>dmaap-datarouter</name>
efiacor1c11ab82019-04-09 13:52:17 +000029 <version>${revision}</version>
ezcoxemda23b252018-07-31 15:54:56 +010030 <packaging>pom</packaging>
efiacor1c11ab82019-04-09 13:52:17 +000031 <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
ezcoxemda23b252018-07-31 15:54:56 +010032 <parent>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
efiacor3690ca82023-04-05 09:21:40 +010035 <version>3.3.3</version>
ezcoxemda23b252018-07-31 15:54:56 +010036 </parent>
37 <properties>
efiacor404cf6d2019-05-30 10:50:57 +000038 <!--revision must also be set in the version.properties file at project root-->
efiacora496ae22023-04-24 14:19:14 +010039 <revision>2.1.14-SNAPSHOT</revision>
ezcoxemda23b252018-07-31 15:54:56 +010040 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
efiacor8552e042020-04-04 17:51:53 +010041 <maven.compiler.source>11</maven.compiler.source>
42 <maven.compiler.target>11</maven.compiler.target>
efiacor1c11ab82019-04-09 13:52:17 +000043
44 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
45 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
46 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
47 <sitePath>/content/sites/site/org/onap/dmaap/datarouter/${project.artifactId}/${project.version}</sitePath>
48
ezcoxemda23b252018-07-31 15:54:56 +010049 <sonar.language>java</sonar.language>
50 <sonar.skip>false</sonar.skip>
ezcoxemda23b252018-07-31 15:54:56 +010051 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
efiacorb1ce4e02020-03-04 20:43:51 +000052 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
ezcoxemda23b252018-07-31 15:54:56 +010053 <sonar.projectVersion>${project.version}</sonar.projectVersion>
efiacor1c11ab82019-04-09 13:52:17 +000054
55 <docker.skip.build>false</docker.skip.build>
56 <docker.verbose>true</docker.verbose>
57 <docker.image.root>onap/dmaap/</docker.image.root>
58 <timestamp>${maven.build.timestamp}</timestamp>
59 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
60
61 <!--dependency version across all modules-->
efiacorbda6aea2022-12-07 10:56:27 +000062 <jetty.version>11.0.12</jetty.version>
edepaul555b7fc2018-09-11 08:07:16 +010063 <javax.mail-api.version>1.5.5</javax.mail-api.version>
efiacor1c11ab82019-04-09 13:52:17 +000064 <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
efiacor4ae23b32021-12-14 10:37:40 +000065 <qos.logback.version>1.2.7</qos.logback.version>
66 <qos.logback.classic.version>1.2.3</qos.logback.classic.version>
ajay_dp0010cdac152021-01-22 19:49:48 +053067 <commons-codec.version>1.15</commons-codec.version>
efiacor1c11ab82019-04-09 13:52:17 +000068 <gmaven-plugin.version>1.5</gmaven-plugin.version>
efiacord20d5f52020-02-27 16:46:20 +000069 <io.fabric8.version>0.33.0</io.fabric8.version>
70 <docker.apiVersion>2.2.54</docker.apiVersion>
efiacor1c11ab82019-04-09 13:52:17 +000071 <commons-lang.version>2.4</commons-lang.version>
efiacore0d6e762020-08-26 15:14:21 +010072 <commons-io.version>2.7</commons-io.version>
efiacor1c11ab82019-04-09 13:52:17 +000073 <httpcore.version>4.4</httpcore.version>
david.mcweeney8d903b82021-06-29 13:22:43 +010074 <httpclient.version>4.5.13</httpclient.version>
efiacor1c11ab82019-04-09 13:52:17 +000075 <junit-runner.version>0.11</junit-runner.version>
76 <junit.version>4.12</junit.version>
efiacor8552e042020-04-04 17:51:53 +010077 <mockito-core.version>3.3.3</mockito-core.version>
78 <byte-buddy-version>1.10.9</byte-buddy-version>
79 <powermock.version>2.0.7</powermock.version>
efiacor1c11ab82019-04-09 13:52:17 +000080 <commons-lang3.version>3.0</commons-lang3.version>
81 <eelf-core.version>1.0.0</eelf-core.version>
efiacorcb2d2a22021-08-17 10:52:23 +010082 <json.version>20210307</json.version>
efiacor1c11ab82019-04-09 13:52:17 +000083 <sl4j-api.version>1.7.25</sl4j-api.version>
84 <hamcrest-lib.version>1.3</hamcrest-lib.version>
85 <annotations.version>12.0</annotations.version>
ezcoxemda23b252018-07-31 15:54:56 +010086 </properties>
87 <modules>
88 <module>datarouter-prov</module>
89 <module>datarouter-node</module>
Fiachra Corcoran19620eb2018-08-27 17:59:42 +010090 <module>datarouter-subscriber</module>
Piotr Darosz4aac89d2018-10-11 11:12:27 +020091 <module>datarouter-docker-compose</module>
ezcoxemda23b252018-07-31 15:54:56 +010092 </modules>
efiacor1c11ab82019-04-09 13:52:17 +000093 <dependencyManagement>
94 <dependencies>
95 <dependency>
efiacor8552e042020-04-04 17:51:53 +010096 <groupId>org.apache.commons</groupId>
97 <artifactId>commons-lang3</artifactId>
98 <version>${commons-lang3.version}</version>
99 </dependency>
100 <dependency>
101 <groupId>com.att.eelf</groupId>
102 <artifactId>eelf-core</artifactId>
103 <version>${eelf-core.version}</version>
104 </dependency>
105 <dependency>
106 <groupId>org.json</groupId>
107 <artifactId>json</artifactId>
108 <version>${json.version}</version>
efiacor1c11ab82019-04-09 13:52:17 +0000109 </dependency>
110 <dependency>
111 <groupId>org.slf4j</groupId>
112 <artifactId>slf4j-api</artifactId>
113 <version>${sl4j-api.version}</version>
114 </dependency>
115 <dependency>
116 <groupId>commons-codec</groupId>
117 <artifactId>commons-codec</artifactId>
118 <version>${commons-codec.version}</version>
119 </dependency>
120 <dependency>
121 <groupId>ch.qos.logback</groupId>
122 <artifactId>logback-classic</artifactId>
efiacor4ae23b32021-12-14 10:37:40 +0000123 <version>${qos.logback.classic.version}</version>
efiacor1c11ab82019-04-09 13:52:17 +0000124 <scope>compile</scope>
125 </dependency>
126 <dependency>
127 <groupId>ch.qos.logback</groupId>
128 <artifactId>logback-core</artifactId>
129 <version>${qos.logback.version}</version>
130 <scope>compile</scope>
131 </dependency>
132 <dependency>
133 <groupId>com.intellij</groupId>
134 <artifactId>annotations</artifactId>
135 <version>${annotations.version}</version>
136 </dependency>
137 <dependency>
138 <groupId>javax.servlet</groupId>
139 <artifactId>javax.servlet-api</artifactId>
140 <version>${javax.servlet-api.version}</version>
141 <scope>compile</scope>
142 </dependency>
143 <dependency>
144 <groupId>javax.mail</groupId>
145 <artifactId>javax.mail-api</artifactId>
146 <version>${javax.mail-api.version}</version>
147 </dependency>
148 <dependency>
149 <groupId>org.eclipse.jetty</groupId>
150 <artifactId>jetty-server</artifactId>
151 <version>${jetty.version}</version>
152 </dependency>
153 <dependency>
154 <groupId>org.eclipse.jetty</groupId>
155 <artifactId>jetty-continuation</artifactId>
efiacorbda6aea2022-12-07 10:56:27 +0000156 <version>9.4.49.v20220914</version>
efiacor1c11ab82019-04-09 13:52:17 +0000157 </dependency>
158 <dependency>
159 <groupId>org.eclipse.jetty</groupId>
160 <artifactId>jetty-util</artifactId>
161 <version>${jetty.version}</version>
162 </dependency>
163 <dependency>
164 <groupId>org.eclipse.jetty</groupId>
165 <artifactId>jetty-servlet</artifactId>
166 <version>${jetty.version}</version>
167 </dependency>
168 <dependency>
169 <groupId>org.eclipse.jetty</groupId>
170 <artifactId>jetty-http</artifactId>
efiacorbda6aea2022-12-07 10:56:27 +0000171 <version>${jetty.version}</version>
efiacor1c11ab82019-04-09 13:52:17 +0000172 </dependency>
173 <dependency>
174 <groupId>org.eclipse.jetty</groupId>
175 <artifactId>jetty-io</artifactId>
176 <version>${jetty.version}</version>
177 </dependency>
178 <dependency>
179 <groupId>org.eclipse.jetty.cdi</groupId>
180 <artifactId>cdi-websocket</artifactId>
181 <version>${jetty.version}</version>
182 </dependency>
183 <dependency>
efiacor1c11ab82019-04-09 13:52:17 +0000184 <groupId>commons-io</groupId>
185 <artifactId>commons-io</artifactId>
186 <version>${commons-io.version}</version>
187 <scope>compile</scope>
188 </dependency>
189 <dependency>
190 <groupId>org.apache.httpcomponents</groupId>
191 <artifactId>httpcore</artifactId>
192 <version>${httpcore.version}</version>
193 </dependency>
194 <dependency>
195 <groupId>org.apache.httpcomponents</groupId>
196 <artifactId>httpclient</artifactId>
197 <version>${httpclient.version}</version>
198 </dependency>
199 <dependency>
200 <groupId>org.sonatype.http-testing-harness</groupId>
201 <artifactId>junit-runner</artifactId>
202 <version>${junit-runner.version}</version>
efiacor1ccd9c32019-10-08 16:24:28 +0100203 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000204 <exclusions>
205 <exclusion>
206 <groupId>org.databene</groupId>
207 <artifactId>contiperf</artifactId>
208 </exclusion>
econwar74b69ed2019-04-26 13:32:21 +0000209 <exclusion>
210 <groupId>com.thoughtworks.xstream</groupId>
211 <artifactId>xstream</artifactId>
212 </exclusion>
efiacor1c11ab82019-04-09 13:52:17 +0000213 </exclusions>
214 </dependency>
215 <dependency>
216 <groupId>junit</groupId>
217 <artifactId>junit</artifactId>
218 <version>${junit.version}</version>
219 <scope>test</scope>
220 </dependency>
221 <dependency>
efiacor8552e042020-04-04 17:51:53 +0100222 <groupId>org.hamcrest</groupId>
223 <artifactId>hamcrest-all</artifactId>
224 <version>${hamcrest-lib.version}</version>
225 <scope>test</scope>
226 </dependency>
227 <dependency>
efiacor1c11ab82019-04-09 13:52:17 +0000228 <groupId>org.mockito</groupId>
229 <artifactId>mockito-core</artifactId>
230 <version>${mockito-core.version}</version>
231 <scope>test</scope>
232 </dependency>
233 <dependency>
efiacor8552e042020-04-04 17:51:53 +0100234 <groupId>net.bytebuddy</groupId>
235 <artifactId>byte-buddy</artifactId>
236 <version>${byte-buddy-version}</version>
efiacor1c11ab82019-04-09 13:52:17 +0000237 <scope>test</scope>
238 </dependency>
239 <dependency>
efiacor8552e042020-04-04 17:51:53 +0100240 <groupId>net.bytebuddy</groupId>
241 <artifactId>byte-buddy-agent</artifactId>
242 <version>${byte-buddy-version}</version>
243 <scope>test</scope>
244 </dependency>
245 <dependency>
246 <groupId>org.objenesis</groupId>
247 <artifactId>objenesis</artifactId>
248 <version>3.1</version>
249 <scope>test</scope>
250 </dependency>
251 <dependency>
252 <groupId>org.javassist</groupId>
253 <artifactId>javassist</artifactId>
254 <version>3.27.0-GA</version>
255 <scope>test</scope>
256 </dependency>
257 <dependency>
258 <groupId>org.powermock</groupId>
259 <artifactId>powermock-api-mockito2</artifactId>
260 <version>${powermock.version}</version>
261 </dependency>
262 <dependency>
efiacor1c11ab82019-04-09 13:52:17 +0000263 <groupId>org.powermock</groupId>
264 <artifactId>powermock-module-junit4</artifactId>
265 <version>${powermock.version}</version>
266 <scope>test</scope>
267 </dependency>
268 <dependency>
269 <groupId>org.powermock</groupId>
270 <artifactId>powermock-api-support</artifactId>
271 <version>${powermock.version}</version>
272 <scope>test</scope>
273 </dependency>
274 <dependency>
275 <groupId>org.powermock</groupId>
276 <artifactId>powermock-core</artifactId>
277 <version>${powermock.version}</version>
278 <scope>test</scope>
279 </dependency>
280 <dependency>
efiacor8552e042020-04-04 17:51:53 +0100281 <groupId>org.powermock</groupId>
282 <artifactId>powermock-module-junit4-rule</artifactId>
283 <version>${powermock.version}</version>
284 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000285 </dependency>
286 </dependencies>
287 </dependencyManagement>
ezcoxemda23b252018-07-31 15:54:56 +0100288 <build>
289 <plugins>
290 <plugin>
Fiachra Corcoran48d21522018-10-11 15:45:53 +0100291 <groupId>org.apache.maven.plugins</groupId>
292 <artifactId>maven-surefire-plugin</artifactId>
293 <configuration>
294 <excludes>
295 <exclude>IntegrationSuite.java</exclude>
296 </excludes>
efiacor8552e042020-04-04 17:51:53 +0100297 <argLine>
efiacor5906de22020-04-16 14:59:07 +0100298 ${surefireArgLine} --illegal-access=permit
efiacor8552e042020-04-04 17:51:53 +0100299 </argLine>
300 </configuration>
301 </plugin>
302 <plugin>
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-failsafe-plugin</artifactId>
305 <configuration>
306 <argLine>
307 --illegal-access=permit
308 </argLine>
Fiachra Corcoran48d21522018-10-11 15:45:53 +0100309 </configuration>
310 </plugin>
econwar7704d302019-04-03 10:40:26 +0000311 <plugin>
efiacor1c11ab82019-04-09 13:52:17 +0000312 <groupId>org.codehaus.mojo</groupId>
313 <artifactId>flatten-maven-plugin</artifactId>
314 <version>1.0.1</version>
315 <configuration>
316 <updatePomFile>true</updatePomFile>
317 <outputDirectory>target</outputDirectory>
318 </configuration>
319 <executions>
320 <execution>
321 <id>flatten</id>
322 <phase>process-resources</phase>
323 <goals>
324 <goal>flatten</goal>
325 </goals>
326 </execution>
327 </executions>
328 </plugin>
329 <plugin>
econwar7704d302019-04-03 10:40:26 +0000330 <artifactId>maven-checkstyle-plugin</artifactId>
331 <executions>
332 <execution>
333 <id>onap-java-style</id>
334 <configuration>
335 <consoleOutput>false</consoleOutput>
336 </configuration>
337 </execution>
338 </executions>
339 </plugin>
ezcoxemda23b252018-07-31 15:54:56 +0100340 </plugins>
efiacor1c11ab82019-04-09 13:52:17 +0000341 <pluginManagement>
342 <plugins>
343 <plugin>
344 <groupId>org.apache.maven.plugins</groupId>
345 <artifactId>maven-compiler-plugin</artifactId>
efiacor1c11ab82019-04-09 13:52:17 +0000346 <configuration>
efiacor8552e042020-04-04 17:51:53 +0100347 <source>${maven.compiler.source}</source>
348 <target>${maven.compiler.target}</target>
efiacor1c11ab82019-04-09 13:52:17 +0000349 </configuration>
350 </plugin>
351 <plugin>
352 <groupId>org.apache.maven.plugins</groupId>
353 <artifactId>maven-dependency-plugin</artifactId>
354 <version>2.10</version>
355 <executions>
356 <execution>
357 <id>copy-dependencies</id>
358 <goals>
359 <goal>copy-dependencies</goal>
360 </goals>
361 <configuration>
362 <overWriteReleases>false</overWriteReleases>
363 <overWriteSnapshots>false</overWriteSnapshots>
364 <overWriteIfNewer>true</overWriteIfNewer>
365 </configuration>
366 </execution>
367 </executions>
368 </plugin>
369 <plugin>
370 <groupId>org.apache.maven.plugins</groupId>
371 <artifactId>maven-javadoc-plugin</artifactId>
efiacor4ae23b32021-12-14 10:37:40 +0000372 <version>3.3.1</version>
efiacor1c11ab82019-04-09 13:52:17 +0000373 <configuration>
374 <failOnError>false</failOnError>
375 </configuration>
376 <executions>
377 <execution>
378 <id>attach-javadocs</id>
379 <goals>
380 <goal>jar</goal>
381 </goals>
382 </execution>
383 </executions>
384 </plugin>
385 <plugin>
386 <groupId>org.apache.maven.plugins</groupId>
387 <artifactId>maven-source-plugin</artifactId>
388 <version>2.2.1</version>
389 <executions>
390 <execution>
391 <id>attach-sources</id>
392 <goals>
393 <goal>jar-no-fork</goal>
394 </goals>
395 </execution>
396 </executions>
397 </plugin>
398 <plugin>
399 <groupId>org.codehaus.mojo</groupId>
400 <artifactId>cobertura-maven-plugin</artifactId>
401 <version>2.7</version>
402 <configuration>
403 <formats>
404 <format>html</format>
405 <format>xml</format>
406 </formats>
407 <check/>
408 </configuration>
409 </plugin>
410 <plugin>
411 <groupId>org.codehaus.gmaven</groupId>
412 <artifactId>gmaven-plugin</artifactId>
413 <version>${gmaven-plugin.version}</version>
414 <executions>
415 <execution>
416 <phase>validate</phase>
417 <goals>
418 <goal>execute</goal>
419 </goals>
420 <configuration>
421 <properties>
422 <ver>${project.version}</ver>
423 </properties>
424 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
425 <source>
426 println 'ver: ' + project.properties['ver'];
427 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
428 project.properties['dockertag1']=project.properties['ver'] + "-latest";
429 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
430 } else {
431 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
432 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
433 }
434 println 'docker tag 1: ' + project.properties['dockertag1'];
435 println 'docker tag 2: ' + project.properties['dockertag2'];
436 </source>
437 </configuration>
438 </execution>
439 </executions>
440 </plugin>
441 <plugin>
442 <groupId>io.fabric8</groupId>
443 <artifactId>docker-maven-plugin</artifactId>
444 <version>${io.fabric8.version}</version>
445 <configuration>
446 <skipBuild>${docker.skip.build}</skipBuild>
447 <verbose>${docker.verbose}</verbose>
448 <apiVersion>${docker.apiVersion}</apiVersion>
449 <pullRegistry>${docker.pull.registry}</pullRegistry>
450 <pushRegistry>${docker.push.registry}</pushRegistry>
451 </configuration>
452 </plugin>
453 <plugin>
454 <groupId>org.codehaus.mojo</groupId>
455 <artifactId>properties-maven-plugin</artifactId>
456 <version>1.0.0</version>
457 <executions>
458 <execution>
459 <phase>validate</phase>
460 <goals>
461 <goal>read-project-properties</goal>
462 </goals>
463 <configuration>
464 <files>
465 <file>../version.properties</file>
466 </files>
467 </configuration>
468 </execution>
469 </executions>
470 </plugin>
471 </plugins>
472 </pluginManagement>
ezcoxemda23b252018-07-31 15:54:56 +0100473 </build>
ezcoxemda23b252018-07-31 15:54:56 +0100474 <pluginRepositories>
475 <pluginRepository>
476 <id>onap-plugin-snapshots</id>
477 <url>${onap.nexus.url}${snapshotNexusPath}</url>
478 </pluginRepository>
479 </pluginRepositories>
480</project>