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.6-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.20.v20190813</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.3</qos.logback.version>
66 <aaf-cadi-aaf.version>2.1.15</aaf-cadi-aaf.version>
67 <commons-codec.version>1.13</commons-codec.version>
68 <gmaven-plugin.version>1.5</gmaven-plugin.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.3</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>20160810</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-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.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>${jetty.version}</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>org.onap.aaf.authz</groupId>
185 <artifactId>aaf-cadi-core</artifactId>
186 <version>${aaf-cadi-aaf.version}</version>
189 <groupId>commons-io</groupId>
190 <artifactId>commons-io</artifactId>
191 <version>${commons-io.version}</version>
192 <scope>compile</scope>
195 <groupId>org.apache.httpcomponents</groupId>
196 <artifactId>httpcore</artifactId>
197 <version>${httpcore.version}</version>
200 <groupId>org.apache.httpcomponents</groupId>
201 <artifactId>httpclient</artifactId>
202 <version>${httpclient.version}</version>
205 <groupId>org.sonatype.http-testing-harness</groupId>
206 <artifactId>junit-runner</artifactId>
207 <version>${junit-runner.version}</version>
211 <groupId>org.databene</groupId>
212 <artifactId>contiperf</artifactId>
215 <groupId>com.thoughtworks.xstream</groupId>
216 <artifactId>xstream</artifactId>
221 <groupId>junit</groupId>
222 <artifactId>junit</artifactId>
223 <version>${junit.version}</version>
227 <groupId>org.hamcrest</groupId>
228 <artifactId>hamcrest-all</artifactId>
229 <version>${hamcrest-lib.version}</version>
233 <groupId>org.mockito</groupId>
234 <artifactId>mockito-core</artifactId>
235 <version>${mockito-core.version}</version>
239 <groupId>net.bytebuddy</groupId>
240 <artifactId>byte-buddy</artifactId>
241 <version>${byte-buddy-version}</version>
245 <groupId>net.bytebuddy</groupId>
246 <artifactId>byte-buddy-agent</artifactId>
247 <version>${byte-buddy-version}</version>
251 <groupId>org.objenesis</groupId>
252 <artifactId>objenesis</artifactId>
253 <version>3.1</version>
257 <groupId>org.javassist</groupId>
258 <artifactId>javassist</artifactId>
259 <version>3.27.0-GA</version>
263 <groupId>org.powermock</groupId>
264 <artifactId>powermock-api-mockito2</artifactId>
265 <version>${powermock.version}</version>
268 <groupId>org.powermock</groupId>
269 <artifactId>powermock-module-junit4</artifactId>
270 <version>${powermock.version}</version>
274 <groupId>org.powermock</groupId>
275 <artifactId>powermock-api-support</artifactId>
276 <version>${powermock.version}</version>
280 <groupId>org.powermock</groupId>
281 <artifactId>powermock-core</artifactId>
282 <version>${powermock.version}</version>
286 <groupId>org.powermock</groupId>
287 <artifactId>powermock-module-junit4-rule</artifactId>
288 <version>${powermock.version}</version>
292 </dependencyManagement>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-surefire-plugin</artifactId>
300 <exclude>IntegrationSuite.java</exclude>
303 ${surefireArgLine} --illegal-access=permit
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-failsafe-plugin</artifactId>
312 --illegal-access=permit
317 <groupId>org.codehaus.mojo</groupId>
318 <artifactId>flatten-maven-plugin</artifactId>
319 <version>1.0.1</version>
321 <updatePomFile>true</updatePomFile>
322 <outputDirectory>target</outputDirectory>
327 <phase>process-resources</phase>
335 <artifactId>maven-checkstyle-plugin</artifactId>
338 <id>onap-java-style</id>
340 <consoleOutput>false</consoleOutput>
349 <groupId>org.apache.maven.plugins</groupId>
350 <artifactId>maven-compiler-plugin</artifactId>
352 <source>${maven.compiler.source}</source>
353 <target>${maven.compiler.target}</target>
357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-dependency-plugin</artifactId>
359 <version>2.10</version>
362 <id>copy-dependencies</id>
364 <goal>copy-dependencies</goal>
367 <overWriteReleases>false</overWriteReleases>
368 <overWriteSnapshots>false</overWriteSnapshots>
369 <overWriteIfNewer>true</overWriteIfNewer>
375 <groupId>org.apache.maven.plugins</groupId>
376 <artifactId>maven-javadoc-plugin</artifactId>
377 <version>3.2.0</version>
379 <failOnError>false</failOnError>
383 <id>attach-javadocs</id>
391 <groupId>org.apache.maven.plugins</groupId>
392 <artifactId>maven-source-plugin</artifactId>
393 <version>2.2.1</version>
396 <id>attach-sources</id>
398 <goal>jar-no-fork</goal>
404 <groupId>org.codehaus.mojo</groupId>
405 <artifactId>cobertura-maven-plugin</artifactId>
406 <version>2.7</version>
409 <format>html</format>
416 <groupId>org.codehaus.gmaven</groupId>
417 <artifactId>gmaven-plugin</artifactId>
418 <version>${gmaven-plugin.version}</version>
421 <phase>validate</phase>
427 <ver>${project.version}</ver>
429 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
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'];
436 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
437 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
439 println 'docker tag 1: ' + project.properties['dockertag1'];
440 println 'docker tag 2: ' + project.properties['dockertag2'];
447 <groupId>io.fabric8</groupId>
448 <artifactId>docker-maven-plugin</artifactId>
449 <version>${io.fabric8.version}</version>
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>
459 <groupId>org.codehaus.mojo</groupId>
460 <artifactId>properties-maven-plugin</artifactId>
461 <version>1.0.0</version>
464 <phase>validate</phase>
466 <goal>read-project-properties</goal>
470 <file>../version.properties</file>
481 <id>onap-plugin-snapshots</id>
482 <url>${onap.nexus.url}${snapshotNexusPath}</url>
484 </pluginRepositories>