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>1.1.0-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>
41 <datarouter.node.image.name>onap/dmaap/datarouter-node</datarouter.node.image.name>
45 <groupId>com.google.guava</groupId>
46 <artifactId>guava</artifactId>
47 <version>${google.guava.version}</version>
50 <groupId>commons-codec</groupId>
51 <artifactId>commons-codec</artifactId>
52 <version>${commons-codec.version}</version>
55 <groupId>junit</groupId>
56 <artifactId>junit</artifactId>
57 <version>4.10</version>
61 <groupId>org.json</groupId>
62 <artifactId>json</artifactId>
63 <version>20160810</version>
66 <groupId>javax.mail</groupId>
67 <artifactId>javax.mail-api</artifactId>
68 <version>${javax.mail-api.version}</version>
71 <groupId>com.att.eelf</groupId>
72 <artifactId>eelf-core</artifactId>
73 <version>0.0.1</version>
76 <groupId>com.thoughtworks.xstream</groupId>
77 <artifactId>xstream</artifactId>
78 <version>${thoughtworks.version}</version>
81 <groupId>ch.qos.logback</groupId>
82 <artifactId>logback-classic</artifactId>
83 <version>${qos.logback.version}</version>
84 <scope>compile</scope>
87 <groupId>ch.qos.logback</groupId>
88 <artifactId>logback-core</artifactId>
89 <version>${qos.logback.version}</version>
90 <scope>compile</scope>
93 <groupId>org.eclipse.jetty</groupId>
94 <artifactId>jetty-server</artifactId>
95 <version>${jetty.version}</version>
98 <groupId>org.eclipse.jetty</groupId>
99 <artifactId>jetty-continuation</artifactId>
100 <version>${jetty.version}</version>
103 <groupId>org.eclipse.jetty</groupId>
104 <artifactId>jetty-util</artifactId>
105 <version>${jetty.version}</version>
108 <groupId>org.eclipse.jetty</groupId>
109 <artifactId>jetty-deploy</artifactId>
110 <version>${jetty.version}</version>
113 <groupId>org.eclipse.jetty</groupId>
114 <artifactId>jetty-servlet</artifactId>
115 <version>${jetty.version}</version>
118 <groupId>org.eclipse.jetty</groupId>
119 <artifactId>jetty-servlets</artifactId>
120 <version>${jetty.version}</version>
123 <groupId>org.eclipse.jetty</groupId>
124 <artifactId>jetty-http</artifactId>
125 <version>${jetty.version}</version>
128 <groupId>org.eclipse.jetty</groupId>
129 <artifactId>jetty-security</artifactId>
130 <version>${jetty.version}</version>
133 <groupId>org.eclipse.jetty</groupId>
134 <artifactId>jetty-websocket</artifactId>
135 <version>${jetty.websocket.version}</version>
138 <groupId>org.eclipse.jetty</groupId>
139 <artifactId>jetty-io</artifactId>
140 <version>${jetty.version}</version>
143 <groupId>org.apache.commons</groupId>
144 <artifactId>commons-io</artifactId>
145 <version>1.3.2</version>
148 <groupId>commons-lang</groupId>
149 <artifactId>commons-lang</artifactId>
150 <version>2.4</version>
153 <groupId>commons-io</groupId>
154 <artifactId>commons-io</artifactId>
155 <version>2.1</version>
156 <scope>compile</scope>
159 <groupId>org.apache.httpcomponents</groupId>
160 <artifactId>httpcore</artifactId>
161 <version>4.4</version>
164 <groupId>org.mozilla</groupId>
165 <artifactId>rhino</artifactId>
166 <version>1.7R3</version>
169 <groupId>org.apache.james</groupId>
170 <artifactId>apache-mime4j-core</artifactId>
171 <version>0.7</version>
174 <groupId>org.apache.httpcomponents</groupId>
175 <artifactId>httpclient</artifactId>
176 <version>4.5.3</version>
179 <groupId>org.sonatype.http-testing-harness</groupId>
180 <artifactId>junit-runner</artifactId>
181 <version>0.11</version>
184 <groupId>org.databene</groupId>
185 <artifactId>contiperf</artifactId>
190 <groupId>log4j</groupId>
191 <artifactId>log4j</artifactId>
192 <version>1.2.17</version>
193 <scope>compile</scope>
196 <groupId>org.mockito</groupId>
197 <artifactId>mockito-core</artifactId>
198 <version>1.10.19</version>
202 <groupId>org.powermock</groupId>
203 <artifactId>powermock-module-junit4</artifactId>
204 <version>1.6.4</version>
208 <groupId>org.powermock</groupId>
209 <artifactId>powermock-api-mockito</artifactId>
210 <version>1.6.4</version>
214 <groupId>org.apache.commons</groupId>
215 <artifactId>commons-lang3</artifactId>
216 <version>3.0</version>
223 <skipDockerBuild>false</skipDockerBuild>
224 <skipDockerTag>false</skipDockerTag>
225 <skipTests>true</skipTests>
230 <groupId>com.spotify</groupId>
231 <artifactId>docker-maven-plugin</artifactId>
232 <version>${docker.maven.plugin.version}</version>
234 <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.node.image.name}</imageName>
235 <baseImage>java:8</baseImage>
236 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
237 <skipDockerBuild>false</skipDockerBuild>
239 <imageTag>${project.version}</imageTag>
240 <imageTag>latest</imageTag>
242 <forceTags>true</forceTags>
243 <entryPoint>["/startup.sh", "start"]</entryPoint>
246 <targetPath>/opt</targetPath>
247 <directory>${project.build.directory}/opt</directory>
250 <targetPath>/</targetPath>
251 <directory>${docker.location}</directory>
252 <include>startup.sh</include>
256 <run>chmod 0700 /startup.sh</run>
259 <expose>8080</expose>
260 <expose>8443</expose>
270 <finalName>datarouter-node</finalName>
273 <directory>src/main/resources</directory>
274 <filtering>true</filtering>
276 <include>**/*.properties</include>
280 <directory>src/main/resources</directory>
281 <filtering>true</filtering>
283 <include>**/EelfMessages.properties</include>
287 <directory>src/main/resources</directory>
288 <filtering>true</filtering>
290 <include>**/log4j.properties</include>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-compiler-plugin</artifactId>
302 <version>3.6.0</version>
305 <artifactId>maven-assembly-plugin</artifactId>
306 <version>2.4</version>
309 <descriptorRef>jar-with-dependencies</descriptorRef>
311 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
314 <addClasspath>true</addClasspath>
315 <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass>
321 <id>make-assembly</id>
322 <!-- this is used for inheritance merges -->
323 <phase>package</phase>
324 <!-- bind to the packaging phase -->
332 <groupId>org.apache.maven.plugins</groupId>
333 <artifactId>maven-resources-plugin</artifactId>
334 <version>2.7</version>
337 <id>copy-docker-file</id>
338 <phase>package</phase>
340 <goal>copy-resources</goal>
343 <outputDirectory>${docker.location}</outputDirectory>
344 <overwrite>true</overwrite>
347 <directory>${basedir}/src/main/resources/docker</directory>
348 <filtering>true</filtering>
350 <include>**/*</include>
357 <id>copy-resources</id>
358 <phase>validate</phase>
360 <goal>copy-resources</goal>
363 <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
366 <directory>${basedir}/src/main/resources</directory>
368 <include>misc/**</include>
369 <include>**/**</include>
376 <id>copy-resources-1</id>
377 <phase>validate</phase>
379 <goal>copy-resources</goal>
382 <outputDirectory>${basedir}/target/opt/app/datartr/aaf_certs</outputDirectory>
385 <directory>${basedir}/aaf_certs</directory>
387 <include>misc/**</include>
388 <include>**/**</include>
397 <groupId>org.apache.maven.plugins</groupId>
398 <artifactId>maven-dependency-plugin</artifactId>
399 <version>2.10</version>
402 <id>copy-dependencies</id>
403 <phase>package</phase>
405 <goal>copy-dependencies</goal>
408 <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
409 <overWriteReleases>false</overWriteReleases>
410 <overWriteSnapshots>false</overWriteSnapshots>
411 <overWriteIfNewer>true</overWriteIfNewer>
417 <groupId>org.apache.maven.plugins</groupId>
418 <artifactId>maven-javadoc-plugin</artifactId>
420 <failOnError>false</failOnError>
424 <id>attach-javadocs</id>
432 <groupId>org.apache.maven.plugins</groupId>
433 <artifactId>maven-source-plugin</artifactId>
434 <version>2.2.1</version>
437 <id>attach-sources</id>
439 <goal>jar-no-fork</goal>
445 <groupId>org.codehaus.mojo</groupId>
446 <artifactId>cobertura-maven-plugin</artifactId>
447 <version>2.7</version>
450 <format>html</format>
457 <groupId>org.sonatype.plugins</groupId>
458 <artifactId>nexus-staging-maven-plugin</artifactId>
459 <version>1.6.7</version>
460 <extensions>true</extensions>
462 <nexusUrl>${onap.nexus.url}</nexusUrl>
463 <stagingProfileId>176c31dfe190a</stagingProfileId>
464 <serverId>ecomp-staging</serverId>
468 <groupId>org.jacoco</groupId>
469 <artifactId>jacoco-maven-plugin</artifactId>
470 <version>${jacoco.version}</version>
473 <exclude>**/gen/**</exclude>
474 <exclude>**/generated-sources/**</exclude>
475 <exclude>**/yang-gen/**</exclude>
476 <exclude>**/pax/**</exclude>
481 <id>pre-unit-test</id>
483 <goal>prepare-agent</goal>
486 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
487 <propertyName>surefireArgLine</propertyName>
491 <id>post-unit-test</id>
497 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
498 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
502 <id>pre-integration-test</id>
503 <phase>pre-integration-test</phase>
505 <goal>prepare-agent</goal>
508 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
509 <propertyName>failsafeArgLine</propertyName>
513 <id>post-integration-test</id>
514 <phase>post-integration-test</phase>
519 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
520 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>