blob: 302940bcd3beadb223d6de60d5c6c1e6b5e38855 [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>
econward6e999b2018-09-05 16:10:01 +000065 <qos.logback.version>1.2.3</qos.logback.version>
efiacor1ccd9c32019-10-08 16:24:28 +010066 <aaf-cadi-aaf.version>2.1.15</aaf-cadi-aaf.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>
123 <version>${qos.logback.version}</version>
124 <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>
156 <version>${jetty.version}</version>
157 </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>
efiacorcb2d2a22021-08-17 10:52:23 +0100171 <version>9.4.43.v20210629</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>
184 <groupId>org.onap.aaf.authz</groupId>
185 <artifactId>aaf-cadi-core</artifactId>
186 <version>${aaf-cadi-aaf.version}</version>
187 </dependency>
188 <dependency>
189 <groupId>commons-io</groupId>
190 <artifactId>commons-io</artifactId>
191 <version>${commons-io.version}</version>
192 <scope>compile</scope>
193 </dependency>
194 <dependency>
195 <groupId>org.apache.httpcomponents</groupId>
196 <artifactId>httpcore</artifactId>
197 <version>${httpcore.version}</version>
198 </dependency>
199 <dependency>
200 <groupId>org.apache.httpcomponents</groupId>
201 <artifactId>httpclient</artifactId>
202 <version>${httpclient.version}</version>
203 </dependency>
204 <dependency>
205 <groupId>org.sonatype.http-testing-harness</groupId>
206 <artifactId>junit-runner</artifactId>
207 <version>${junit-runner.version}</version>
efiacor1ccd9c32019-10-08 16:24:28 +0100208 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000209 <exclusions>
210 <exclusion>
211 <groupId>org.databene</groupId>
212 <artifactId>contiperf</artifactId>
213 </exclusion>
econwar74b69ed2019-04-26 13:32:21 +0000214 <exclusion>
215 <groupId>com.thoughtworks.xstream</groupId>
216 <artifactId>xstream</artifactId>
217 </exclusion>
efiacor1c11ab82019-04-09 13:52:17 +0000218 </exclusions>
219 </dependency>
220 <dependency>
221 <groupId>junit</groupId>
222 <artifactId>junit</artifactId>
223 <version>${junit.version}</version>
224 <scope>test</scope>
225 </dependency>
226 <dependency>
efiacor8552e042020-04-04 17:51:53 +0100227 <groupId>org.hamcrest</groupId>
228 <artifactId>hamcrest-all</artifactId>
229 <version>${hamcrest-lib.version}</version>
230 <scope>test</scope>
231 </dependency>
232 <dependency>
efiacor1c11ab82019-04-09 13:52:17 +0000233 <groupId>org.mockito</groupId>
234 <artifactId>mockito-core</artifactId>
235 <version>${mockito-core.version}</version>
236 <scope>test</scope>
237 </dependency>
238 <dependency>
efiacor8552e042020-04-04 17:51:53 +0100239 <groupId>net.bytebuddy</groupId>
240 <artifactId>byte-buddy</artifactId>
241 <version>${byte-buddy-version}</version>
efiacor1c11ab82019-04-09 13:52:17 +0000242 <scope>test</scope>
243 </dependency>
244 <dependency>
efiacor8552e042020-04-04 17:51:53 +0100245 <groupId>net.bytebuddy</groupId>
246 <artifactId>byte-buddy-agent</artifactId>
247 <version>${byte-buddy-version}</version>
248 <scope>test</scope>
249 </dependency>
250 <dependency>
251 <groupId>org.objenesis</groupId>
252 <artifactId>objenesis</artifactId>
253 <version>3.1</version>
254 <scope>test</scope>
255 </dependency>
256 <dependency>
257 <groupId>org.javassist</groupId>
258 <artifactId>javassist</artifactId>
259 <version>3.27.0-GA</version>
260 <scope>test</scope>
261 </dependency>
262 <dependency>
263 <groupId>org.powermock</groupId>
264 <artifactId>powermock-api-mockito2</artifactId>
265 <version>${powermock.version}</version>
266 </dependency>
267 <dependency>
efiacor1c11ab82019-04-09 13:52:17 +0000268 <groupId>org.powermock</groupId>
269 <artifactId>powermock-module-junit4</artifactId>
270 <version>${powermock.version}</version>
271 <scope>test</scope>
272 </dependency>
273 <dependency>
274 <groupId>org.powermock</groupId>
275 <artifactId>powermock-api-support</artifactId>
276 <version>${powermock.version}</version>
277 <scope>test</scope>
278 </dependency>
279 <dependency>
280 <groupId>org.powermock</groupId>
281 <artifactId>powermock-core</artifactId>
282 <version>${powermock.version}</version>
283 <scope>test</scope>
284 </dependency>
285 <dependency>
efiacor8552e042020-04-04 17:51:53 +0100286 <groupId>org.powermock</groupId>
287 <artifactId>powermock-module-junit4-rule</artifactId>
288 <version>${powermock.version}</version>
289 <scope>test</scope>
efiacor1c11ab82019-04-09 13:52:17 +0000290 </dependency>
291 </dependencies>
292 </dependencyManagement>
ezcoxemda23b252018-07-31 15:54:56 +0100293 <build>
294 <plugins>
295 <plugin>
Fiachra Corcoran48d21522018-10-11 15:45:53 +0100296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-surefire-plugin</artifactId>
298 <configuration>
299 <excludes>
300 <exclude>IntegrationSuite.java</exclude>
301 </excludes>
efiacor8552e042020-04-04 17:51:53 +0100302 <argLine>
efiacor5906de22020-04-16 14:59:07 +0100303 ${surefireArgLine} --illegal-access=permit
efiacor8552e042020-04-04 17:51:53 +0100304 </argLine>
305 </configuration>
306 </plugin>
307 <plugin>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-failsafe-plugin</artifactId>
310 <configuration>
311 <argLine>
312 --illegal-access=permit
313 </argLine>
Fiachra Corcoran48d21522018-10-11 15:45:53 +0100314 </configuration>
315 </plugin>
econwar7704d302019-04-03 10:40:26 +0000316 <plugin>
efiacor1c11ab82019-04-09 13:52:17 +0000317 <groupId>org.codehaus.mojo</groupId>
318 <artifactId>flatten-maven-plugin</artifactId>
319 <version>1.0.1</version>
320 <configuration>
321 <updatePomFile>true</updatePomFile>
322 <outputDirectory>target</outputDirectory>
323 </configuration>
324 <executions>
325 <execution>
326 <id>flatten</id>
327 <phase>process-resources</phase>
328 <goals>
329 <goal>flatten</goal>
330 </goals>
331 </execution>
332 </executions>
333 </plugin>
334 <plugin>
econwar7704d302019-04-03 10:40:26 +0000335 <artifactId>maven-checkstyle-plugin</artifactId>
336 <executions>
337 <execution>
338 <id>onap-java-style</id>
339 <configuration>
340 <consoleOutput>false</consoleOutput>
341 </configuration>
342 </execution>
343 </executions>
344 </plugin>
ezcoxemda23b252018-07-31 15:54:56 +0100345 </plugins>
efiacor1c11ab82019-04-09 13:52:17 +0000346 <pluginManagement>
347 <plugins>
348 <plugin>
349 <groupId>org.apache.maven.plugins</groupId>
350 <artifactId>maven-compiler-plugin</artifactId>
efiacor1c11ab82019-04-09 13:52:17 +0000351 <configuration>
efiacor8552e042020-04-04 17:51:53 +0100352 <source>${maven.compiler.source}</source>
353 <target>${maven.compiler.target}</target>
efiacor1c11ab82019-04-09 13:52:17 +0000354 </configuration>
355 </plugin>
356 <plugin>
357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-dependency-plugin</artifactId>
359 <version>2.10</version>
360 <executions>
361 <execution>
362 <id>copy-dependencies</id>
363 <goals>
364 <goal>copy-dependencies</goal>
365 </goals>
366 <configuration>
367 <overWriteReleases>false</overWriteReleases>
368 <overWriteSnapshots>false</overWriteSnapshots>
369 <overWriteIfNewer>true</overWriteIfNewer>
370 </configuration>
371 </execution>
372 </executions>
373 </plugin>
374 <plugin>
375 <groupId>org.apache.maven.plugins</groupId>
376 <artifactId>maven-javadoc-plugin</artifactId>
efiacor5906de22020-04-16 14:59:07 +0100377 <version>3.2.0</version>
efiacor1c11ab82019-04-09 13:52:17 +0000378 <configuration>
379 <failOnError>false</failOnError>
380 </configuration>
381 <executions>
382 <execution>
383 <id>attach-javadocs</id>
384 <goals>
385 <goal>jar</goal>
386 </goals>
387 </execution>
388 </executions>
389 </plugin>
390 <plugin>
391 <groupId>org.apache.maven.plugins</groupId>
392 <artifactId>maven-source-plugin</artifactId>
393 <version>2.2.1</version>
394 <executions>
395 <execution>
396 <id>attach-sources</id>
397 <goals>
398 <goal>jar-no-fork</goal>
399 </goals>
400 </execution>
401 </executions>
402 </plugin>
403 <plugin>
404 <groupId>org.codehaus.mojo</groupId>
405 <artifactId>cobertura-maven-plugin</artifactId>
406 <version>2.7</version>
407 <configuration>
408 <formats>
409 <format>html</format>
410 <format>xml</format>
411 </formats>
412 <check/>
413 </configuration>
414 </plugin>
415 <plugin>
416 <groupId>org.codehaus.gmaven</groupId>
417 <artifactId>gmaven-plugin</artifactId>
418 <version>${gmaven-plugin.version}</version>
419 <executions>
420 <execution>
421 <phase>validate</phase>
422 <goals>
423 <goal>execute</goal>
424 </goals>
425 <configuration>
426 <properties>
427 <ver>${project.version}</ver>
428 </properties>
429 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
430 <source>
431 println 'ver: ' + project.properties['ver'];
432 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
433 project.properties['dockertag1']=project.properties['ver'] + "-latest";
434 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
435 } else {
436 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
437 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
438 }
439 println 'docker tag 1: ' + project.properties['dockertag1'];
440 println 'docker tag 2: ' + project.properties['dockertag2'];
441 </source>
442 </configuration>
443 </execution>
444 </executions>
445 </plugin>
446 <plugin>
447 <groupId>io.fabric8</groupId>
448 <artifactId>docker-maven-plugin</artifactId>
449 <version>${io.fabric8.version}</version>
450 <configuration>
451 <skipBuild>${docker.skip.build}</skipBuild>
452 <verbose>${docker.verbose}</verbose>
453 <apiVersion>${docker.apiVersion}</apiVersion>
454 <pullRegistry>${docker.pull.registry}</pullRegistry>
455 <pushRegistry>${docker.push.registry}</pushRegistry>
456 </configuration>
457 </plugin>
458 <plugin>
459 <groupId>org.codehaus.mojo</groupId>
460 <artifactId>properties-maven-plugin</artifactId>
461 <version>1.0.0</version>
462 <executions>
463 <execution>
464 <phase>validate</phase>
465 <goals>
466 <goal>read-project-properties</goal>
467 </goals>
468 <configuration>
469 <files>
470 <file>../version.properties</file>
471 </files>
472 </configuration>
473 </execution>
474 </executions>
475 </plugin>
476 </plugins>
477 </pluginManagement>
ezcoxemda23b252018-07-31 15:54:56 +0100478 </build>
ezcoxemda23b252018-07-31 15:54:56 +0100479 <pluginRepositories>
480 <pluginRepository>
481 <id>onap-plugin-snapshots</id>
482 <url>${onap.nexus.url}${snapshotNexusPath}</url>
483 </pluginRepository>
484 </pluginRepositories>
485</project>