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>3.8.1</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>
194 <skipDockerBuild>false</skipDockerBuild>
195 <skipDockerTag>false</skipDockerTag>
196 <skipTests>true</skipTests>
201 <groupId>com.spotify</groupId>
202 <artifactId>docker-maven-plugin</artifactId>
203 <version>1.0.0</version>
205 <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.node.image.name}</imageName>
206 <dockerDirectory>${docker.location}</dockerDirectory>
207 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
208 <skipDockerBuild>false</skipDockerBuild>
210 <imageTag>${project.version}</imageTag>
211 <imageTag>latest</imageTag>
213 <forceTags>true</forceTags>
216 <targetPath>/</targetPath>
217 <directory>${project.basedir}</directory>
219 <exclude>target/**/*</exclude>
220 <exclude>pom.xml</exclude>
225 <targetPath>/</targetPath>
226 <directory>${project.build.directory}</directory>
227 <include>**/**</include>
238 <finalName>datarouter-node</finalName>
241 <directory>src/main/resources</directory>
242 <filtering>true</filtering>
244 <include>**/*.properties</include>
248 <directory>src/main/resources</directory>
249 <filtering>true</filtering>
251 <include>**/EelfMessages.properties</include>
255 <directory>src/main/resources</directory>
256 <filtering>true</filtering>
258 <include>**/log4j.properties</include>
264 <groupId>org.apache.maven.plugins</groupId>
265 <artifactId>maven-compiler-plugin</artifactId>
270 <version>3.6.0</version>
273 <artifactId>maven-assembly-plugin</artifactId>
274 <version>2.4</version>
277 <descriptorRef>jar-with-dependencies</descriptorRef>
279 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
282 <addClasspath>true</addClasspath>
283 <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass>
289 <id>make-assembly</id>
290 <!-- this is used for inheritance merges -->
291 <phase>package</phase>
292 <!-- bind to the packaging phase -->
300 <groupId>org.apache.maven.plugins</groupId>
301 <artifactId>maven-resources-plugin</artifactId>
302 <version>2.7</version>
305 <id>copy-docker-file</id>
306 <phase>package</phase>
308 <goal>copy-resources</goal>
311 <outputDirectory>${docker.location}</outputDirectory>
312 <overwrite>true</overwrite>
315 <directory>${basedir}/src/main/resources/docker</directory>
316 <filtering>true</filtering>
318 <include>**/*</include>
325 <id>copy-resources</id>
326 <phase>validate</phase>
328 <goal>copy-resources</goal>
331 <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
334 <directory>${basedir}/src/main/resources</directory>
336 <include>misc/**</include>
337 <include>**/**</include>
344 <id>copy-resources-1</id>
345 <phase>validate</phase>
347 <goal>copy-resources</goal>
350 <outputDirectory>${basedir}/target/opt/app/datartr/self_signed</outputDirectory>
353 <directory>${basedir}/self_signed</directory>
355 <include>misc/**</include>
356 <include>**/**</include>
365 <groupId>org.apache.maven.plugins</groupId>
366 <artifactId>maven-dependency-plugin</artifactId>
367 <version>2.10</version>
370 <id>copy-dependencies</id>
371 <phase>package</phase>
373 <goal>copy-dependencies</goal>
376 <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
377 <overWriteReleases>false</overWriteReleases>
378 <overWriteSnapshots>false</overWriteSnapshots>
379 <overWriteIfNewer>true</overWriteIfNewer>
385 <groupId>org.apache.maven.plugins</groupId>
386 <artifactId>maven-javadoc-plugin</artifactId>
388 <failOnError>false</failOnError>
392 <id>attach-javadocs</id>
400 <groupId>org.apache.maven.plugins</groupId>
401 <artifactId>maven-source-plugin</artifactId>
402 <version>2.2.1</version>
405 <id>attach-sources</id>
407 <goal>jar-no-fork</goal>
413 <groupId>org.codehaus.mojo</groupId>
414 <artifactId>cobertura-maven-plugin</artifactId>
415 <version>2.7</version>
418 <format>html</format>
425 <groupId>org.sonatype.plugins</groupId>
426 <artifactId>nexus-staging-maven-plugin</artifactId>
427 <version>1.6.7</version>
428 <extensions>true</extensions>
430 <nexusUrl>${onap.nexus.url}</nexusUrl>
431 <stagingProfileId>176c31dfe190a</stagingProfileId>
432 <serverId>ecomp-staging</serverId>
436 <groupId>org.jacoco</groupId>
437 <artifactId>jacoco-maven-plugin</artifactId>
438 <version>${jacoco.version}</version>
441 <exclude>**/gen/**</exclude>
442 <exclude>**/generated-sources/**</exclude>
443 <exclude>**/yang-gen/**</exclude>
444 <exclude>**/pax/**</exclude>
449 <id>pre-unit-test</id>
451 <goal>prepare-agent</goal>
454 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
455 <propertyName>surefireArgLine</propertyName>
459 <id>post-unit-test</id>
465 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
466 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
470 <id>pre-integration-test</id>
471 <phase>pre-integration-test</phase>
473 <goal>prepare-agent</goal>
476 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
477 <propertyName>failsafeArgLine</propertyName>
481 <id>post-integration-test</id>
482 <phase>post-integration-test</phase>
487 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
488 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>