2 ============LICENSE_START==================================================
4 * ===========================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * Modifications Copyright (C) 2018 Nokia. All rights reserved.
7 * ===========================================================================
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
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * 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====================================================
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
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>
29 <version>${revision}</version>
30 <packaging>pom</packaging>
31 <url>https://docs.onap.org/en/latest/submodules/dmaap/datarouter.git/docs/index.html</url>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
35 <version>3.0.0</version>
38 <!--revision must also be set in the version.properties file at project root-->
39 <revision>2.1.9-SNAPSHOT</revision>
40 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41 <maven.compiler.source>11</maven.compiler.source>
42 <maven.compiler.target>11</maven.compiler.target>
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>
49 <sonar.language>java</sonar.language>
50 <sonar.skip>false</sonar.skip>
51 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
52 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
53 <sonar.projectVersion>${project.version}</sonar.projectVersion>
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>
61 <!--dependency version across all modules-->
62 <jetty.version>9.4.41.v20210516</jetty.version>
63 <javax.mail-api.version>1.5.5</javax.mail-api.version>
64 <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
65 <qos.logback.version>1.2.7</qos.logback.version>
66 <qos.logback.classic.version>1.2.3</qos.logback.classic.version>
67 <aaf-cadi-aaf.version>2.1.15</aaf-cadi-aaf.version>
68 <commons-codec.version>1.15</commons-codec.version>
69 <gmaven-plugin.version>1.5</gmaven-plugin.version>
70 <io.fabric8.version>0.33.0</io.fabric8.version>
71 <docker.apiVersion>2.2.54</docker.apiVersion>
72 <commons-lang.version>2.4</commons-lang.version>
73 <commons-io.version>2.7</commons-io.version>
74 <httpcore.version>4.4</httpcore.version>
75 <httpclient.version>4.5.13</httpclient.version>
76 <junit-runner.version>0.11</junit-runner.version>
77 <junit.version>4.12</junit.version>
78 <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>
81 <commons-lang3.version>3.0</commons-lang3.version>
82 <eelf-core.version>1.0.0</eelf-core.version>
83 <json.version>20210307</json.version>
84 <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>
89 <module>datarouter-prov</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>${jetty.version}</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>9.4.43.v20210629</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>org.onap.aaf.authz</groupId>
186 <artifactId>aaf-cadi-core</artifactId>
187 <version>${aaf-cadi-aaf.version}</version>
190 <groupId>commons-io</groupId>
191 <artifactId>commons-io</artifactId>
192 <version>${commons-io.version}</version>
193 <scope>compile</scope>
196 <groupId>org.apache.httpcomponents</groupId>
197 <artifactId>httpcore</artifactId>
198 <version>${httpcore.version}</version>
201 <groupId>org.apache.httpcomponents</groupId>
202 <artifactId>httpclient</artifactId>
203 <version>${httpclient.version}</version>
206 <groupId>org.sonatype.http-testing-harness</groupId>
207 <artifactId>junit-runner</artifactId>
208 <version>${junit-runner.version}</version>
212 <groupId>org.databene</groupId>
213 <artifactId>contiperf</artifactId>
216 <groupId>com.thoughtworks.xstream</groupId>
217 <artifactId>xstream</artifactId>
222 <groupId>junit</groupId>
223 <artifactId>junit</artifactId>
224 <version>${junit.version}</version>
228 <groupId>org.hamcrest</groupId>
229 <artifactId>hamcrest-all</artifactId>
230 <version>${hamcrest-lib.version}</version>
234 <groupId>org.mockito</groupId>
235 <artifactId>mockito-core</artifactId>
236 <version>${mockito-core.version}</version>
240 <groupId>net.bytebuddy</groupId>
241 <artifactId>byte-buddy</artifactId>
242 <version>${byte-buddy-version}</version>
246 <groupId>net.bytebuddy</groupId>
247 <artifactId>byte-buddy-agent</artifactId>
248 <version>${byte-buddy-version}</version>
252 <groupId>org.objenesis</groupId>
253 <artifactId>objenesis</artifactId>
254 <version>3.1</version>
258 <groupId>org.javassist</groupId>
259 <artifactId>javassist</artifactId>
260 <version>3.27.0-GA</version>
264 <groupId>org.powermock</groupId>
265 <artifactId>powermock-api-mockito2</artifactId>
266 <version>${powermock.version}</version>
269 <groupId>org.powermock</groupId>
270 <artifactId>powermock-module-junit4</artifactId>
271 <version>${powermock.version}</version>
275 <groupId>org.powermock</groupId>
276 <artifactId>powermock-api-support</artifactId>
277 <version>${powermock.version}</version>
281 <groupId>org.powermock</groupId>
282 <artifactId>powermock-core</artifactId>
283 <version>${powermock.version}</version>
287 <groupId>org.powermock</groupId>
288 <artifactId>powermock-module-junit4-rule</artifactId>
289 <version>${powermock.version}</version>
293 </dependencyManagement>
297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-surefire-plugin</artifactId>
301 <exclude>IntegrationSuite.java</exclude>
304 ${surefireArgLine} --illegal-access=permit
309 <groupId>org.apache.maven.plugins</groupId>
310 <artifactId>maven-failsafe-plugin</artifactId>
313 --illegal-access=permit
318 <groupId>org.codehaus.mojo</groupId>
319 <artifactId>flatten-maven-plugin</artifactId>
320 <version>1.0.1</version>
322 <updatePomFile>true</updatePomFile>
323 <outputDirectory>target</outputDirectory>
328 <phase>process-resources</phase>
336 <artifactId>maven-checkstyle-plugin</artifactId>
339 <id>onap-java-style</id>
341 <consoleOutput>false</consoleOutput>
350 <groupId>org.apache.maven.plugins</groupId>
351 <artifactId>maven-compiler-plugin</artifactId>
353 <source>${maven.compiler.source}</source>
354 <target>${maven.compiler.target}</target>
358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-dependency-plugin</artifactId>
360 <version>2.10</version>
363 <id>copy-dependencies</id>
365 <goal>copy-dependencies</goal>
368 <overWriteReleases>false</overWriteReleases>
369 <overWriteSnapshots>false</overWriteSnapshots>
370 <overWriteIfNewer>true</overWriteIfNewer>
376 <groupId>org.apache.maven.plugins</groupId>
377 <artifactId>maven-javadoc-plugin</artifactId>
378 <version>3.3.1</version>
380 <failOnError>false</failOnError>
384 <id>attach-javadocs</id>
392 <groupId>org.apache.maven.plugins</groupId>
393 <artifactId>maven-source-plugin</artifactId>
394 <version>2.2.1</version>
397 <id>attach-sources</id>
399 <goal>jar-no-fork</goal>
405 <groupId>org.codehaus.mojo</groupId>
406 <artifactId>cobertura-maven-plugin</artifactId>
407 <version>2.7</version>
410 <format>html</format>
417 <groupId>org.codehaus.gmaven</groupId>
418 <artifactId>gmaven-plugin</artifactId>
419 <version>${gmaven-plugin.version}</version>
422 <phase>validate</phase>
428 <ver>${project.version}</ver>
430 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
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'];
437 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
438 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
440 println 'docker tag 1: ' + project.properties['dockertag1'];
441 println 'docker tag 2: ' + project.properties['dockertag2'];
448 <groupId>io.fabric8</groupId>
449 <artifactId>docker-maven-plugin</artifactId>
450 <version>${io.fabric8.version}</version>
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>
460 <groupId>org.codehaus.mojo</groupId>
461 <artifactId>properties-maven-plugin</artifactId>
462 <version>1.0.0</version>
465 <phase>validate</phase>
467 <goal>read-project-properties</goal>
471 <file>../version.properties</file>
482 <id>onap-plugin-snapshots</id>
483 <url>${onap.nexus.url}${snapshotNexusPath}</url>
485 </pluginRepositories>