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>1.2.3</version>
38 <!--revision can be set in the version.properties file at project root and is loaded by all sub modules-->
39 <revision>${snapshot_version}</revision>
40 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41 <maven.compiler.source>1.8</maven.compiler.source>
42 <maven.compiler.target>1.8</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.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
52 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
53 <sonar.jacoco.reportPaths>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPaths>
54 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
55 <sonar.projectVersion>${project.version}</sonar.projectVersion>
57 <docker.skip.build>false</docker.skip.build>
58 <docker.verbose>true</docker.verbose>
59 <docker.image.root>onap/dmaap/</docker.image.root>
60 <timestamp>${maven.build.timestamp}</timestamp>
61 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
63 <!--dependency version across all modules-->
64 <jetty.version>9.4.14.v20181114</jetty.version>
65 <javax.mail-api.version>1.5.5</javax.mail-api.version>
66 <javax.servlet-api.version>4.0.1</javax.servlet-api.version>
67 <qos.logback.version>1.2.3</qos.logback.version>
68 <aaf-cadi-aaf.version>2.1.10</aaf-cadi-aaf.version>
69 <commons-codec.version>1.10</commons-codec.version>
70 <gmaven-plugin.version>1.5</gmaven-plugin.version>
71 <io.fabric8.version>0.28.0</io.fabric8.version>
72 <docker.apiVersion>1.23</docker.apiVersion>
73 <commons-lang.version>2.4</commons-lang.version>
74 <commons-io.version>2.6</commons-io.version>
75 <httpcore.version>4.4</httpcore.version>
76 <httpclient.version>4.5.3</httpclient.version>
77 <junit-runner.version>0.11</junit-runner.version>
78 <junit.version>4.12</junit.version>
79 <mockito-core.version>1.10.19</mockito-core.version>
80 <powermock.version>1.7.4</powermock.version>
81 <powermock-api-mockito.version>1.7.4</powermock-api-mockito.version>
82 <commons-lang3.version>3.0</commons-lang3.version>
83 <eelf-core.version>1.0.0</eelf-core.version>
84 <json.version>20160810</json.version>
85 <sl4j-api.version>1.7.25</sl4j-api.version>
86 <hamcrest-lib.version>1.3</hamcrest-lib.version>
87 <annotations.version>12.0</annotations.version>
90 <module>datarouter-prov</module>
91 <module>datarouter-node</module>
92 <module>datarouter-subscriber</module>
93 <module>datarouter-docker-compose</module>
95 <dependencyManagement>
98 <groupId>org.hamcrest</groupId>
99 <artifactId>hamcrest-library</artifactId>
100 <version>${hamcrest-lib.version}</version>
104 <groupId>org.slf4j</groupId>
105 <artifactId>slf4j-api</artifactId>
106 <version>${sl4j-api.version}</version>
109 <groupId>commons-codec</groupId>
110 <artifactId>commons-codec</artifactId>
111 <version>${commons-codec.version}</version>
114 <groupId>ch.qos.logback</groupId>
115 <artifactId>logback-classic</artifactId>
116 <version>${qos.logback.version}</version>
117 <scope>compile</scope>
120 <groupId>ch.qos.logback</groupId>
121 <artifactId>logback-core</artifactId>
122 <version>${qos.logback.version}</version>
123 <scope>compile</scope>
126 <groupId>com.intellij</groupId>
127 <artifactId>annotations</artifactId>
128 <version>${annotations.version}</version>
131 <groupId>javax.servlet</groupId>
132 <artifactId>javax.servlet-api</artifactId>
133 <version>${javax.servlet-api.version}</version>
134 <scope>compile</scope>
137 <groupId>javax.mail</groupId>
138 <artifactId>javax.mail-api</artifactId>
139 <version>${javax.mail-api.version}</version>
142 <groupId>org.eclipse.jetty</groupId>
143 <artifactId>jetty-server</artifactId>
144 <version>${jetty.version}</version>
147 <groupId>org.eclipse.jetty</groupId>
148 <artifactId>jetty-continuation</artifactId>
149 <version>${jetty.version}</version>
152 <groupId>org.eclipse.jetty</groupId>
153 <artifactId>jetty-util</artifactId>
154 <version>${jetty.version}</version>
157 <groupId>org.eclipse.jetty</groupId>
158 <artifactId>jetty-servlet</artifactId>
159 <version>${jetty.version}</version>
162 <groupId>org.eclipse.jetty</groupId>
163 <artifactId>jetty-http</artifactId>
164 <version>${jetty.version}</version>
167 <groupId>org.eclipse.jetty</groupId>
168 <artifactId>jetty-io</artifactId>
169 <version>${jetty.version}</version>
172 <groupId>org.eclipse.jetty.cdi</groupId>
173 <artifactId>cdi-websocket</artifactId>
174 <version>${jetty.version}</version>
177 <groupId>org.onap.aaf.authz</groupId>
178 <artifactId>aaf-cadi-core</artifactId>
179 <version>${aaf-cadi-aaf.version}</version>
182 <groupId>commons-io</groupId>
183 <artifactId>commons-io</artifactId>
184 <version>${commons-io.version}</version>
185 <scope>compile</scope>
188 <groupId>org.apache.httpcomponents</groupId>
189 <artifactId>httpcore</artifactId>
190 <version>${httpcore.version}</version>
193 <groupId>org.apache.httpcomponents</groupId>
194 <artifactId>httpclient</artifactId>
195 <version>${httpclient.version}</version>
198 <groupId>org.sonatype.http-testing-harness</groupId>
199 <artifactId>junit-runner</artifactId>
200 <version>${junit-runner.version}</version>
203 <groupId>org.databene</groupId>
204 <artifactId>contiperf</artifactId>
207 <groupId>com.thoughtworks.xstream</groupId>
208 <artifactId>xstream</artifactId>
213 <groupId>junit</groupId>
214 <artifactId>junit</artifactId>
215 <version>${junit.version}</version>
219 <groupId>org.mockito</groupId>
220 <artifactId>mockito-core</artifactId>
221 <version>${mockito-core.version}</version>
225 <groupId>org.powermock</groupId>
226 <artifactId>powermock-api-mockito</artifactId>
227 <version>${powermock-api-mockito.version}</version>
231 <groupId>org.powermock</groupId>
232 <artifactId>powermock-module-junit4</artifactId>
233 <version>${powermock.version}</version>
237 <groupId>org.powermock</groupId>
238 <artifactId>powermock-api-support</artifactId>
239 <version>${powermock.version}</version>
243 <groupId>org.powermock</groupId>
244 <artifactId>powermock-core</artifactId>
245 <version>${powermock.version}</version>
249 <groupId>org.apache.commons</groupId>
250 <artifactId>commons-lang3</artifactId>
251 <version>${commons-lang3.version}</version>
254 <groupId>com.att.eelf</groupId>
255 <artifactId>eelf-core</artifactId>
256 <version>${eelf-core.version}</version>
259 <groupId>org.json</groupId>
260 <artifactId>json</artifactId>
261 <version>${json.version}</version>
264 </dependencyManagement>
268 <groupId>org.sonatype.plugins</groupId>
269 <artifactId>nexus-staging-maven-plugin</artifactId>
272 <groupId>org.apache.maven.plugins</groupId>
273 <artifactId>maven-surefire-plugin</artifactId>
276 <exclude>IntegrationSuite.java</exclude>
281 <groupId>org.codehaus.mojo</groupId>
282 <artifactId>flatten-maven-plugin</artifactId>
283 <version>1.0.1</version>
285 <updatePomFile>true</updatePomFile>
286 <outputDirectory>target</outputDirectory>
291 <phase>process-resources</phase>
299 <artifactId>maven-checkstyle-plugin</artifactId>
302 <id>onap-java-style</id>
304 <consoleOutput>false</consoleOutput>
313 <groupId>org.apache.maven.plugins</groupId>
314 <artifactId>maven-compiler-plugin</artifactId>
315 <version>3.6.0</version>
322 <groupId>org.apache.maven.plugins</groupId>
323 <artifactId>maven-dependency-plugin</artifactId>
324 <version>2.10</version>
327 <id>copy-dependencies</id>
329 <goal>copy-dependencies</goal>
332 <overWriteReleases>false</overWriteReleases>
333 <overWriteSnapshots>false</overWriteSnapshots>
334 <overWriteIfNewer>true</overWriteIfNewer>
340 <groupId>org.apache.maven.plugins</groupId>
341 <artifactId>maven-javadoc-plugin</artifactId>
342 <version>3.0.1</version>
344 <failOnError>false</failOnError>
348 <id>attach-javadocs</id>
356 <groupId>org.apache.maven.plugins</groupId>
357 <artifactId>maven-source-plugin</artifactId>
358 <version>2.2.1</version>
361 <id>attach-sources</id>
363 <goal>jar-no-fork</goal>
369 <groupId>org.codehaus.mojo</groupId>
370 <artifactId>cobertura-maven-plugin</artifactId>
371 <version>2.7</version>
374 <format>html</format>
381 <groupId>org.codehaus.gmaven</groupId>
382 <artifactId>gmaven-plugin</artifactId>
383 <version>${gmaven-plugin.version}</version>
386 <phase>validate</phase>
392 <ver>${project.version}</ver>
394 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
396 println 'ver: ' + project.properties['ver'];
397 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
398 project.properties['dockertag1']=project.properties['ver'] + "-latest";
399 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
401 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
402 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
404 println 'docker tag 1: ' + project.properties['dockertag1'];
405 println 'docker tag 2: ' + project.properties['dockertag2'];
412 <groupId>io.fabric8</groupId>
413 <artifactId>docker-maven-plugin</artifactId>
414 <version>${io.fabric8.version}</version>
416 <skipBuild>${docker.skip.build}</skipBuild>
417 <verbose>${docker.verbose}</verbose>
418 <apiVersion>${docker.apiVersion}</apiVersion>
419 <pullRegistry>${docker.pull.registry}</pullRegistry>
420 <pushRegistry>${docker.push.registry}</pushRegistry>
424 <groupId>org.codehaus.mojo</groupId>
425 <artifactId>properties-maven-plugin</artifactId>
426 <version>1.0.0</version>
429 <phase>validate</phase>
431 <goal>read-project-properties</goal>
435 <file>../version.properties</file>
444 <distributionManagement>
446 <id>ecomp-releases</id>
447 <name>DR Release Repository</name>
448 <url>${onap.nexus.url}${releaseNexusPath}</url>
451 <id>ecomp-snapshots</id>
452 <name>DR Snapshot Repository</name>
453 <url>${onap.nexus.url}${snapshotNexusPath}</url>
454 </snapshotRepository>
457 <url>dav:${onap.nexus.url}${sitePath}</url>
459 </distributionManagement>
462 <id>onap-plugin-snapshots</id>
463 <url>${onap.nexus.url}${snapshotNexusPath}</url>
465 </pluginRepositories>