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>
27 <groupId>org.onap.dmaap.datarouter</groupId>
28 <artifactId>parent</artifactId>
29 <version>2.0.2-SNAPSHOT</version>
30 <relativePath>../pom.xml</relativePath>
32 <artifactId>datarouter-node</artifactId>
33 <packaging>jar</packaging>
34 <name>datarouter-node</name>
35 <url>https://github.com/att/DMAAP_DATAROUTER</url>
37 <sonar.skip>false</sonar.skip>
38 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
39 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
40 <docker.location>${basedir}/target/${artifactId}</docker.location>
42 <timestamp>${maven.build.timestamp}</timestamp>
43 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
45 <datarouter.node.image.name>onap/dmaap/datarouter-node</datarouter.node.image.name>
49 <groupId>com.google.guava</groupId>
50 <artifactId>guava</artifactId>
51 <version>${google.guava.version}</version>
54 <groupId>commons-codec</groupId>
55 <artifactId>commons-codec</artifactId>
56 <version>${commons-codec.version}</version>
59 <groupId>junit</groupId>
60 <artifactId>junit</artifactId>
61 <version>4.10</version>
65 <groupId>org.json</groupId>
66 <artifactId>json</artifactId>
67 <version>20160810</version>
70 <groupId>javax.mail</groupId>
71 <artifactId>javax.mail-api</artifactId>
72 <version>${javax.mail-api.version}</version>
75 <groupId>com.att.eelf</groupId>
76 <artifactId>eelf-core</artifactId>
77 <version>0.0.1</version>
80 <groupId>com.thoughtworks.xstream</groupId>
81 <artifactId>xstream</artifactId>
82 <version>${thoughtworks.version}</version>
85 <groupId>ch.qos.logback</groupId>
86 <artifactId>logback-classic</artifactId>
87 <version>${qos.logback.version}</version>
88 <scope>compile</scope>
91 <groupId>ch.qos.logback</groupId>
92 <artifactId>logback-core</artifactId>
93 <version>${qos.logback.version}</version>
94 <scope>compile</scope>
97 <groupId>org.eclipse.jetty</groupId>
98 <artifactId>jetty-server</artifactId>
99 <version>${jetty.version}</version>
102 <groupId>org.eclipse.jetty</groupId>
103 <artifactId>jetty-continuation</artifactId>
104 <version>${jetty.version}</version>
107 <groupId>org.eclipse.jetty</groupId>
108 <artifactId>jetty-util</artifactId>
109 <version>${jetty.version}</version>
112 <groupId>org.eclipse.jetty</groupId>
113 <artifactId>jetty-deploy</artifactId>
114 <version>${jetty.version}</version>
117 <groupId>org.eclipse.jetty</groupId>
118 <artifactId>jetty-servlet</artifactId>
119 <version>${jetty.version}</version>
122 <groupId>org.eclipse.jetty</groupId>
123 <artifactId>jetty-servlets</artifactId>
124 <version>${jetty.version}</version>
127 <groupId>org.eclipse.jetty</groupId>
128 <artifactId>jetty-http</artifactId>
129 <version>${jetty.version}</version>
132 <groupId>org.eclipse.jetty</groupId>
133 <artifactId>jetty-security</artifactId>
134 <version>${jetty.version}</version>
137 <groupId>org.eclipse.jetty</groupId>
138 <artifactId>jetty-websocket</artifactId>
139 <version>${jetty.websocket.version}</version>
142 <groupId>org.eclipse.jetty</groupId>
143 <artifactId>jetty-io</artifactId>
144 <version>${jetty.version}</version>
147 <groupId>org.apache.commons</groupId>
148 <artifactId>commons-io</artifactId>
149 <version>1.3.2</version>
152 <groupId>commons-lang</groupId>
153 <artifactId>commons-lang</artifactId>
154 <version>2.4</version>
157 <groupId>commons-io</groupId>
158 <artifactId>commons-io</artifactId>
159 <version>2.1</version>
160 <scope>compile</scope>
163 <groupId>org.apache.httpcomponents</groupId>
164 <artifactId>httpcore</artifactId>
165 <version>4.4</version>
168 <groupId>org.mozilla</groupId>
169 <artifactId>rhino</artifactId>
170 <version>1.7R3</version>
173 <groupId>org.apache.james</groupId>
174 <artifactId>apache-mime4j-core</artifactId>
175 <version>0.7</version>
178 <groupId>org.apache.httpcomponents</groupId>
179 <artifactId>httpclient</artifactId>
180 <version>4.5.3</version>
183 <groupId>org.sonatype.http-testing-harness</groupId>
184 <artifactId>junit-runner</artifactId>
185 <version>0.11</version>
188 <groupId>org.databene</groupId>
189 <artifactId>contiperf</artifactId>
194 <groupId>log4j</groupId>
195 <artifactId>log4j</artifactId>
196 <version>1.2.17</version>
197 <scope>compile</scope>
200 <groupId>org.mockito</groupId>
201 <artifactId>mockito-core</artifactId>
202 <version>1.10.19</version>
206 <groupId>org.powermock</groupId>
207 <artifactId>powermock-module-junit4</artifactId>
208 <version>1.6.4</version>
212 <groupId>org.powermock</groupId>
213 <artifactId>powermock-api-mockito</artifactId>
214 <version>1.6.4</version>
218 <groupId>org.apache.commons</groupId>
219 <artifactId>commons-lang3</artifactId>
220 <version>3.0</version>
223 <groupId>org.onap.aaf.authz</groupId>
224 <artifactId>aaf-cadi-aaf</artifactId>
225 <version>${aaf-cadi-aaf.version}</version>
232 <skipDockerBuild>false</skipDockerBuild>
233 <skipDockerTag>false</skipDockerTag>
234 <skipTests>true</skipTests>
239 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
241 <groupId>org.codehaus.groovy.maven</groupId>
242 <artifactId>gmaven-plugin</artifactId>
245 <phase>validate</phase>
251 <ver>${project.version}</ver>
252 <timestamp>${maven.build.timestamp}</timestamp>
255 println 'ver: ' + project.properties['ver'];
256 if ( project.properties['ver'].endsWith("-SNAPSHOT") ) {
257 project.properties['dockertag1']=project.properties['ver'] + "-latest";
258 project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp'];
260 project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest";
261 project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
263 println 'docker tag 1: ' + project.properties['dockertag1'];
264 println 'docker tag 2: ' + project.properties['dockertag2'];
271 <groupId>io.fabric8</groupId>
272 <artifactId>docker-maven-plugin</artifactId>
273 <version>0.28.0</version>
275 <verbose>${docker.verbose}</verbose>
276 <apiVersion>${docker.apiVersion}</apiVersion>
277 <pullRegistry>${docker.pull.registry}</pullRegistry>
278 <pushRegistry>${docker.push.registry}</pushRegistry>
281 <name>${datarouter.node.image.name}</name>
283 <cleanup>try</cleanup>
284 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
285 <dockerFile>Dockerfile</dockerFile>
287 <tag>${dockertag1}</tag>
288 <tag>${dockertag2}</tag>
296 <id>generate-images</id>
297 <phase>install</phase>
304 <phase>deploy</phase>
317 <finalName>datarouter-node</finalName>
320 <directory>src/main/resources</directory>
321 <filtering>true</filtering>
323 <include>**/*.properties</include>
327 <directory>src/main/resources</directory>
328 <filtering>true</filtering>
330 <include>**/EelfMessages.properties</include>
334 <directory>src/main/resources</directory>
335 <filtering>true</filtering>
337 <include>**/log4j.properties</include>
343 <groupId>org.apache.maven.plugins</groupId>
344 <artifactId>maven-compiler-plugin</artifactId>
349 <version>3.6.0</version>
352 <artifactId>maven-assembly-plugin</artifactId>
353 <version>2.4</version>
356 <descriptorRef>jar-with-dependencies</descriptorRef>
358 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/lib</outputDirectory>
361 <addClasspath>true</addClasspath>
362 <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass>
368 <id>make-assembly</id>
369 <!-- this is used for inheritance merges -->
370 <phase>package</phase>
371 <!-- bind to the packaging phase -->
379 <groupId>org.apache.maven.plugins</groupId>
380 <artifactId>maven-resources-plugin</artifactId>
381 <version>2.7</version>
384 <id>copy-docker-file</id>
385 <phase>validate</phase>
387 <goal>copy-resources</goal>
390 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
391 <overwrite>true</overwrite>
394 <directory>${basedir}/src/main/resources/docker</directory>
395 <filtering>true</filtering>
397 <include>**/*</include>
404 <id>copy-startup-script</id>
405 <phase>validate</phase>
407 <goal>copy-resources</goal>
410 <outputDirectory>${basedir}/target/docker-stage/opt</outputDirectory>
411 <overwrite>true</overwrite>
414 <directory>${basedir}/src/main/resources/docker</directory>
415 <filtering>true</filtering>
417 <include>startup.sh</include>
424 <id>copy-resources-2</id>
425 <phase>validate</phase>
427 <goal>copy-resources</goal>
430 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/etc</outputDirectory>
433 <directory>${basedir}/src/main/resources</directory>
435 <include>misc/**</include>
436 <include>**/**</include>
443 <id>copy-resources-3</id>
444 <phase>validate</phase>
446 <goal>copy-resources</goal>
449 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr</outputDirectory>
452 <directory>${basedir}/data</directory>
454 <include>misc/**</include>
455 <include>**/**</include>
462 <id>copy-resources-4</id>
463 <phase>validate</phase>
465 <goal>copy-resources</goal>
468 <outputDirectory>${basedir}/target/docker-stage/opt/app/datartr/aaf_certs</outputDirectory>
471 <directory>${basedir}/aaf_certs</directory>
473 <include>misc/**</include>
474 <include>**/**</include>
483 <groupId>org.apache.maven.plugins</groupId>
484 <artifactId>maven-dependency-plugin</artifactId>
485 <version>2.10</version>
488 <id>copy-dependencies</id>
489 <phase>package</phase>
491 <goal>copy-dependencies</goal>
494 <outputDirectory>${project.build.directory}/docker-stage/opt/app/datartr/lib</outputDirectory>
495 <overWriteReleases>false</overWriteReleases>
496 <overWriteSnapshots>false</overWriteSnapshots>
497 <overWriteIfNewer>true</overWriteIfNewer>
503 <groupId>org.apache.maven.plugins</groupId>
504 <artifactId>maven-javadoc-plugin</artifactId>
506 <failOnError>false</failOnError>
510 <id>attach-javadocs</id>
518 <groupId>org.apache.maven.plugins</groupId>
519 <artifactId>maven-source-plugin</artifactId>
520 <version>2.2.1</version>
523 <id>attach-sources</id>
525 <goal>jar-no-fork</goal>
531 <groupId>org.codehaus.mojo</groupId>
532 <artifactId>cobertura-maven-plugin</artifactId>
533 <version>2.7</version>
536 <format>html</format>
543 <groupId>org.sonatype.plugins</groupId>
544 <artifactId>nexus-staging-maven-plugin</artifactId>
545 <version>1.6.7</version>
546 <extensions>true</extensions>
548 <nexusUrl>${onap.nexus.url}</nexusUrl>
549 <stagingProfileId>176c31dfe190a</stagingProfileId>
550 <serverId>ecomp-staging</serverId>
554 <groupId>org.jacoco</groupId>
555 <artifactId>jacoco-maven-plugin</artifactId>
556 <version>${jacoco.version}</version>
559 <exclude>**/gen/**</exclude>
560 <exclude>**/generated-sources/**</exclude>
561 <exclude>**/yang-gen/**</exclude>
562 <exclude>**/pax/**</exclude>
567 <id>pre-unit-test</id>
569 <goal>prepare-agent</goal>
572 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
573 <propertyName>surefireArgLine</propertyName>
577 <id>post-unit-test</id>
583 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
584 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
588 <id>pre-integration-test</id>
589 <phase>pre-integration-test</phase>
591 <goal>prepare-agent</goal>
594 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
595 <propertyName>failsafeArgLine</propertyName>
599 <id>post-integration-test</id>
600 <phase>post-integration-test</phase>
605 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
606 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>