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.2-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>com.google.guava</groupId>
45 <artifactId>guava</artifactId>
46 <version>${google.guava.version}</version>
49 <groupId>commons-codec</groupId>
50 <artifactId>commons-codec</artifactId>
51 <version>${commons-codec.version}</version>
54 <groupId>junit</groupId>
55 <artifactId>junit</artifactId>
56 <version>4.10</version>
60 <groupId>org.json</groupId>
61 <artifactId>json</artifactId>
62 <version>20160810</version>
65 <groupId>javax.mail</groupId>
66 <artifactId>javax.mail-api</artifactId>
67 <version>${javax.mail-api.version}</version>
70 <groupId>com.att.eelf</groupId>
71 <artifactId>eelf-core</artifactId>
72 <version>0.0.1</version>
75 <groupId>com.thoughtworks.xstream</groupId>
76 <artifactId>xstream</artifactId>
77 <version>${thoughtworks.version}</version>
80 <groupId>ch.qos.logback</groupId>
81 <artifactId>logback-classic</artifactId>
82 <version>${qos.logback.version}</version>
83 <scope>compile</scope>
86 <groupId>ch.qos.logback</groupId>
87 <artifactId>logback-core</artifactId>
88 <version>${qos.logback.version}</version>
89 <scope>compile</scope>
92 <groupId>org.eclipse.jetty</groupId>
93 <artifactId>jetty-server</artifactId>
94 <version>${jetty.version}</version>
97 <groupId>org.eclipse.jetty</groupId>
98 <artifactId>jetty-continuation</artifactId>
99 <version>${jetty.version}</version>
102 <groupId>org.eclipse.jetty</groupId>
103 <artifactId>jetty-util</artifactId>
104 <version>${jetty.version}</version>
107 <groupId>org.eclipse.jetty</groupId>
108 <artifactId>jetty-deploy</artifactId>
109 <version>${jetty.version}</version>
112 <groupId>org.eclipse.jetty</groupId>
113 <artifactId>jetty-servlet</artifactId>
114 <version>${jetty.version}</version>
117 <groupId>org.eclipse.jetty</groupId>
118 <artifactId>jetty-servlets</artifactId>
119 <version>${jetty.version}</version>
122 <groupId>org.eclipse.jetty</groupId>
123 <artifactId>jetty-http</artifactId>
124 <version>${jetty.version}</version>
127 <groupId>org.eclipse.jetty</groupId>
128 <artifactId>jetty-security</artifactId>
129 <version>${jetty.version}</version>
132 <groupId>org.eclipse.jetty</groupId>
133 <artifactId>jetty-websocket</artifactId>
134 <version>${jetty.websocket.version}</version>
137 <groupId>org.eclipse.jetty</groupId>
138 <artifactId>jetty-io</artifactId>
139 <version>${jetty.version}</version>
142 <groupId>org.apache.commons</groupId>
143 <artifactId>commons-io</artifactId>
144 <version>1.3.2</version>
147 <groupId>commons-lang</groupId>
148 <artifactId>commons-lang</artifactId>
149 <version>2.4</version>
152 <groupId>commons-io</groupId>
153 <artifactId>commons-io</artifactId>
154 <version>2.1</version>
155 <scope>compile</scope>
158 <groupId>org.apache.httpcomponents</groupId>
159 <artifactId>httpcore</artifactId>
160 <version>4.4</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>
195 <groupId>junit</groupId>
196 <artifactId>junit</artifactId>
197 <version>4.10</version>
201 <groupId>org.mockito</groupId>
202 <artifactId>mockito-core</artifactId>
203 <version>1.10.19</version>
207 <groupId>org.powermock</groupId>
208 <artifactId>powermock-module-junit4</artifactId>
209 <version>1.6.4</version>
213 <groupId>org.powermock</groupId>
214 <artifactId>powermock-api-mockito</artifactId>
215 <version>1.6.4</version>
219 <groupId>org.apache.commons</groupId>
220 <artifactId>commons-lang3</artifactId>
221 <version>3.0</version>
228 <skipDockerBuild>false</skipDockerBuild>
229 <skipDockerTag>false</skipDockerTag>
230 <skipTests>true</skipTests>
235 <groupId>com.spotify</groupId>
236 <artifactId>docker-maven-plugin</artifactId>
237 <version>1.0.0</version>
239 <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.node.image.name}</imageName>
240 <dockerDirectory>${docker.location}</dockerDirectory>
241 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
242 <skipDockerBuild>false</skipDockerBuild>
244 <imageTag>${project.version}</imageTag>
245 <imageTag>latest</imageTag>
247 <forceTags>true</forceTags>
250 <targetPath>/</targetPath>
251 <directory>${project.basedir}</directory>
253 <exclude>target/**/*</exclude>
254 <exclude>pom.xml</exclude>
259 <targetPath>/</targetPath>
260 <directory>${project.build.directory}</directory>
261 <include>**/**</include>
272 <finalName>datarouter-node</finalName>
275 <directory>src/main/resources</directory>
276 <filtering>true</filtering>
278 <include>**/*.properties</include>
282 <directory>src/main/resources</directory>
283 <filtering>true</filtering>
285 <include>**/EelfMessages.properties</include>
289 <directory>src/main/resources</directory>
290 <filtering>true</filtering>
292 <include>**/log4j.properties</include>
298 <groupId>org.apache.maven.plugins</groupId>
299 <artifactId>maven-compiler-plugin</artifactId>
304 <version>3.6.0</version>
307 <artifactId>maven-assembly-plugin</artifactId>
308 <version>2.4</version>
311 <descriptorRef>jar-with-dependencies</descriptorRef>
313 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
316 <addClasspath>true</addClasspath>
317 <mainClass>org.onap.dmaap.datarouter.node.NodeMain</mainClass>
323 <id>make-assembly</id>
324 <!-- this is used for inheritance merges -->
325 <phase>package</phase>
326 <!-- bind to the packaging phase -->
334 <groupId>org.apache.maven.plugins</groupId>
335 <artifactId>maven-resources-plugin</artifactId>
336 <version>2.7</version>
339 <id>copy-docker-file</id>
340 <phase>package</phase>
342 <goal>copy-resources</goal>
345 <outputDirectory>${docker.location}</outputDirectory>
346 <overwrite>true</overwrite>
349 <directory>${basedir}/src/main/resources/docker</directory>
350 <filtering>true</filtering>
352 <include>**/*</include>
359 <id>copy-resources</id>
360 <phase>validate</phase>
362 <goal>copy-resources</goal>
365 <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
368 <directory>${basedir}/src/main/resources</directory>
370 <include>misc/**</include>
371 <include>**/**</include>
378 <id>copy-resources-1</id>
379 <phase>validate</phase>
381 <goal>copy-resources</goal>
384 <outputDirectory>${basedir}/target/opt/app/datartr/aaf_certs</outputDirectory>
387 <directory>${basedir}/aaf_certs</directory>
389 <include>misc/**</include>
390 <include>**/**</include>
399 <groupId>org.apache.maven.plugins</groupId>
400 <artifactId>maven-dependency-plugin</artifactId>
401 <version>2.10</version>
404 <id>copy-dependencies</id>
405 <phase>package</phase>
407 <goal>copy-dependencies</goal>
410 <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
411 <overWriteReleases>false</overWriteReleases>
412 <overWriteSnapshots>false</overWriteSnapshots>
413 <overWriteIfNewer>true</overWriteIfNewer>
419 <groupId>org.apache.maven.plugins</groupId>
420 <artifactId>maven-javadoc-plugin</artifactId>
422 <failOnError>false</failOnError>
426 <id>attach-javadocs</id>
434 <groupId>org.apache.maven.plugins</groupId>
435 <artifactId>maven-source-plugin</artifactId>
436 <version>2.2.1</version>
439 <id>attach-sources</id>
441 <goal>jar-no-fork</goal>
447 <groupId>org.codehaus.mojo</groupId>
448 <artifactId>cobertura-maven-plugin</artifactId>
449 <version>2.7</version>
452 <format>html</format>
459 <groupId>org.sonatype.plugins</groupId>
460 <artifactId>nexus-staging-maven-plugin</artifactId>
461 <version>1.6.7</version>
462 <extensions>true</extensions>
464 <nexusUrl>${onap.nexus.url}</nexusUrl>
465 <stagingProfileId>176c31dfe190a</stagingProfileId>
466 <serverId>ecomp-staging</serverId>
470 <groupId>org.jacoco</groupId>
471 <artifactId>jacoco-maven-plugin</artifactId>
472 <version>${jacoco.version}</version>
475 <exclude>**/gen/**</exclude>
476 <exclude>**/generated-sources/**</exclude>
477 <exclude>**/yang-gen/**</exclude>
478 <exclude>**/pax/**</exclude>
483 <id>pre-unit-test</id>
485 <goal>prepare-agent</goal>
488 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
489 <propertyName>surefireArgLine</propertyName>
493 <id>post-unit-test</id>
499 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
500 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
504 <id>pre-integration-test</id>
505 <phase>pre-integration-test</phase>
507 <goal>prepare-agent</goal>
510 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
511 <propertyName>failsafeArgLine</propertyName>
515 <id>post-integration-test</id>
516 <phase>post-integration-test</phase>
521 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
522 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>