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 * ===========================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END====================================================
22 <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">
23 <modelVersion>4.0.0</modelVersion>
24 <groupId>org.onap.dmaap.datarouter</groupId>
25 <artifactId>parent</artifactId>
26 <name>dmaap-datarouter</name>
27 <version>${revision}</version>
28 <packaging>pom</packaging>
29 <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
31 <groupId>org.onap.oparent</groupId>
32 <artifactId>oparent</artifactId>
33 <version>3.3.3</version>
36 <!--revision must also be set in the version.properties file at project root-->
37 <revision>2.1.14-SNAPSHOT</revision>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39 <maven.compiler.source>11</maven.compiler.source>
40 <maven.compiler.target>11</maven.compiler.target>
42 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
43 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
44 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
45 <sitePath>/content/sites/site/org/onap/dmaap/datarouter/${project.artifactId}/${project.version}</sitePath>
47 <sonar.language>java</sonar.language>
48 <sonar.skip>false</sonar.skip>
49 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
50 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
51 <sonar.projectVersion>${project.version}</sonar.projectVersion>
53 <docker.skip.build>false</docker.skip.build>
54 <docker.verbose>true</docker.verbose>
55 <docker.image.root>onap/dmaap/</docker.image.root>
56 <timestamp>${maven.build.timestamp}</timestamp>
57 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
59 <!--dependency version across all modules-->
60 <jetty.version>11.0.12</jetty.version>
61 <javax.mail-api.version>1.5.5</javax.mail-api.version>
62 <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
63 <qos.logback.version>1.2.7</qos.logback.version>
64 <qos.logback.classic.version>1.2.3</qos.logback.classic.version>
65 <commons-codec.version>1.15</commons-codec.version>
66 <gmaven-plugin.version>1.5</gmaven-plugin.version>
67 <io.fabric8.version>0.33.0</io.fabric8.version>
68 <docker.apiVersion>2.2.54</docker.apiVersion>
69 <commons-lang.version>2.4</commons-lang.version>
70 <commons-io.version>2.7</commons-io.version>
71 <httpcore.version>4.4</httpcore.version>
72 <httpclient.version>4.5.13</httpclient.version>
73 <junit-runner.version>0.11</junit-runner.version>
74 <junit.version>4.12</junit.version>
75 <mockito-core.version>3.3.3</mockito-core.version>
76 <byte-buddy-version>1.10.9</byte-buddy-version>
77 <powermock.version>2.0.7</powermock.version>
78 <commons-lang3.version>3.0</commons-lang3.version>
79 <eelf-core.version>1.0.0</eelf-core.version>
80 <json.version>20210307</json.version>
81 <sl4j-api.version>1.7.25</sl4j-api.version>
82 <hamcrest-lib.version>1.3</hamcrest-lib.version>
83 <annotations.version>12.0</annotations.version>
86 <module>datarouter-prov</module>
87 <module>datarouter-prov-client</module>
88 <module>datarouter-node</module>
89 <module>datarouter-subscriber</module>
90 <module>datarouter-docker-compose</module>
92 <dependencyManagement>
95 <groupId>org.apache.commons</groupId>
96 <artifactId>commons-lang3</artifactId>
97 <version>${commons-lang3.version}</version>
100 <groupId>com.att.eelf</groupId>
101 <artifactId>eelf-core</artifactId>
102 <version>${eelf-core.version}</version>
105 <groupId>org.json</groupId>
106 <artifactId>json</artifactId>
107 <version>${json.version}</version>
110 <groupId>org.slf4j</groupId>
111 <artifactId>slf4j-api</artifactId>
112 <version>${sl4j-api.version}</version>
115 <groupId>commons-codec</groupId>
116 <artifactId>commons-codec</artifactId>
117 <version>${commons-codec.version}</version>
120 <groupId>ch.qos.logback</groupId>
121 <artifactId>logback-classic</artifactId>
122 <version>${qos.logback.classic.version}</version>
123 <scope>compile</scope>
126 <groupId>ch.qos.logback</groupId>
127 <artifactId>logback-core</artifactId>
128 <version>${qos.logback.version}</version>
129 <scope>compile</scope>
132 <groupId>com.intellij</groupId>
133 <artifactId>annotations</artifactId>
134 <version>${annotations.version}</version>
137 <groupId>javax.servlet</groupId>
138 <artifactId>javax.servlet-api</artifactId>
139 <version>${javax.servlet-api.version}</version>
140 <scope>compile</scope>
143 <groupId>javax.mail</groupId>
144 <artifactId>javax.mail-api</artifactId>
145 <version>${javax.mail-api.version}</version>
148 <groupId>org.eclipse.jetty</groupId>
149 <artifactId>jetty-server</artifactId>
150 <version>${jetty.version}</version>
153 <groupId>org.eclipse.jetty</groupId>
154 <artifactId>jetty-continuation</artifactId>
155 <version>9.4.49.v20220914</version>
158 <groupId>org.eclipse.jetty</groupId>
159 <artifactId>jetty-util</artifactId>
160 <version>${jetty.version}</version>
163 <groupId>org.eclipse.jetty</groupId>
164 <artifactId>jetty-servlet</artifactId>
165 <version>${jetty.version}</version>
168 <groupId>org.eclipse.jetty</groupId>
169 <artifactId>jetty-http</artifactId>
170 <version>${jetty.version}</version>
173 <groupId>org.eclipse.jetty</groupId>
174 <artifactId>jetty-io</artifactId>
175 <version>${jetty.version}</version>
178 <groupId>org.eclipse.jetty.cdi</groupId>
179 <artifactId>cdi-websocket</artifactId>
180 <version>${jetty.version}</version>
183 <groupId>commons-io</groupId>
184 <artifactId>commons-io</artifactId>
185 <version>${commons-io.version}</version>
186 <scope>compile</scope>
189 <groupId>org.apache.httpcomponents</groupId>
190 <artifactId>httpcore</artifactId>
191 <version>${httpcore.version}</version>
194 <groupId>org.apache.httpcomponents</groupId>
195 <artifactId>httpclient</artifactId>
196 <version>${httpclient.version}</version>
199 <groupId>org.sonatype.http-testing-harness</groupId>
200 <artifactId>junit-runner</artifactId>
201 <version>${junit-runner.version}</version>
205 <groupId>org.databene</groupId>
206 <artifactId>contiperf</artifactId>
209 <groupId>com.thoughtworks.xstream</groupId>
210 <artifactId>xstream</artifactId>
215 <groupId>junit</groupId>
216 <artifactId>junit</artifactId>
217 <version>${junit.version}</version>
221 <groupId>org.hamcrest</groupId>
222 <artifactId>hamcrest-all</artifactId>
223 <version>${hamcrest-lib.version}</version>
227 <groupId>org.mockito</groupId>
228 <artifactId>mockito-core</artifactId>
229 <version>${mockito-core.version}</version>
233 <groupId>net.bytebuddy</groupId>
234 <artifactId>byte-buddy</artifactId>
235 <version>${byte-buddy-version}</version>
239 <groupId>net.bytebuddy</groupId>
240 <artifactId>byte-buddy-agent</artifactId>
241 <version>${byte-buddy-version}</version>
245 <groupId>org.objenesis</groupId>
246 <artifactId>objenesis</artifactId>
247 <version>3.1</version>
251 <groupId>org.javassist</groupId>
252 <artifactId>javassist</artifactId>
253 <version>3.27.0-GA</version>
257 <groupId>org.powermock</groupId>
258 <artifactId>powermock-api-mockito2</artifactId>
259 <version>${powermock.version}</version>
262 <groupId>org.powermock</groupId>
263 <artifactId>powermock-module-junit4</artifactId>
264 <version>${powermock.version}</version>
268 <groupId>org.powermock</groupId>
269 <artifactId>powermock-api-support</artifactId>
270 <version>${powermock.version}</version>
274 <groupId>org.powermock</groupId>
275 <artifactId>powermock-core</artifactId>
276 <version>${powermock.version}</version>
280 <groupId>org.powermock</groupId>
281 <artifactId>powermock-module-junit4-rule</artifactId>
282 <version>${powermock.version}</version>
286 </dependencyManagement>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-surefire-plugin</artifactId>
294 <exclude>IntegrationSuite.java</exclude>
297 ${surefireArgLine} --illegal-access=permit
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-failsafe-plugin</artifactId>
306 --illegal-access=permit
311 <groupId>org.codehaus.mojo</groupId>
312 <artifactId>flatten-maven-plugin</artifactId>
313 <version>1.0.1</version>
315 <updatePomFile>true</updatePomFile>
316 <outputDirectory>target</outputDirectory>
321 <phase>process-resources</phase>
329 <artifactId>maven-checkstyle-plugin</artifactId>
332 <id>onap-java-style</id>
334 <consoleOutput>false</consoleOutput>
343 <groupId>org.apache.maven.plugins</groupId>
344 <artifactId>maven-compiler-plugin</artifactId>
346 <source>${maven.compiler.source}</source>
347 <target>${maven.compiler.target}</target>
351 <groupId>org.apache.maven.plugins</groupId>
352 <artifactId>maven-dependency-plugin</artifactId>
353 <version>2.10</version>
356 <id>copy-dependencies</id>
358 <goal>copy-dependencies</goal>
361 <overWriteReleases>false</overWriteReleases>
362 <overWriteSnapshots>false</overWriteSnapshots>
363 <overWriteIfNewer>true</overWriteIfNewer>
369 <groupId>org.apache.maven.plugins</groupId>
370 <artifactId>maven-javadoc-plugin</artifactId>
371 <version>3.3.1</version>
373 <failOnError>false</failOnError>
377 <id>attach-javadocs</id>
385 <groupId>org.apache.maven.plugins</groupId>
386 <artifactId>maven-source-plugin</artifactId>
387 <version>2.2.1</version>
390 <id>attach-sources</id>
392 <goal>jar-no-fork</goal>
398 <groupId>org.codehaus.mojo</groupId>
399 <artifactId>cobertura-maven-plugin</artifactId>
400 <version>2.7</version>
403 <format>html</format>
410 <groupId>org.codehaus.gmaven</groupId>
411 <artifactId>gmaven-plugin</artifactId>
412 <version>${gmaven-plugin.version}</version>
415 <phase>validate</phase>
421 <ver>${project.version}</ver>
423 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
425 println 'ver: ' + project.properties['ver'];
426 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
427 project.properties['dockertag1']=project.properties['ver'] + "-latest";
428 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
430 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
431 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
433 println 'docker tag 1: ' + project.properties['dockertag1'];
434 println 'docker tag 2: ' + project.properties['dockertag2'];
441 <groupId>io.fabric8</groupId>
442 <artifactId>docker-maven-plugin</artifactId>
443 <version>${io.fabric8.version}</version>
444 <extensions>true</extensions>
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>
454 <groupId>org.codehaus.mojo</groupId>
455 <artifactId>properties-maven-plugin</artifactId>
456 <version>1.0.0</version>
459 <phase>validate</phase>
461 <goal>read-project-properties</goal>
465 <file>../version.properties</file>
476 <id>onap-plugin-snapshots</id>
477 <url>${onap.nexus.url}${snapshotNexusPath}</url>
479 </pluginRepositories>