2 ============LICENSE_START==================================================
4 * ===========================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * Modifications Copyright (C) 2018 Nokia. All rights reserved.
7 * Copyright (d) 2023 J. F. Lucas. All rights reserved.
8 * Copyright © 2023 Nordix Foundation Property. All rights reserved.
9 * ===========================================================================
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 * ============LICENSE_END====================================================
23 <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">
24 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.dmaap.datarouter</groupId>
26 <artifactId>parent</artifactId>
27 <name>dmaap-datarouter</name>
28 <version>${revision}</version>
29 <packaging>pom</packaging>
30 <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
32 <groupId>org.onap.oparent</groupId>
33 <artifactId>oparent</artifactId>
34 <version>3.3.3</version>
37 <!--revision must also be set in the version.properties file at project root-->
38 <revision>2.1.15-SNAPSHOT</revision>
39 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40 <maven.compiler.source>17</maven.compiler.source>
41 <maven.compiler.target>17</maven.compiler.target>
43 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
44 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
45 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
46 <sitePath>/content/sites/site/org/onap/dmaap/datarouter/${project.artifactId}/${project.version}</sitePath>
48 <sonar.language>java</sonar.language>
49 <sonar.skip>false</sonar.skip>
50 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
51 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
52 <sonar.projectVersion>${project.version}</sonar.projectVersion>
54 <docker.skip.build>false</docker.skip.build>
55 <docker.verbose>true</docker.verbose>
56 <docker.image.root>onap/dmaap/</docker.image.root>
57 <timestamp>${maven.build.timestamp}</timestamp>
58 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
60 <!--dependency version across all modules-->
61 <jetty.version>11.0.12</jetty.version>
62 <javax.mail-api.version>1.5.5</javax.mail-api.version>
63 <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
64 <qos.logback.version>1.2.7</qos.logback.version>
65 <qos.logback.classic.version>1.2.3</qos.logback.classic.version>
66 <commons-codec.version>1.15</commons-codec.version>
67 <gmavenplus-plugin.version>3.0.0</gmavenplus-plugin.version>
68 <groovy.version>4.0.13</groovy.version>
69 <io.fabric8.version>0.33.0</io.fabric8.version>
70 <docker.apiVersion>2.2.54</docker.apiVersion>
71 <commons-lang.version>2.4</commons-lang.version>
72 <commons-io.version>2.7</commons-io.version>
73 <httpcore.version>4.4</httpcore.version>
74 <httpclient.version>4.5.13</httpclient.version>
75 <junit-runner.version>0.11</junit-runner.version>
76 <junit.version>4.12</junit.version>
77 <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>
80 <commons-lang3.version>3.0</commons-lang3.version>
81 <eelf-core.version>1.0.0</eelf-core.version>
82 <json.version>20210307</json.version>
83 <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>
88 <module>datarouter-prov</module>
89 <module>datarouter-prov-client</module>
90 <module>datarouter-node</module>
91 <module>datarouter-subscriber</module>
92 <module>datarouter-docker-compose</module>
94 <dependencyManagement>
97 <groupId>org.apache.commons</groupId>
98 <artifactId>commons-lang3</artifactId>
99 <version>${commons-lang3.version}</version>
102 <groupId>com.att.eelf</groupId>
103 <artifactId>eelf-core</artifactId>
104 <version>${eelf-core.version}</version>
107 <groupId>org.json</groupId>
108 <artifactId>json</artifactId>
109 <version>${json.version}</version>
112 <groupId>org.slf4j</groupId>
113 <artifactId>slf4j-api</artifactId>
114 <version>${sl4j-api.version}</version>
117 <groupId>commons-codec</groupId>
118 <artifactId>commons-codec</artifactId>
119 <version>${commons-codec.version}</version>
122 <groupId>ch.qos.logback</groupId>
123 <artifactId>logback-classic</artifactId>
124 <version>${qos.logback.classic.version}</version>
125 <scope>compile</scope>
128 <groupId>ch.qos.logback</groupId>
129 <artifactId>logback-core</artifactId>
130 <version>${qos.logback.version}</version>
131 <scope>compile</scope>
134 <groupId>com.intellij</groupId>
135 <artifactId>annotations</artifactId>
136 <version>${annotations.version}</version>
139 <groupId>javax.servlet</groupId>
140 <artifactId>javax.servlet-api</artifactId>
141 <version>${javax.servlet-api.version}</version>
142 <scope>compile</scope>
145 <groupId>javax.mail</groupId>
146 <artifactId>javax.mail-api</artifactId>
147 <version>${javax.mail-api.version}</version>
150 <groupId>org.eclipse.jetty</groupId>
151 <artifactId>jetty-server</artifactId>
152 <version>${jetty.version}</version>
155 <groupId>org.eclipse.jetty</groupId>
156 <artifactId>jetty-continuation</artifactId>
157 <version>9.4.49.v20220914</version>
160 <groupId>org.eclipse.jetty</groupId>
161 <artifactId>jetty-util</artifactId>
162 <version>${jetty.version}</version>
165 <groupId>org.eclipse.jetty</groupId>
166 <artifactId>jetty-servlet</artifactId>
167 <version>${jetty.version}</version>
170 <groupId>org.eclipse.jetty</groupId>
171 <artifactId>jetty-http</artifactId>
172 <version>${jetty.version}</version>
175 <groupId>org.eclipse.jetty</groupId>
176 <artifactId>jetty-io</artifactId>
177 <version>${jetty.version}</version>
180 <groupId>org.eclipse.jetty.cdi</groupId>
181 <artifactId>cdi-websocket</artifactId>
182 <version>${jetty.version}</version>
185 <groupId>commons-io</groupId>
186 <artifactId>commons-io</artifactId>
187 <version>${commons-io.version}</version>
188 <scope>compile</scope>
191 <groupId>org.apache.httpcomponents</groupId>
192 <artifactId>httpcore</artifactId>
193 <version>${httpcore.version}</version>
196 <groupId>org.apache.httpcomponents</groupId>
197 <artifactId>httpclient</artifactId>
198 <version>${httpclient.version}</version>
201 <groupId>org.sonatype.http-testing-harness</groupId>
202 <artifactId>junit-runner</artifactId>
203 <version>${junit-runner.version}</version>
207 <groupId>org.databene</groupId>
208 <artifactId>contiperf</artifactId>
211 <groupId>com.thoughtworks.xstream</groupId>
212 <artifactId>xstream</artifactId>
217 <groupId>junit</groupId>
218 <artifactId>junit</artifactId>
219 <version>${junit.version}</version>
223 <groupId>org.hamcrest</groupId>
224 <artifactId>hamcrest-all</artifactId>
225 <version>${hamcrest-lib.version}</version>
229 <groupId>org.mockito</groupId>
230 <artifactId>mockito-core</artifactId>
231 <version>${mockito-core.version}</version>
235 <groupId>net.bytebuddy</groupId>
236 <artifactId>byte-buddy</artifactId>
237 <version>${byte-buddy-version}</version>
241 <groupId>net.bytebuddy</groupId>
242 <artifactId>byte-buddy-agent</artifactId>
243 <version>${byte-buddy-version}</version>
247 <groupId>org.objenesis</groupId>
248 <artifactId>objenesis</artifactId>
249 <version>3.1</version>
253 <groupId>org.javassist</groupId>
254 <artifactId>javassist</artifactId>
255 <version>3.27.0-GA</version>
259 <groupId>org.powermock</groupId>
260 <artifactId>powermock-api-mockito2</artifactId>
261 <version>${powermock.version}</version>
264 <groupId>org.powermock</groupId>
265 <artifactId>powermock-module-junit4</artifactId>
266 <version>${powermock.version}</version>
270 <groupId>org.powermock</groupId>
271 <artifactId>powermock-api-support</artifactId>
272 <version>${powermock.version}</version>
276 <groupId>org.powermock</groupId>
277 <artifactId>powermock-core</artifactId>
278 <version>${powermock.version}</version>
282 <groupId>org.powermock</groupId>
283 <artifactId>powermock-module-junit4-rule</artifactId>
284 <version>${powermock.version}</version>
288 </dependencyManagement>
292 <groupId>org.apache.maven.plugins</groupId>
293 <artifactId>maven-surefire-plugin</artifactId>
296 <exclude>IntegrationSuite.java</exclude>
299 --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
300 --add-opens=java.base/sun.security.util=ALL-UNNAMED
301 --add-opens=java.base/sun.security.jca=ALL-UNNAMED
302 --add-opens=java.base/java.util.regex=ALL-UNNAMED
303 --add-opens=java.base/java.nio.file=ALL-UNNAMED
304 --add-opens java.base/java.lang=ALL-UNNAMED
305 --add-opens=java.base/java.util=ALL-UNNAMED
306 --add-opens=java.base/java.text=ALL-UNNAMED
307 --add-opens=java.base/java.net=ALL-UNNAMED
308 --add-opens=java.base/java.nio=ALL-UNNAMED
309 --add-opens=java.base/java.io=ALL-UNNAMED
314 <groupId>org.apache.maven.plugins</groupId>
315 <artifactId>maven-failsafe-plugin</artifactId>
318 --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
319 --add-opens=java.base/sun.security.util=ALL-UNNAMED
320 --add-opens=java.base/sun.security.jca=ALL-UNNAMED
321 --add-opens=java.base/java.util.regex=ALL-UNNAMED
322 --add-opens=java.base/java.nio.file=ALL-UNNAMED
323 --add-opens java.base/java.lang=ALL-UNNAMED
324 --add-opens=java.base/java.util=ALL-UNNAMED
325 --add-opens=java.base/java.text=ALL-UNNAMED
326 --add-opens=java.base/java.net=ALL-UNNAMED
327 --add-opens=java.base/java.nio=ALL-UNNAMED
328 --add-opens=java.base/java.io=ALL-UNNAMED
333 <groupId>org.codehaus.mojo</groupId>
334 <artifactId>flatten-maven-plugin</artifactId>
335 <version>1.0.1</version>
337 <updatePomFile>true</updatePomFile>
338 <outputDirectory>target</outputDirectory>
343 <phase>process-resources</phase>
351 <artifactId>maven-checkstyle-plugin</artifactId>
354 <id>onap-java-style</id>
356 <consoleOutput>false</consoleOutput>
365 <groupId>org.apache.maven.plugins</groupId>
366 <artifactId>maven-compiler-plugin</artifactId>
368 <source>${maven.compiler.source}</source>
369 <target>${maven.compiler.target}</target>
373 <groupId>org.apache.maven.plugins</groupId>
374 <artifactId>maven-dependency-plugin</artifactId>
375 <version>2.10</version>
378 <id>copy-dependencies</id>
380 <goal>copy-dependencies</goal>
383 <overWriteReleases>false</overWriteReleases>
384 <overWriteSnapshots>false</overWriteSnapshots>
385 <overWriteIfNewer>true</overWriteIfNewer>
391 <groupId>org.apache.maven.plugins</groupId>
392 <artifactId>maven-javadoc-plugin</artifactId>
393 <version>3.3.1</version>
395 <failOnError>false</failOnError>
399 <id>attach-javadocs</id>
407 <groupId>org.apache.maven.plugins</groupId>
408 <artifactId>maven-source-plugin</artifactId>
409 <version>2.2.1</version>
412 <id>attach-sources</id>
414 <goal>jar-no-fork</goal>
420 <groupId>org.codehaus.mojo</groupId>
421 <artifactId>cobertura-maven-plugin</artifactId>
422 <version>2.7</version>
425 <format>html</format>
432 <groupId>org.codehaus.gmavenplus</groupId>
433 <artifactId>gmavenplus-plugin</artifactId>
434 <version>${gmavenplus-plugin.version}</version>
437 <groupId>org.apache.groovy</groupId>
438 <artifactId>groovy-all</artifactId>
439 <version>${groovy.version}</version>
445 <phase>validate</phase>
451 <ver>${project.version}</ver>
453 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
456 println 'ver: ' + project.properties['revision'];
457 if ( project.properties['revision'].endsWith("-SNAPSHOT") ) {
458 project.properties['dockertag1']=project.properties['revision'] + "-latest";
459 project.properties['dockertag2']=project.properties['revision'] + "-" + project.properties['timestamp'];
461 project.properties['dockertag1']=project.properties['revision'] + "-STAGING-latest";
462 project.properties['dockertag2']=project.properties['revision'] + "-STAGING-" + project.properties['timestamp'];
464 println 'docker tag 1: ' + project.properties['dockertag1'];
465 println 'docker tag 2: ' + project.properties['dockertag2'];
473 <groupId>io.fabric8</groupId>
474 <artifactId>docker-maven-plugin</artifactId>
475 <version>${io.fabric8.version}</version>
476 <extensions>true</extensions>
478 <skipBuild>${docker.skip.build}</skipBuild>
479 <verbose>${docker.verbose}</verbose>
480 <apiVersion>${docker.apiVersion}</apiVersion>
481 <pullRegistry>${docker.pull.registry}</pullRegistry>
482 <pushRegistry>${docker.push.registry}</pushRegistry>
486 <groupId>org.codehaus.mojo</groupId>
487 <artifactId>properties-maven-plugin</artifactId>
488 <version>1.0.0</version>
491 <phase>validate</phase>
493 <goal>read-project-properties</goal>
497 <file>../version.properties</file>
508 <id>onap-plugin-snapshots</id>
509 <url>${onap.nexus.url}${snapshotNexusPath}</url>
511 </pluginRepositories>