blob: d5c53016fd3b6fc69a3f40f146ea86e797927d6b [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>
efiacor8552e042020-04-04 17:51:53 +010035 <version>3.0.0</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-->
david.mcweeneya4c36162021-03-09 16:36:21 +000039 <revision>2.1.9-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-->
efiacorcb2d2a22021-08-17 10:52:23 +010062 <jetty.version>9.4.41.v20210516</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>
efiacor1ccd9c32019-10-08 16:24:28 +010067 <aaf-cadi-aaf.version>2.1.15</aaf-cadi-aaf.version>
ajay_dp0010cdac152021-01-22 19:49:48 +053068 <commons-codec.version>1.15</commons-codec.version>
efiacor1c11ab82019-04-09 13:52:17 +000069 <gmaven-plugin.version>1.5</gmaven-plugin.version>
efiacord20d5f52020-02-27 16:46:20 +000070 <io.fabric8.version>0.33.0</io.fabric8.version>
71 <docker.apiVersion>2.2.54</docker.apiVersion>
efiacor1c11ab82019-04-09 13:52:17 +000072 <commons-lang.version>2.4</commons-lang.version>
efiacore0d6e762020-08-26 15:14:21 +010073 <commons-io.version>2.7</commons-io.version>
efiacor1c11ab82019-04-09 13:52:17 +000074 <httpcore.version>4.4</httpcore.version>
david.mcweeney8d903b82021-06-29 13:22:43 +010075 <httpclient.version>4.5.13</httpclient.version>
efiacor1c11ab82019-04-09 13:52:17 +000076 <junit-runner.version>0.11</junit-runner.version>
77 <junit.version>4.12</junit.version>
efiacor8552e042020-04-04 17:51:53 +010078 <mockito-core.version>3.3.3</mockito-core.version>
79 <byte-buddy-version>1.10.9</byte-buddy-version>
80 <powermock.version>2.0.7</powermock.version>
efiacor1c11ab82019-04-09 13:52:17 +000081 <commons-lang3.version>3.0</commons-lang3.version>
82 <eelf-core.version>1.0.0</eelf-core.version>
efiacorcb2d2a22021-08-17 10:52:23 +010083 <json.version>20210307</json.version>
efiacor1c11ab82019-04-09 13:52:17 +000084 <sl4j-api.version>1.7.25</sl4j-api.version>
85 <hamcrest-lib.version>1.3</hamcrest-lib.version>
86 <annotations.version>12.0</annotations.version>
ezcoxemda23b252018-07-31 15:54:56 +010087 </properties>
88 <modules>
89 <module>datarouter-prov</module>
90 <module>datarouter-node</module>
Fiachra Corcoran19620eb2018-08-27 17:59:42 +010091 <module>datarouter-subscriber</module>
Piotr Darosz4aac89d2018-10-11 11:12:27 +020092 <module>datarouter-docker-compose</module>
ezcoxemda23b252018-07-31 15:54:56 +010093 </modules>
efiacor1c11ab82019-04-09 13:52:17 +000094 <dependencyManagement>
95 <dependencies>
96 <dependency>
efiacor8552e042020-04-04 17:51:53 +010097 <groupId>org.apache.commons</groupId>
98 <artifactId>commons-lang3</artifactId>
99 <version>${commons-lang3.version}</version>
100 </dependency>
101 <dependency>
102 <groupId>com.att.eelf</groupId>
103 <artifactId>eelf-core</artifactId>
104 <version>${eelf-core.version}</version>
105 </dependency>
106 <dependency>
107 <groupId>org.json</groupId>
108 <artifactId>json</artifactId>
109 <version>${json.version}</version>
efiacor1c11ab82019-04-09 13:52:17 +0000110 </dependency>
111 <dependency>
112 <groupId>org.slf4j</groupId>
113 <artifactId>slf4j-api</artifactId>
114 <version>${sl4j-api.version}</version>
115 </dependency>
116 <dependency>
117 <groupId>commons-codec</groupId>
118 <artifactId>commons-codec</artifactId>
119 <version>${commons-codec.version}</version>
120 </dependency>
121 <dependency>
122 <groupId>ch.qos.logback</groupId>
123 <artifactId>logback-classic</artifactId>
efiacor4ae23b32021-12-14 10:37:40 +0000124 <version>${qos.logback.classic.version}</version>
efiacor1c11ab82019-04-09 13:52:17 +0000125 <scope>compile</scope>
126 </dependency>
127 <dependency>
128 <groupId>ch.qos.logback</groupId>
129 <artifactId>logback-core</artifactId>
130 <version>${qos.logback.version}</version>
131 <scope>compile</scope>
132 </dependency>
133 <dependency>
134 <groupId>com.intellij</groupId>
135 <artifactId>annotations</artifactId>
136 <version>${annotations.version}</version>
137 </dependency>
138 <dependency>
139 <groupId>javax.servlet</groupId>
140 <artifactId>javax.servlet-api</artifactId>
141 <version>${javax.servlet-api.version}</version>
142 <scope>compile</scope>
143 </dependency>
144 <dependency>
145 <groupId>javax.mail</groupId>
146 <artifactId>javax.mail-api</artifactId>
147 <version>${javax.mail-api.version}</version>
148 </dependency>
149 <dependency>
150 <groupId>org.eclipse.jetty</groupId>
151 <artifactId>jetty-server</artifactId>
152 <version>${jetty.version}</version>
153 </dependency>
154 <dependency>
155 <groupId>org.eclipse.jetty</groupId>
156 <artifactId>jetty-continuation</artifactId>
157 <version>${jetty.version}</version>
158 </dependency>
159 <dependency>
160 <groupId>org.eclipse.jetty</groupId>
161 <artifactId>jetty-util</artifactId>
162 <version>${jetty.version}</version>
163 </dependency>
164 <dependency>
165 <groupId>org.eclipse.jetty</groupId>
166 <artifactId>jetty-servlet</artifactId>
167 <version>${jetty.version}</version>
168 </dependency>
169 <dependency>
170 <groupId>org.eclipse.jetty</groupId>
171 <artifactId>jetty-http</artifactId>
efiacorcb2d2a22021-08-17 10:52:23 +0100172 <version>9.4.43.v20210629</version>
efiacor1c11ab82019-04-09 13:52:17 +0000173 </dependency>
174 <dependency>
175 <groupId>org.eclipse.jetty</groupId>
176 <artifactId>jetty-io</artifactId>
177 <version>${jetty.version}</version>
178 </dependency>
179 <dependency>
180 <groupId>org.eclipse.jetty.cdi</groupId>
181 <artifactId>cdi-websocket</artifactId>
182 <version>${jetty.version}</version>
183 </dependency>
184 <dependency>
185 <groupId>org.onap.aaf.authz</groupId>
186 <artifactId>aaf-cadi-core</artifactId>
187 <version>${aaf-cadi-aaf.version}</version>
188 </dependency>
189 <dependency>
190 <groupId>commons-io</groupId>
191 <artifactId>commons-io</artifactId>
192 <version>${commons-io.version}</version>
193 <scope>compile</scope>
194 </dependency>
195 <dependency>
196 <groupId>org.apache.httpcomponents</groupId>
197 <artifactId>httpcore</artifactId>
198 <version>${httpcore.version}</version>
199 </dependency>
200 <dependency>
201 <groupId>org.apache.httpcomponents</groupId>
202 <artifactId>httpclient</artifactId>
203 <version>${httpclient.version}</version>
204 </dependency>
205 <dependency>
206 <groupId>org.sonatype.http-testing-harness</groupId>
207 <artifactId>junit-runner</artifactId>
208 <version>${junit-runner.version}</version>
efiacor1ccd9c32019-10-08 16:24:28 +0100209 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000210 <exclusions>
211 <exclusion>
212 <groupId>org.databene</groupId>
213 <artifactId>contiperf</artifactId>
214 </exclusion>
econwar74b69ed2019-04-26 13:32:21 +0000215 <exclusion>
216 <groupId>com.thoughtworks.xstream</groupId>
217 <artifactId>xstream</artifactId>
218 </exclusion>
efiacor1c11ab82019-04-09 13:52:17 +0000219 </exclusions>
220 </dependency>
221 <dependency>
222 <groupId>junit</groupId>
223 <artifactId>junit</artifactId>
224 <version>${junit.version}</version>
225 <scope>test</scope>
226 </dependency>
227 <dependency>
efiacor8552e042020-04-04 17:51:53 +0100228 <groupId>org.hamcrest</groupId>
229 <artifactId>hamcrest-all</artifactId>
230 <version>${hamcrest-lib.version}</version>
231 <scope>test</scope>
232 </dependency>
233 <dependency>
efiacor1c11ab82019-04-09 13:52:17 +0000234 <groupId>org.mockito</groupId>
235 <artifactId>mockito-core</artifactId>
236 <version>${mockito-core.version}</version>
237 <scope>test</scope>
238 </dependency>
239 <dependency>
efiacor8552e042020-04-04 17:51:53 +0100240 <groupId>net.bytebuddy</groupId>
241 <artifactId>byte-buddy</artifactId>
242 <version>${byte-buddy-version}</version>
efiacor1c11ab82019-04-09 13:52:17 +0000243 <scope>test</scope>
244 </dependency>
245 <dependency>
efiacor8552e042020-04-04 17:51:53 +0100246 <groupId>net.bytebuddy</groupId>
247 <artifactId>byte-buddy-agent</artifactId>
248 <version>${byte-buddy-version}</version>
249 <scope>test</scope>
250 </dependency>
251 <dependency>
252 <groupId>org.objenesis</groupId>
253 <artifactId>objenesis</artifactId>
254 <version>3.1</version>
255 <scope>test</scope>
256 </dependency>
257 <dependency>
258 <groupId>org.javassist</groupId>
259 <artifactId>javassist</artifactId>
260 <version>3.27.0-GA</version>
261 <scope>test</scope>
262 </dependency>
263 <dependency>
264 <groupId>org.powermock</groupId>
265 <artifactId>powermock-api-mockito2</artifactId>
266 <version>${powermock.version}</version>
267 </dependency>
268 <dependency>
efiacor1c11ab82019-04-09 13:52:17 +0000269 <groupId>org.powermock</groupId>
270 <artifactId>powermock-module-junit4</artifactId>
271 <version>${powermock.version}</version>
272 <scope>test</scope>
273 </dependency>
274 <dependency>
275 <groupId>org.powermock</groupId>
276 <artifactId>powermock-api-support</artifactId>
277 <version>${powermock.version}</version>
278 <scope>test</scope>
279 </dependency>
280 <dependency>
281 <groupId>org.powermock</groupId>
282 <artifactId>powermock-core</artifactId>
283 <version>${powermock.version}</version>
284 <scope>test</scope>
285 </dependency>
286 <dependency>
efiacor8552e042020-04-04 17:51:53 +0100287 <groupId>org.powermock</groupId>
288 <artifactId>powermock-module-junit4-rule</artifactId>
289 <version>${powermock.version}</version>
290 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000291 </dependency>
292 </dependencies>
293 </dependencyManagement>
ezcoxemda23b252018-07-31 15:54:56 +0100294 <build>
295 <plugins>
296 <plugin>
Fiachra Corcoran48d21522018-10-11 15:45:53 +0100297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-surefire-plugin</artifactId>
299 <configuration>
300 <excludes>
301 <exclude>IntegrationSuite.java</exclude>
302 </excludes>
efiacor8552e042020-04-04 17:51:53 +0100303 <argLine>
efiacor5906de22020-04-16 14:59:07 +0100304 ${surefireArgLine} --illegal-access=permit
efiacor8552e042020-04-04 17:51:53 +0100305 </argLine>
306 </configuration>
307 </plugin>
308 <plugin>
309 <groupId>org.apache.maven.plugins</groupId>
310 <artifactId>maven-failsafe-plugin</artifactId>
311 <configuration>
312 <argLine>
313 --illegal-access=permit
314 </argLine>
Fiachra Corcoran48d21522018-10-11 15:45:53 +0100315 </configuration>
316 </plugin>
econwar7704d302019-04-03 10:40:26 +0000317 <plugin>
efiacor1c11ab82019-04-09 13:52:17 +0000318 <groupId>org.codehaus.mojo</groupId>
319 <artifactId>flatten-maven-plugin</artifactId>
320 <version>1.0.1</version>
321 <configuration>
322 <updatePomFile>true</updatePomFile>
323 <outputDirectory>target</outputDirectory>
324 </configuration>
325 <executions>
326 <execution>
327 <id>flatten</id>
328 <phase>process-resources</phase>
329 <goals>
330 <goal>flatten</goal>
331 </goals>
332 </execution>
333 </executions>
334 </plugin>
335 <plugin>
econwar7704d302019-04-03 10:40:26 +0000336 <artifactId>maven-checkstyle-plugin</artifactId>
337 <executions>
338 <execution>
339 <id>onap-java-style</id>
340 <configuration>
341 <consoleOutput>false</consoleOutput>
342 </configuration>
343 </execution>
344 </executions>
345 </plugin>
ezcoxemda23b252018-07-31 15:54:56 +0100346 </plugins>
efiacor1c11ab82019-04-09 13:52:17 +0000347 <pluginManagement>
348 <plugins>
349 <plugin>
350 <groupId>org.apache.maven.plugins</groupId>
351 <artifactId>maven-compiler-plugin</artifactId>
efiacor1c11ab82019-04-09 13:52:17 +0000352 <configuration>
efiacor8552e042020-04-04 17:51:53 +0100353 <source>${maven.compiler.source}</source>
354 <target>${maven.compiler.target}</target>
efiacor1c11ab82019-04-09 13:52:17 +0000355 </configuration>
356 </plugin>
357 <plugin>
358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-dependency-plugin</artifactId>
360 <version>2.10</version>
361 <executions>
362 <execution>
363 <id>copy-dependencies</id>
364 <goals>
365 <goal>copy-dependencies</goal>
366 </goals>
367 <configuration>
368 <overWriteReleases>false</overWriteReleases>
369 <overWriteSnapshots>false</overWriteSnapshots>
370 <overWriteIfNewer>true</overWriteIfNewer>
371 </configuration>
372 </execution>
373 </executions>
374 </plugin>
375 <plugin>
376 <groupId>org.apache.maven.plugins</groupId>
377 <artifactId>maven-javadoc-plugin</artifactId>
efiacor4ae23b32021-12-14 10:37:40 +0000378 <version>3.3.1</version>
efiacor1c11ab82019-04-09 13:52:17 +0000379 <configuration>
380 <failOnError>false</failOnError>
381 </configuration>
382 <executions>
383 <execution>
384 <id>attach-javadocs</id>
385 <goals>
386 <goal>jar</goal>
387 </goals>
388 </execution>
389 </executions>
390 </plugin>
391 <plugin>
392 <groupId>org.apache.maven.plugins</groupId>
393 <artifactId>maven-source-plugin</artifactId>
394 <version>2.2.1</version>
395 <executions>
396 <execution>
397 <id>attach-sources</id>
398 <goals>
399 <goal>jar-no-fork</goal>
400 </goals>
401 </execution>
402 </executions>
403 </plugin>
404 <plugin>
405 <groupId>org.codehaus.mojo</groupId>
406 <artifactId>cobertura-maven-plugin</artifactId>
407 <version>2.7</version>
408 <configuration>
409 <formats>
410 <format>html</format>
411 <format>xml</format>
412 </formats>
413 <check/>
414 </configuration>
415 </plugin>
416 <plugin>
417 <groupId>org.codehaus.gmaven</groupId>
418 <artifactId>gmaven-plugin</artifactId>
419 <version>${gmaven-plugin.version}</version>
420 <executions>
421 <execution>
422 <phase>validate</phase>
423 <goals>
424 <goal>execute</goal>
425 </goals>
426 <configuration>
427 <properties>
428 <ver>${project.version}</ver>
429 </properties>
430 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
431 <source>
432 println 'ver: ' + project.properties['ver'];
433 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
434 project.properties['dockertag1']=project.properties['ver'] + "-latest";
435 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
436 } else {
437 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
438 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
439 }
440 println 'docker tag 1: ' + project.properties['dockertag1'];
441 println 'docker tag 2: ' + project.properties['dockertag2'];
442 </source>
443 </configuration>
444 </execution>
445 </executions>
446 </plugin>
447 <plugin>
448 <groupId>io.fabric8</groupId>
449 <artifactId>docker-maven-plugin</artifactId>
450 <version>${io.fabric8.version}</version>
451 <configuration>
452 <skipBuild>${docker.skip.build}</skipBuild>
453 <verbose>${docker.verbose}</verbose>
454 <apiVersion>${docker.apiVersion}</apiVersion>
455 <pullRegistry>${docker.pull.registry}</pullRegistry>
456 <pushRegistry>${docker.push.registry}</pushRegistry>
457 </configuration>
458 </plugin>
459 <plugin>
460 <groupId>org.codehaus.mojo</groupId>
461 <artifactId>properties-maven-plugin</artifactId>
462 <version>1.0.0</version>
463 <executions>
464 <execution>
465 <phase>validate</phase>
466 <goals>
467 <goal>read-project-properties</goal>
468 </goals>
469 <configuration>
470 <files>
471 <file>../version.properties</file>
472 </files>
473 </configuration>
474 </execution>
475 </executions>
476 </plugin>
477 </plugins>
478 </pluginManagement>
ezcoxemda23b252018-07-31 15:54:56 +0100479 </build>
ezcoxemda23b252018-07-31 15:54:56 +0100480 <pluginRepositories>
481 <pluginRepository>
482 <id>onap-plugin-snapshots</id>
483 <url>${onap.nexus.url}${snapshotNexusPath}</url>
484 </pluginRepository>
485 </pluginRepositories>
486</project>