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-subscriber</artifactId>
32 <packaging>jar</packaging>
33 <name>datarouter-subscriber</name>
35 <sonar.language>java</sonar.language>
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>
40 <docker.location>${basedir}/target/${artifactId}</docker.location>
41 <datarouter.prov.image.name>onap/dmaap/datarouter-subscriber</datarouter.prov.image.name>
45 <groupId>commons-codec</groupId>
46 <artifactId>commons-codec</artifactId>
47 <version>${commons-codec.version}</version>
50 <groupId>org.eclipse.jetty</groupId>
51 <artifactId>jetty-server</artifactId>
52 <version>${jetty.version}</version>
55 <groupId>org.eclipse.jetty</groupId>
56 <artifactId>jetty-continuation</artifactId>
57 <version>${jetty.version}</version>
60 <groupId>org.eclipse.jetty</groupId>
61 <artifactId>jetty-util</artifactId>
62 <version>${jetty.version}</version>
65 <groupId>org.eclipse.jetty</groupId>
66 <artifactId>jetty-deploy</artifactId>
67 <version>${jetty.version}</version>
70 <groupId>org.eclipse.jetty</groupId>
71 <artifactId>jetty-servlet</artifactId>
72 <version>${jetty.version}</version>
75 <groupId>org.eclipse.jetty</groupId>
76 <artifactId>jetty-servlets</artifactId>
77 <version>${jetty.version}</version>
80 <groupId>org.eclipse.jetty</groupId>
81 <artifactId>jetty-http</artifactId>
82 <version>${jetty.version}</version>
85 <groupId>org.eclipse.jetty</groupId>
86 <artifactId>jetty-security</artifactId>
87 <version>${jetty.version}</version>
90 <groupId>org.eclipse.jetty</groupId>
91 <artifactId>jetty-websocket</artifactId>
92 <version>${jetty.websocket.version}</version>
95 <groupId>org.eclipse.jetty</groupId>
96 <artifactId>jetty-io</artifactId>
97 <version>${jetty.version}</version>
100 <groupId>com.thoughtworks.xstream</groupId>
101 <artifactId>xstream</artifactId>
102 <version>${thoughtworks.version}</version>
105 <groupId>ch.qos.logback</groupId>
106 <artifactId>logback-classic</artifactId>
107 <version>${qos.logback.version}</version>
108 <scope>compile</scope>
111 <groupId>ch.qos.logback</groupId>
112 <artifactId>logback-core</artifactId>
113 <version>${qos.logback.version}</version>
114 <scope>compile</scope>
117 <groupId>org.apache.httpcomponents</groupId>
118 <artifactId>httpclient</artifactId>
119 <version>4.5.3</version>
122 <groupId>org.sonatype.http-testing-harness</groupId>
123 <artifactId>junit-runner</artifactId>
124 <version>0.11</version>
127 <groupId>org.databene</groupId>
128 <artifactId>contiperf</artifactId>
133 <groupId>junit</groupId>
134 <artifactId>junit</artifactId>
135 <version>4.10</version>
139 <groupId>log4j</groupId>
140 <artifactId>log4j</artifactId>
141 <version>1.2.17</version>
142 <scope>compile</scope>
145 <groupId>org.apache.commons</groupId>
146 <artifactId>commons-io</artifactId>
147 <version>1.3.2</version>
154 <skipDockerBuild>false</skipDockerBuild>
155 <skipDockerTag>false</skipDockerTag>
156 <skipTests>true</skipTests>
161 <groupId>com.spotify</groupId>
162 <artifactId>docker-maven-plugin</artifactId>
163 <version>1.0.0</version>
165 <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}</imageName>
166 <dockerDirectory>${docker.location}</dockerDirectory>
167 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
168 <skipDockerBuild>false</skipDockerBuild>
170 <imageTag>${project.version}</imageTag>
171 <imageTag>latest</imageTag>
173 <forceTags>true</forceTags>
176 <targetPath>/</targetPath>
177 <directory>${project.basedir}</directory>
179 <exclude>target/**/*</exclude>
180 <exclude>pom.xml</exclude>
185 <targetPath>/</targetPath>
186 <directory>${project.build.directory}</directory>
187 <include>**/**</include>
197 <finalName>datarouter-subscriber</finalName>
200 <directory>src/main/resources</directory>
201 <filtering>true</filtering>
203 <include>**/*.properties</include>
207 <directory>src/main/resources</directory>
208 <filtering>true</filtering>
210 <include>**/subscriber.properties</include>
214 <directory>src/main/resources</directory>
215 <filtering>true</filtering>
217 <include>**/log4j.properties</include>
221 <directory>src/test/resources</directory>
222 <filtering>true</filtering>
224 <include>**/log4j.properties</include>
230 <artifactId>maven-assembly-plugin</artifactId>
231 <version>2.4</version>
234 <descriptorRef>jar-with-dependencies</descriptorRef>
236 <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
239 <addClasspath>true</addClasspath>
240 <mainClass>org.onap.dmaap.datarouter.subscriber.SubscriberMain</mainClass>
246 <id>make-assembly</id>
247 <!-- this is used for inheritance merges -->
248 <phase>package</phase>
249 <!-- bind to the packaging phase -->
257 <groupId>org.apache.maven.plugins</groupId>
258 <artifactId>maven-compiler-plugin</artifactId>
263 <version>3.6.0</version>
266 <artifactId>maven-resources-plugin</artifactId>
267 <version>2.7</version>
270 <id>copy-docker-file</id>
271 <phase>package</phase>
273 <goal>copy-resources</goal>
276 <outputDirectory>${docker.location}</outputDirectory>
277 <overwrite>true</overwrite>
280 <directory>${basedir}/src/main/resources/docker</directory>
281 <filtering>true</filtering>
283 <include>**/*</include>
290 <id>copy-resources-1</id>
291 <phase>validate</phase>
293 <goal>copy-resources</goal>
296 <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
299 <directory>${project.basedir}/src/main/resources</directory>
301 <include>**/*.jar</include>
308 <id>copy-resources-2</id>
309 <phase>validate</phase>
311 <goal>copy-resources</goal>
314 <outputDirectory>${basedir}/target/opt/app/subscriber/etc</outputDirectory>
317 <directory>${basedir}/src/main/resources</directory>
319 <include>*.properties</include>
328 <groupId>org.apache.maven.plugins</groupId>
329 <artifactId>maven-dependency-plugin</artifactId>
330 <version>2.10</version>
333 <id>copy-dependencies</id>
334 <phase>package</phase>
336 <goal>copy-dependencies</goal>
339 <outputDirectory>${project.build.directory}/opt/app/subscriber/lib</outputDirectory>
340 <overWriteReleases>false</overWriteReleases>
341 <overWriteSnapshots>false</overWriteSnapshots>
342 <overWriteIfNewer>true</overWriteIfNewer>
348 <groupId>org.apache.maven.plugins</groupId>
349 <artifactId>maven-source-plugin</artifactId>
350 <version>2.2.1</version>
353 <id>attach-sources</id>
355 <goal>jar-no-fork</goal>
361 <groupId>org.jacoco</groupId>
362 <artifactId>jacoco-maven-plugin</artifactId>
363 <version>${jacoco.version}</version>
366 <exclude>**/gen/**</exclude>
367 <exclude>**/generated-sources/**</exclude>
368 <exclude>**/yang-gen/**</exclude>
369 <exclude>**/pax/**</exclude>
374 <id>pre-unit-test</id>
376 <goal>prepare-agent</goal>
379 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
380 <propertyName>surefireArgLine</propertyName>
384 <id>post-unit-test</id>
390 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
391 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
395 <id>pre-integration-test</id>
396 <phase>pre-integration-test</phase>
398 <goal>prepare-agent</goal>
401 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
402 <propertyName>failsafeArgLine</propertyName>
406 <id>post-integration-test</id>
407 <phase>post-integration-test</phase>
412 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
413 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>