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>javax.servlet</groupId>
66 <artifactId>servlet-api</artifactId>
67 <version>2.5</version>
70 <groupId>com.thoughtworks.xstream</groupId>
71 <artifactId>xstream</artifactId>
72 <version>1.4.7</version>
75 <groupId>ch.qos.logback</groupId>
76 <artifactId>logback-classic</artifactId>
77 <version>1.2.0</version>
78 <scope>compile</scope>
81 <groupId>ch.qos.logback</groupId>
82 <artifactId>logback-core</artifactId>
83 <version>1.2.0</version>
84 <scope>compile</scope>
87 <groupId>org.eclipse.jetty</groupId>
88 <artifactId>jetty-server</artifactId>
89 <version>${jetty.version}</version>
92 <groupId>org.eclipse.jetty</groupId>
93 <artifactId>jetty-continuation</artifactId>
94 <version>${jetty.version}</version>
97 <groupId>org.eclipse.jetty</groupId>
98 <artifactId>jetty-util</artifactId>
99 <version>${jetty.version}</version>
102 <groupId>org.eclipse.jetty</groupId>
103 <artifactId>jetty-deploy</artifactId>
104 <version>${jetty.version}</version>
107 <groupId>org.eclipse.jetty</groupId>
108 <artifactId>jetty-servlet</artifactId>
109 <version>${jetty.version}</version>
112 <groupId>org.eclipse.jetty</groupId>
113 <artifactId>jetty-servlets</artifactId>
114 <version>${jetty.version}</version>
117 <groupId>org.eclipse.jetty</groupId>
118 <artifactId>jetty-http</artifactId>
119 <version>${jetty.version}</version>
122 <groupId>org.eclipse.jetty</groupId>
123 <artifactId>jetty-security</artifactId>
124 <version>${jetty.version}</version>
127 <groupId>org.eclipse.jetty</groupId>
128 <artifactId>jetty-websocket</artifactId>
129 <version>${jetty.websocket.version}</version>
132 <groupId>org.eclipse.jetty</groupId>
133 <artifactId>jetty-io</artifactId>
134 <version>${jetty.version}</version>
137 <groupId>org.apache.commons</groupId>
138 <artifactId>commons-io</artifactId>
139 <version>1.3.2</version>
142 <groupId>commons-lang</groupId>
143 <artifactId>commons-lang</artifactId>
144 <version>2.4</version>
147 <groupId>commons-io</groupId>
148 <artifactId>commons-io</artifactId>
149 <version>2.1</version>
150 <scope>compile</scope>
153 <groupId>org.apache.httpcomponents</groupId>
154 <artifactId>httpcore</artifactId>
155 <version>4.4</version>
158 <groupId>commons-codec</groupId>
159 <artifactId>commons-codec</artifactId>
160 <version>1.6</version>
163 <groupId>org.mozilla</groupId>
164 <artifactId>rhino</artifactId>
165 <version>1.7R3</version>
168 <groupId>org.apache.james</groupId>
169 <artifactId>apache-mime4j-core</artifactId>
170 <version>0.7</version>
173 <groupId>org.apache.httpcomponents</groupId>
174 <artifactId>httpclient</artifactId>
175 <version>4.5.3</version>
178 <groupId>org.sonatype.http-testing-harness</groupId>
179 <artifactId>junit-runner</artifactId>
180 <version>0.11</version>
183 <groupId>org.databene</groupId>
184 <artifactId>contiperf</artifactId>
189 <groupId>log4j</groupId>
190 <artifactId>log4j</artifactId>
191 <version>1.2.17</version>
192 <scope>compile</scope>
199 <skipDockerBuild>false</skipDockerBuild>
200 <skipDockerTag>false</skipDockerTag>
201 <skipTests>true</skipTests>
206 <groupId>com.spotify</groupId>
207 <artifactId>docker-maven-plugin</artifactId>
208 <version>1.0.0</version>
210 <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.node.image.name}</imageName>
211 <dockerDirectory>${docker.location}</dockerDirectory>
212 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
213 <skipDockerBuild>false</skipDockerBuild>
215 <imageTag>${project.version}</imageTag>
216 <imageTag>latest</imageTag>
218 <forceTags>true</forceTags>
221 <targetPath>/</targetPath>
222 <directory>${project.basedir}</directory>
224 <exclude>target/**/*</exclude>
225 <exclude>pom.xml</exclude>
230 <targetPath>/</targetPath>
231 <directory>${project.build.directory}</directory>
232 <include>**/**</include>
243 <finalName>datarouter-node</finalName>
246 <directory>src/main/resources</directory>
247 <filtering>true</filtering>
249 <include>**/*.properties</include>
253 <directory>src/main/resources</directory>
254 <filtering>true</filtering>
256 <include>**/EelfMessages.properties</include>
260 <directory>src/main/resources</directory>
261 <filtering>true</filtering>
263 <include>**/log4j.properties</include>
269 <groupId>org.apache.maven.plugins</groupId>
270 <artifactId>maven-compiler-plugin</artifactId>
275 <version>3.6.0</version>
278 <artifactId>maven-assembly-plugin</artifactId>
279 <version>2.4</version>
282 <descriptorRef>jar-with-dependencies</descriptorRef>
284 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
287 <addClasspath>true</addClasspath>
288 <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass>
294 <id>make-assembly</id>
295 <!-- this is used for inheritance merges -->
296 <phase>package</phase>
297 <!-- bind to the packaging phase -->
305 <groupId>org.apache.maven.plugins</groupId>
306 <artifactId>maven-resources-plugin</artifactId>
307 <version>2.7</version>
310 <id>copy-docker-file</id>
311 <phase>package</phase>
313 <goal>copy-resources</goal>
316 <outputDirectory>${docker.location}</outputDirectory>
317 <overwrite>true</overwrite>
320 <directory>${basedir}/src/main/resources/docker</directory>
321 <filtering>true</filtering>
323 <include>**/*</include>
330 <id>copy-resources</id>
331 <phase>validate</phase>
333 <goal>copy-resources</goal>
336 <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
339 <directory>${basedir}/src/main/resources</directory>
341 <include>misc/**</include>
342 <include>**/**</include>
349 <id>copy-resources-1</id>
350 <phase>validate</phase>
352 <goal>copy-resources</goal>
355 <outputDirectory>${basedir}/target/opt/app/datartr/self_signed</outputDirectory>
358 <directory>${basedir}/self_signed</directory>
360 <include>misc/**</include>
361 <include>**/**</include>
370 <groupId>org.apache.maven.plugins</groupId>
371 <artifactId>maven-dependency-plugin</artifactId>
372 <version>2.10</version>
375 <id>copy-dependencies</id>
376 <phase>package</phase>
378 <goal>copy-dependencies</goal>
381 <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
382 <overWriteReleases>false</overWriteReleases>
383 <overWriteSnapshots>false</overWriteSnapshots>
384 <overWriteIfNewer>true</overWriteIfNewer>
390 <groupId>org.apache.maven.plugins</groupId>
391 <artifactId>maven-javadoc-plugin</artifactId>
393 <failOnError>false</failOnError>
397 <id>attach-javadocs</id>
405 <groupId>org.apache.maven.plugins</groupId>
406 <artifactId>maven-source-plugin</artifactId>
407 <version>2.2.1</version>
410 <id>attach-sources</id>
412 <goal>jar-no-fork</goal>
418 <groupId>org.codehaus.mojo</groupId>
419 <artifactId>cobertura-maven-plugin</artifactId>
420 <version>2.7</version>
423 <format>html</format>
430 <groupId>org.sonatype.plugins</groupId>
431 <artifactId>nexus-staging-maven-plugin</artifactId>
432 <version>1.6.7</version>
433 <extensions>true</extensions>
435 <nexusUrl>${onap.nexus.url}</nexusUrl>
436 <stagingProfileId>176c31dfe190a</stagingProfileId>
437 <serverId>ecomp-staging</serverId>
441 <groupId>org.jacoco</groupId>
442 <artifactId>jacoco-maven-plugin</artifactId>
443 <version>${jacoco.version}</version>
446 <exclude>**/gen/**</exclude>
447 <exclude>**/generated-sources/**</exclude>
448 <exclude>**/yang-gen/**</exclude>
449 <exclude>**/pax/**</exclude>
454 <id>pre-unit-test</id>
456 <goal>prepare-agent</goal>
459 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
460 <propertyName>surefireArgLine</propertyName>
464 <id>post-unit-test</id>
470 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
471 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
475 <id>pre-integration-test</id>
476 <phase>pre-integration-test</phase>
478 <goal>prepare-agent</goal>
481 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
482 <propertyName>failsafeArgLine</propertyName>
486 <id>post-integration-test</id>
487 <phase>post-integration-test</phase>
492 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
493 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>