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 <gmaven-plugin.version>1.5</gmaven-plugin.version>
68 <io.fabric8.version>0.33.0</io.fabric8.version>
69 <docker.apiVersion>2.2.54</docker.apiVersion>
70 <commons-lang.version>2.4</commons-lang.version>
71 <commons-io.version>2.7</commons-io.version>
72 <httpcore.version>4.4</httpcore.version>
73 <httpclient.version>4.5.13</httpclient.version>
74 <junit-runner.version>0.11</junit-runner.version>
75 <junit.version>4.12</junit.version>
76 <mockito-core.version>3.3.3</mockito-core.version>
77 <byte-buddy-version>1.10.9</byte-buddy-version>
78 <powermock.version>2.0.7</powermock.version>
79 <commons-lang3.version>3.0</commons-lang3.version>
80 <eelf-core.version>1.0.0</eelf-core.version>
81 <json.version>20210307</json.version>
82 <sl4j-api.version>1.7.25</sl4j-api.version>
83 <hamcrest-lib.version>1.3</hamcrest-lib.version>
84 <annotations.version>12.0</annotations.version>
87 <module>datarouter-prov</module>
88 <module>datarouter-prov-client</module>
89 <module>datarouter-node</module>
90 <module>datarouter-subscriber</module>
91 <module>datarouter-docker-compose</module>
93 <dependencyManagement>
96 <groupId>org.apache.commons</groupId>
97 <artifactId>commons-lang3</artifactId>
98 <version>${commons-lang3.version}</version>
101 <groupId>com.att.eelf</groupId>
102 <artifactId>eelf-core</artifactId>
103 <version>${eelf-core.version}</version>
106 <groupId>org.json</groupId>
107 <artifactId>json</artifactId>
108 <version>${json.version}</version>
111 <groupId>org.slf4j</groupId>
112 <artifactId>slf4j-api</artifactId>
113 <version>${sl4j-api.version}</version>
116 <groupId>commons-codec</groupId>
117 <artifactId>commons-codec</artifactId>
118 <version>${commons-codec.version}</version>
121 <groupId>ch.qos.logback</groupId>
122 <artifactId>logback-classic</artifactId>
123 <version>${qos.logback.classic.version}</version>
124 <scope>compile</scope>
127 <groupId>ch.qos.logback</groupId>
128 <artifactId>logback-core</artifactId>
129 <version>${qos.logback.version}</version>
130 <scope>compile</scope>
133 <groupId>com.intellij</groupId>
134 <artifactId>annotations</artifactId>
135 <version>${annotations.version}</version>
138 <groupId>javax.servlet</groupId>
139 <artifactId>javax.servlet-api</artifactId>
140 <version>${javax.servlet-api.version}</version>
141 <scope>compile</scope>
144 <groupId>javax.mail</groupId>
145 <artifactId>javax.mail-api</artifactId>
146 <version>${javax.mail-api.version}</version>
149 <groupId>org.eclipse.jetty</groupId>
150 <artifactId>jetty-server</artifactId>
151 <version>${jetty.version}</version>
154 <groupId>org.eclipse.jetty</groupId>
155 <artifactId>jetty-continuation</artifactId>
156 <version>9.4.49.v20220914</version>
159 <groupId>org.eclipse.jetty</groupId>
160 <artifactId>jetty-util</artifactId>
161 <version>${jetty.version}</version>
164 <groupId>org.eclipse.jetty</groupId>
165 <artifactId>jetty-servlet</artifactId>
166 <version>${jetty.version}</version>
169 <groupId>org.eclipse.jetty</groupId>
170 <artifactId>jetty-http</artifactId>
171 <version>${jetty.version}</version>
174 <groupId>org.eclipse.jetty</groupId>
175 <artifactId>jetty-io</artifactId>
176 <version>${jetty.version}</version>
179 <groupId>org.eclipse.jetty.cdi</groupId>
180 <artifactId>cdi-websocket</artifactId>
181 <version>${jetty.version}</version>
184 <groupId>commons-io</groupId>
185 <artifactId>commons-io</artifactId>
186 <version>${commons-io.version}</version>
187 <scope>compile</scope>
190 <groupId>org.apache.httpcomponents</groupId>
191 <artifactId>httpcore</artifactId>
192 <version>${httpcore.version}</version>
195 <groupId>org.apache.httpcomponents</groupId>
196 <artifactId>httpclient</artifactId>
197 <version>${httpclient.version}</version>
200 <groupId>org.sonatype.http-testing-harness</groupId>
201 <artifactId>junit-runner</artifactId>
202 <version>${junit-runner.version}</version>
206 <groupId>org.databene</groupId>
207 <artifactId>contiperf</artifactId>
210 <groupId>com.thoughtworks.xstream</groupId>
211 <artifactId>xstream</artifactId>
216 <groupId>junit</groupId>
217 <artifactId>junit</artifactId>
218 <version>${junit.version}</version>
222 <groupId>org.hamcrest</groupId>
223 <artifactId>hamcrest-all</artifactId>
224 <version>${hamcrest-lib.version}</version>
228 <groupId>org.mockito</groupId>
229 <artifactId>mockito-core</artifactId>
230 <version>${mockito-core.version}</version>
234 <groupId>net.bytebuddy</groupId>
235 <artifactId>byte-buddy</artifactId>
236 <version>${byte-buddy-version}</version>
240 <groupId>net.bytebuddy</groupId>
241 <artifactId>byte-buddy-agent</artifactId>
242 <version>${byte-buddy-version}</version>
246 <groupId>org.objenesis</groupId>
247 <artifactId>objenesis</artifactId>
248 <version>3.1</version>
252 <groupId>org.javassist</groupId>
253 <artifactId>javassist</artifactId>
254 <version>3.27.0-GA</version>
258 <groupId>org.powermock</groupId>
259 <artifactId>powermock-api-mockito2</artifactId>
260 <version>${powermock.version}</version>
263 <groupId>org.powermock</groupId>
264 <artifactId>powermock-module-junit4</artifactId>
265 <version>${powermock.version}</version>
269 <groupId>org.powermock</groupId>
270 <artifactId>powermock-api-support</artifactId>
271 <version>${powermock.version}</version>
275 <groupId>org.powermock</groupId>
276 <artifactId>powermock-core</artifactId>
277 <version>${powermock.version}</version>
281 <groupId>org.powermock</groupId>
282 <artifactId>powermock-module-junit4-rule</artifactId>
283 <version>${powermock.version}</version>
287 </dependencyManagement>
291 <groupId>org.apache.maven.plugins</groupId>
292 <artifactId>maven-surefire-plugin</artifactId>
295 <exclude>IntegrationSuite.java</exclude>
298 --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
299 --add-opens=java.base/sun.security.util=ALL-UNNAMED
300 --add-opens=java.base/sun.security.jca=ALL-UNNAMED
301 --add-opens=java.base/java.util.regex=ALL-UNNAMED
302 --add-opens=java.base/java.nio.file=ALL-UNNAMED
303 --add-opens java.base/java.lang=ALL-UNNAMED
304 --add-opens=java.base/java.util=ALL-UNNAMED
305 --add-opens=java.base/java.text=ALL-UNNAMED
306 --add-opens=java.base/java.net=ALL-UNNAMED
307 --add-opens=java.base/java.nio=ALL-UNNAMED
308 --add-opens=java.base/java.io=ALL-UNNAMED
313 <groupId>org.apache.maven.plugins</groupId>
314 <artifactId>maven-failsafe-plugin</artifactId>
317 --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
318 --add-opens=java.base/sun.security.util=ALL-UNNAMED
319 --add-opens=java.base/sun.security.jca=ALL-UNNAMED
320 --add-opens=java.base/java.util.regex=ALL-UNNAMED
321 --add-opens=java.base/java.nio.file=ALL-UNNAMED
322 --add-opens java.base/java.lang=ALL-UNNAMED
323 --add-opens=java.base/java.util=ALL-UNNAMED
324 --add-opens=java.base/java.text=ALL-UNNAMED
325 --add-opens=java.base/java.net=ALL-UNNAMED
326 --add-opens=java.base/java.nio=ALL-UNNAMED
327 --add-opens=java.base/java.io=ALL-UNNAMED
332 <groupId>org.codehaus.mojo</groupId>
333 <artifactId>flatten-maven-plugin</artifactId>
334 <version>1.0.1</version>
336 <updatePomFile>true</updatePomFile>
337 <outputDirectory>target</outputDirectory>
342 <phase>process-resources</phase>
350 <artifactId>maven-checkstyle-plugin</artifactId>
353 <id>onap-java-style</id>
355 <consoleOutput>false</consoleOutput>
364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-compiler-plugin</artifactId>
367 <source>${maven.compiler.source}</source>
368 <target>${maven.compiler.target}</target>
372 <groupId>org.apache.maven.plugins</groupId>
373 <artifactId>maven-dependency-plugin</artifactId>
374 <version>2.10</version>
377 <id>copy-dependencies</id>
379 <goal>copy-dependencies</goal>
382 <overWriteReleases>false</overWriteReleases>
383 <overWriteSnapshots>false</overWriteSnapshots>
384 <overWriteIfNewer>true</overWriteIfNewer>
390 <groupId>org.apache.maven.plugins</groupId>
391 <artifactId>maven-javadoc-plugin</artifactId>
392 <version>3.3.1</version>
394 <failOnError>false</failOnError>
398 <id>attach-javadocs</id>
406 <groupId>org.apache.maven.plugins</groupId>
407 <artifactId>maven-source-plugin</artifactId>
408 <version>2.2.1</version>
411 <id>attach-sources</id>
413 <goal>jar-no-fork</goal>
419 <groupId>org.codehaus.mojo</groupId>
420 <artifactId>cobertura-maven-plugin</artifactId>
421 <version>2.7</version>
424 <format>html</format>
431 <groupId>org.codehaus.gmaven</groupId>
432 <artifactId>gmaven-plugin</artifactId>
433 <version>${gmaven-plugin.version}</version>
436 <phase>validate</phase>
442 <ver>${project.version}</ver>
444 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
446 println 'ver: ' + project.properties['ver'];
447 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
448 project.properties['dockertag1']=project.properties['ver'] + "-latest";
449 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
451 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
452 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
454 println 'docker tag 1: ' + project.properties['dockertag1'];
455 println 'docker tag 2: ' + project.properties['dockertag2'];
462 <groupId>io.fabric8</groupId>
463 <artifactId>docker-maven-plugin</artifactId>
464 <version>${io.fabric8.version}</version>
465 <extensions>true</extensions>
467 <skipBuild>${docker.skip.build}</skipBuild>
468 <verbose>${docker.verbose}</verbose>
469 <apiVersion>${docker.apiVersion}</apiVersion>
470 <pullRegistry>${docker.pull.registry}</pullRegistry>
471 <pushRegistry>${docker.push.registry}</pushRegistry>
475 <groupId>org.codehaus.mojo</groupId>
476 <artifactId>properties-maven-plugin</artifactId>
477 <version>1.0.0</version>
480 <phase>validate</phase>
482 <goal>read-project-properties</goal>
486 <file>../version.properties</file>
497 <id>onap-plugin-snapshots</id>
498 <url>${onap.nexus.url}${snapshotNexusPath}</url>
500 </pluginRepositories>