2 ============LICENSE_START==================================================
\r
4 * ===========================================================================
\r
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
\r
6 * ===========================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END====================================================
\r
20 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
\r
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
\r
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
\r
25 <modelVersion>4.0.0</modelVersion>
\r
27 <groupId>org.onap.dmaap.datarouter</groupId>
\r
28 <artifactId>parent</artifactId>
\r
29 <version>1.0.0-SNAPSHOT</version>
\r
30 <relativePath>../pom.xml</relativePath>
\r
34 <artifactId>datarouter-node</artifactId>
\r
35 <packaging>jar</packaging>
\r
36 <name>datarouter-node</name>
\r
37 <url>https://github.com/att/DMAAP_DATAROUTER</url>
\r
42 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
\r
43 <maven.compiler.source>1.8</maven.compiler.source>
\r
44 <maven.compiler.target>1.8</maven.compiler.target>
\r
45 <dockerLocation>${basedir}/target/</dockerLocation>
\r
46 <sonar.language>java</sonar.language>
\r
47 <sonar.skip>false</sonar.skip>
\r
48 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
\r
49 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
\r
50 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
\r
51 <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
\r
52 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
\r
53 <sonar.projectVersion>${project.version}</sonar.projectVersion>
\r
54 <nexusproxy>https://nexus.onap.org</nexusproxy>
\r
55 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
\r
56 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
\r
57 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
\r
58 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
\r
63 <groupId>junit</groupId>
\r
64 <artifactId>junit</artifactId>
\r
65 <version>3.8.1</version>
\r
69 <groupId>org.json</groupId>
\r
70 <artifactId>json</artifactId>
\r
71 <version>20160810</version>
\r
75 <groupId>javax.mail</groupId>
\r
76 <artifactId>javax.mail-api</artifactId>
\r
77 <version>1.5.1</version>
\r
80 <groupId>com.att.eelf</groupId>
\r
81 <artifactId>eelf-core</artifactId>
\r
82 <version>0.0.1</version>
\r
85 <groupId>javax.servlet</groupId>
\r
86 <artifactId>servlet-api</artifactId>
\r
87 <version>2.5</version>
\r
91 <groupId>org.eclipse.jetty</groupId>
\r
92 <artifactId>jetty-server</artifactId>
\r
93 <version>7.6.14.v20131031</version>
\r
96 <groupId>org.eclipse.jetty</groupId>
\r
97 <artifactId>jetty-continuation</artifactId>
\r
98 <version>7.6.14.v20131031</version>
\r
101 <groupId>org.eclipse.jetty</groupId>
\r
102 <artifactId>jetty-util</artifactId>
\r
103 <version>7.6.14.v20131031</version>
\r
106 <groupId>org.eclipse.jetty</groupId>
\r
107 <artifactId>jetty-deploy</artifactId>
\r
108 <version>7.6.14.v20131031</version>
\r
111 <groupId>org.eclipse.jetty</groupId>
\r
112 <artifactId>jetty-servlet</artifactId>
\r
113 <version>7.6.14.v20131031</version>
\r
116 <groupId>org.eclipse.jetty</groupId>
\r
117 <artifactId>jetty-servlets</artifactId>
\r
118 <version>7.6.14.v20131031</version>
\r
121 <groupId>org.eclipse.jetty</groupId>
\r
122 <artifactId>jetty-http</artifactId>
\r
123 <version>7.6.14.v20131031</version>
\r
127 <groupId>org.eclipse.jetty</groupId>
\r
128 <artifactId>jetty-security</artifactId>
\r
129 <version>7.6.14.v20131031</version>
\r
133 <groupId>org.eclipse.jetty</groupId>
\r
134 <artifactId>jetty-websocket</artifactId>
\r
135 <version>7.6.14.v20131031</version>
\r
139 <groupId>org.eclipse.jetty</groupId>
\r
140 <artifactId>jetty-io</artifactId>
\r
141 <version>7.6.14.v20131031</version>
\r
145 <groupId>org.apache.commons</groupId>
\r
146 <artifactId>commons-io</artifactId>
\r
147 <version>1.3.2</version>
\r
150 <groupId>commons-lang</groupId>
\r
151 <artifactId>commons-lang</artifactId>
\r
152 <version>2.4</version>
\r
155 <groupId>commons-io</groupId>
\r
156 <artifactId>commons-io</artifactId>
\r
157 <version>2.1</version>
\r
158 <scope>compile</scope>
\r
161 <groupId>org.apache.httpcomponents</groupId>
\r
162 <artifactId>httpcore</artifactId>
\r
163 <version>4.2.2</version>
\r
167 <groupId>commons-codec</groupId>
\r
168 <artifactId>commons-codec</artifactId>
\r
169 <version>1.6</version>
\r
173 <groupId>org.mozilla</groupId>
\r
174 <artifactId>rhino</artifactId>
\r
175 <version>1.7R3</version>
\r
178 <groupId>org.apache.james</groupId>
\r
179 <artifactId>apache-mime4j-core</artifactId>
\r
180 <version>0.7</version>
\r
183 <groupId>org.apache.httpcomponents</groupId>
\r
184 <artifactId>httpclient</artifactId>
\r
185 <version>4.2.3</version>
\r
188 <groupId>org.sonatype.http-testing-harness</groupId>
\r
189 <artifactId>junit-runner</artifactId>
\r
190 <version>0.11</version>
\r
195 <groupId>log4j</groupId>
\r
196 <artifactId>log4j</artifactId>
\r
197 <version>1.2.17</version>
\r
198 <scope>compile</scope>
\r
203 <finalName>datarouter-node</finalName>
\r
206 <directory>src/main/resources</directory>
\r
207 <filtering>true</filtering>
\r
209 <include>**/*.properties</include>
\r
213 <directory>src/main/resources</directory>
\r
214 <filtering>true</filtering>
\r
216 <include>**/EelfMessages.properties</include>
\r
220 <directory>src/main/resources</directory>
\r
221 <filtering>true</filtering>
\r
223 <include>**/log4j.properties</include>
\r
230 <groupId>org.apache.maven.plugins</groupId>
\r
231 <artifactId>maven-compiler-plugin</artifactId>
\r
235 <mainClass>org.onap.datarouter.node.NodeMain</mainClass>
\r
240 <source>1.8</source>
\r
241 <target>1.8</target>
\r
243 <version>3.6.0</version>
\r
246 <artifactId>maven-assembly-plugin</artifactId>
\r
247 <version>2.4</version>
\r
250 <descriptorRef>jar-with-dependencies</descriptorRef>
\r
252 <outputDirectory>${basedir}/target/opt/app/datartr/lib</outputDirectory>
\r
256 <addClasspath>true</addClasspath>
\r
257 <mainClass>org.onap.datarouter.node.NodeMain</mainClass>
\r
264 <id>make-assembly</id> <!-- this is used for inheritance merges -->
\r
265 <phase>package</phase> <!-- bind to the packaging phase -->
\r
267 <goal>single</goal>
\r
273 <groupId>org.apache.maven.plugins</groupId>
\r
274 <artifactId>maven-resources-plugin</artifactId>
\r
275 <version>2.7</version>
\r
278 <id>copy-docker-file</id>
\r
279 <phase>package</phase>
\r
281 <goal>copy-resources</goal>
\r
284 <outputDirectory>${dockerLocation}</outputDirectory>
\r
285 <overwrite>true</overwrite>
\r
288 <directory>${basedir}/src/main/resources/docker</directory>
\r
289 <filtering>true</filtering>
\r
291 <include>**/*</include>
\r
298 <id>copy-resources</id>
\r
299 <phase>validate</phase>
\r
301 <goal>copy-resources</goal>
\r
304 <outputDirectory>${basedir}/target/opt/app/datartr/etc</outputDirectory>
\r
307 <directory>${basedir}/src/main/resources</directory>
\r
309 <include>misc/**</include>
\r
310 <include>**/**</include>
\r
317 <id>copy-resources-1</id>
\r
318 <phase>validate</phase>
\r
320 <goal>copy-resources</goal>
\r
323 <outputDirectory>${basedir}/target/opt/app/datartr/self_signed</outputDirectory>
\r
326 <directory>${basedir}/self_signed</directory>
\r
328 <include>misc/**</include>
\r
329 <include>**/**</include>
\r
338 <groupId>com.spotify</groupId>
\r
339 <artifactId>docker-maven-plugin</artifactId>
\r
340 <version>0.4.11</version>
\r
342 <imageName>onap/dmaap/datarouter-node</imageName>
\r
343 <dockerDirectory>${dockerLocation}</dockerDirectory>
\r
344 <serverId>docker-hub</serverId>
\r
345 <registryUrl>https://${docker.registry}</registryUrl>
\r
347 <imageTag>${project.version}</imageTag>
\r
348 <imageTag>latest</imageTag>
\r
350 <forceTags>true</forceTags>
\r
355 <groupId>org.apache.maven.plugins</groupId>
\r
356 <artifactId>maven-dependency-plugin</artifactId>
\r
357 <version>2.10</version>
\r
360 <id>copy-dependencies</id>
\r
361 <phase>package</phase>
\r
363 <goal>copy-dependencies</goal>
\r
366 <outputDirectory>${project.build.directory}/opt/app/datartr/lib</outputDirectory>
\r
367 <overWriteReleases>false</overWriteReleases>
\r
368 <overWriteSnapshots>false</overWriteSnapshots>
\r
369 <overWriteIfNewer>true</overWriteIfNewer>
\r
375 <groupId>org.apache.maven.plugins</groupId>
\r
376 <artifactId>maven-javadoc-plugin</artifactId>
\r
378 <failOnError>false</failOnError>
\r
382 <id>attach-javadocs</id>
\r
392 <groupId>org.apache.maven.plugins</groupId>
\r
393 <artifactId>maven-source-plugin</artifactId>
\r
394 <version>2.2.1</version>
\r
397 <id>attach-sources</id>
\r
399 <goal>jar-no-fork</goal>
\r
406 <groupId>org.codehaus.mojo</groupId>
\r
407 <artifactId>cobertura-maven-plugin</artifactId>
\r
408 <version>2.7</version>
\r
411 <format>html</format>
\r
412 <format>xml</format>
\r
417 <groupId>org.sonatype.plugins</groupId>
\r
418 <artifactId>nexus-staging-maven-plugin</artifactId>
\r
419 <version>1.6.7</version>
\r
420 <extensions>true</extensions>
\r
422 <nexusUrl>${nexusproxy}</nexusUrl>
\r
423 <stagingProfileId>176c31dfe190a</stagingProfileId>
\r
424 <serverId>ecomp-staging</serverId>
\r
429 <groupId>org.jacoco</groupId>
\r
430 <artifactId>jacoco-maven-plugin</artifactId>
\r
431 <version>${jacoco.version}</version>
\r
434 <exclude>**/gen/**</exclude>
\r
435 <exclude>**/generated-sources/**</exclude>
\r
436 <exclude>**/yang-gen/**</exclude>
\r
437 <exclude>**/pax/**</exclude>
\r
443 <id>pre-unit-test</id>
\r
445 <goal>prepare-agent</goal>
\r
448 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
\r
449 <propertyName>surefireArgLine</propertyName>
\r
455 <id>post-unit-test</id>
\r
456 <phase>test</phase>
\r
458 <goal>report</goal>
\r
461 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
\r
462 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
\r
466 <id>pre-integration-test</id>
\r
467 <phase>pre-integration-test</phase>
\r
469 <goal>prepare-agent</goal>
\r
472 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
\r
474 <propertyName>failsafeArgLine</propertyName>
\r
480 <id>post-integration-test</id>
\r
481 <phase>post-integration-test</phase>
\r
483 <goal>report</goal>
\r
486 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
\r
487 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
\r
494 <distributionManagement>
\r
496 <id>ecomp-releases</id>
\r
497 <name>DR Release Repository</name>
\r
498 <url>${nexusproxy}${releaseNexusPath}</url>
\r
500 <snapshotRepository>
\r
501 <id>ecomp-snapshots</id>
\r
502 <name>DR Snapshot Repository</name>
\r
503 <url>${nexusproxy}${snapshotNexusPath}</url>
\r
504 </snapshotRepository>
\r
506 <id>ecomp-site</id>
\r
507 <url>dav:${nexusproxy}${sitePath}</url>
\r
509 </distributionManagement>
\r
510 <pluginRepositories>
\r
512 <id>onap-plugin-snapshots</id>
\r
513 <url>https://nexus.onap.org/content/repositories/snapshots/</url>
\r
514 </pluginRepository>
\r
515 </pluginRepositories>
\r