2 ============LICENSE_START==================================================
4 * ===========================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * ===========================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END====================================================
20 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 <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">
24 <modelVersion>4.0.0</modelVersion>
26 <groupId>org.onap.dmaap.datarouter</groupId>
27 <artifactId>parent</artifactId>
28 <version>1.0.1-SNAPSHOT</version>
29 <relativePath>../pom.xml</relativePath>
31 <artifactId>datarouter-node</artifactId>
32 <packaging>jar</packaging>
33 <name>datarouter-node</name>
34 <url>https://github.com/att/DMAAP_DATAROUTER</url>
36 <sonar.skip>false</sonar.skip>
37 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
38 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
39 <docker.location>${basedir}/target/${artifactId}</docker.location>
40 <datarouter.node.image.name>onap/dmaap/datarouter-node</datarouter.node.image.name>
44 <groupId>junit</groupId>
45 <artifactId>junit</artifactId>
46 <version>4.10</version>
50 <groupId>org.json</groupId>
51 <artifactId>json</artifactId>
52 <version>20160810</version>
55 <groupId>javax.mail</groupId>
56 <artifactId>javax.mail-api</artifactId>
57 <version>1.5.1</version>
60 <groupId>com.att.eelf</groupId>
61 <artifactId>eelf-core</artifactId>
62 <version>0.0.1</version>
65 <groupId>com.thoughtworks.xstream</groupId>
66 <artifactId>xstream</artifactId>
67 <version>${thoughtworks.version}</version>
70 <groupId>ch.qos.logback</groupId>
71 <artifactId>logback-classic</artifactId>
72 <version>1.2.0</version>
73 <scope>compile</scope>
76 <groupId>ch.qos.logback</groupId>
77 <artifactId>logback-core</artifactId>
78 <version>1.2.0</version>
79 <scope>compile</scope>
82 <groupId>org.eclipse.jetty</groupId>
83 <artifactId>jetty-server</artifactId>
84 <version>${jetty.version}</version>
87 <groupId>org.eclipse.jetty</groupId>
88 <artifactId>jetty-continuation</artifactId>
89 <version>${jetty.version}</version>
92 <groupId>org.eclipse.jetty</groupId>
93 <artifactId>jetty-util</artifactId>
94 <version>${jetty.version}</version>
97 <groupId>org.eclipse.jetty</groupId>
98 <artifactId>jetty-deploy</artifactId>
99 <version>${jetty.version}</version>
102 <groupId>org.eclipse.jetty</groupId>
103 <artifactId>jetty-servlet</artifactId>
104 <version>${jetty.version}</version>
107 <groupId>org.eclipse.jetty</groupId>
108 <artifactId>jetty-servlets</artifactId>
109 <version>${jetty.version}</version>
112 <groupId>org.eclipse.jetty</groupId>
113 <artifactId>jetty-http</artifactId>
114 <version>${jetty.version}</version>
117 <groupId>org.eclipse.jetty</groupId>
118 <artifactId>jetty-security</artifactId>
119 <version>${jetty.version}</version>
122 <groupId>org.eclipse.jetty</groupId>
123 <artifactId>jetty-websocket</artifactId>
124 <version>${jetty.websocket.version}</version>
127 <groupId>org.eclipse.jetty</groupId>
128 <artifactId>jetty-io</artifactId>
129 <version>${jetty.version}</version>
132 <groupId>org.apache.commons</groupId>
133 <artifactId>commons-io</artifactId>
134 <version>1.3.2</version>
137 <groupId>commons-lang</groupId>
138 <artifactId>commons-lang</artifactId>
139 <version>2.4</version>
142 <groupId>commons-io</groupId>
143 <artifactId>commons-io</artifactId>
144 <version>2.1</version>
145 <scope>compile</scope>
148 <groupId>org.apache.httpcomponents</groupId>
149 <artifactId>httpcore</artifactId>
150 <version>4.4</version>
153 <groupId>commons-codec</groupId>
154 <artifactId>commons-codec</artifactId>
155 <version>1.6</version>
158 <groupId>org.mozilla</groupId>
159 <artifactId>rhino</artifactId>
160 <version>1.7R3</version>
163 <groupId>org.apache.james</groupId>
164 <artifactId>apache-mime4j-core</artifactId>
165 <version>0.7</version>
168 <groupId>org.apache.httpcomponents</groupId>
169 <artifactId>httpclient</artifactId>
170 <version>4.5.3</version>
173 <groupId>org.sonatype.http-testing-harness</groupId>
174 <artifactId>junit-runner</artifactId>
175 <version>0.11</version>
178 <groupId>org.databene</groupId>
179 <artifactId>contiperf</artifactId>
184 <groupId>log4j</groupId>
185 <artifactId>log4j</artifactId>
186 <version>1.2.17</version>
187 <scope>compile</scope>
190 <groupId>junit</groupId>
191 <artifactId>junit</artifactId>
192 <version>4.10</version>
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>1.0.0</version>
234 <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.node.image.name}</imageName>
235 <dockerDirectory>${docker.location}</dockerDirectory>
236 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
237 <skipDockerBuild>false</skipDockerBuild>
239 <imageTag>${project.version}</imageTag>
240 <imageTag>latest</imageTag>
242 <forceTags>true</forceTags>
245 <targetPath>/</targetPath>
246 <directory>${project.basedir}</directory>
248 <exclude>target/**/*</exclude>
249 <exclude>pom.xml</exclude>
254 <targetPath>/</targetPath>
255 <directory>${project.build.directory}</directory>
256 <include>**/**</include>
267 <finalName>datarouter-node</finalName>
270 <directory>src/main/resources</directory>
271 <filtering>true</filtering>
273 <include>**/*.properties</include>
277 <directory>src/main/resources</directory>
278 <filtering>true</filtering>
280 <include>**/EelfMessages.properties</include>
284 <directory>src/main/resources</directory>
285 <filtering>true</filtering>
287 <include>**/log4j.properties</include>
293 <groupId>org.apache.maven.plugins</groupId>
294 <artifactId>maven-compiler-plugin</artifactId>
299 <version>3.6.0</version>
302 <artifactId>maven-assembly-plugin</artifactId>
303 <version>2.4</version>
306 <descriptorRef>jar-with-dependencies</descriptorRef>
308 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
311 <addClasspath>true</addClasspath>
312 <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass>
318 <id>make-assembly</id>
319 <!-- this is used for inheritance merges -->
320 <phase>package</phase>
321 <!-- bind to the packaging phase -->
329 <groupId>org.apache.maven.plugins</groupId>
330 <artifactId>maven-resources-plugin</artifactId>
331 <version>2.7</version>
334 <id>copy-docker-file</id>
335 <phase>package</phase>
337 <goal>copy-resources</goal>
340 <outputDirectory>${docker.location}</outputDirectory>
341 <overwrite>true</overwrite>
344 <directory>${basedir}/src/main/resources/docker</directory>
345 <filtering>true</filtering>
347 <include>**/*</include>
354 <id>copy-resources</id>
355 <phase>validate</phase>
357 <goal>copy-resources</goal>
360 <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
363 <directory>${basedir}/src/main/resources</directory>
365 <include>misc/**</include>
366 <include>**/**</include>
373 <id>copy-resources-1</id>
374 <phase>validate</phase>
376 <goal>copy-resources</goal>
379 <outputDirectory>${basedir}/target/opt/app/datartr/aaf_certs</outputDirectory>
382 <directory>${basedir}/aaf_certs</directory>
384 <include>misc/**</include>
385 <include>**/**</include>
394 <groupId>org.apache.maven.plugins</groupId>
395 <artifactId>maven-dependency-plugin</artifactId>
396 <version>2.10</version>
399 <id>copy-dependencies</id>
400 <phase>package</phase>
402 <goal>copy-dependencies</goal>
405 <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
406 <overWriteReleases>false</overWriteReleases>
407 <overWriteSnapshots>false</overWriteSnapshots>
408 <overWriteIfNewer>true</overWriteIfNewer>
414 <groupId>org.apache.maven.plugins</groupId>
415 <artifactId>maven-javadoc-plugin</artifactId>
417 <failOnError>false</failOnError>
421 <id>attach-javadocs</id>
429 <groupId>org.apache.maven.plugins</groupId>
430 <artifactId>maven-source-plugin</artifactId>
431 <version>2.2.1</version>
434 <id>attach-sources</id>
436 <goal>jar-no-fork</goal>
442 <groupId>org.codehaus.mojo</groupId>
443 <artifactId>cobertura-maven-plugin</artifactId>
444 <version>2.7</version>
447 <format>html</format>
454 <groupId>org.sonatype.plugins</groupId>
455 <artifactId>nexus-staging-maven-plugin</artifactId>
456 <version>1.6.7</version>
457 <extensions>true</extensions>
459 <nexusUrl>${onap.nexus.url}</nexusUrl>
460 <stagingProfileId>176c31dfe190a</stagingProfileId>
461 <serverId>ecomp-staging</serverId>
465 <groupId>org.jacoco</groupId>
466 <artifactId>jacoco-maven-plugin</artifactId>
467 <version>${jacoco.version}</version>
470 <exclude>**/gen/**</exclude>
471 <exclude>**/generated-sources/**</exclude>
472 <exclude>**/yang-gen/**</exclude>
473 <exclude>**/pax/**</exclude>
478 <id>pre-unit-test</id>
480 <goal>prepare-agent</goal>
483 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
484 <propertyName>surefireArgLine</propertyName>
488 <id>post-unit-test</id>
494 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
495 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
499 <id>pre-integration-test</id>
500 <phase>pre-integration-test</phase>
502 <goal>prepare-agent</goal>
505 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
506 <propertyName>failsafeArgLine</propertyName>
510 <id>post-integration-test</id>
511 <phase>post-integration-test</phase>
516 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
517 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>