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>org.eclipse.jetty</groupId>
46 <artifactId>jetty-server</artifactId>
47 <version>${jetty.version}</version>
50 <groupId>org.eclipse.jetty</groupId>
51 <artifactId>jetty-continuation</artifactId>
52 <version>${jetty.version}</version>
55 <groupId>org.eclipse.jetty</groupId>
56 <artifactId>jetty-util</artifactId>
57 <version>${jetty.version}</version>
60 <groupId>org.eclipse.jetty</groupId>
61 <artifactId>jetty-deploy</artifactId>
62 <version>${jetty.version}</version>
65 <groupId>org.eclipse.jetty</groupId>
66 <artifactId>jetty-servlet</artifactId>
67 <version>${jetty.version}</version>
70 <groupId>org.eclipse.jetty</groupId>
71 <artifactId>jetty-servlets</artifactId>
72 <version>${jetty.version}</version>
75 <groupId>org.eclipse.jetty</groupId>
76 <artifactId>jetty-http</artifactId>
77 <version>${jetty.version}</version>
80 <groupId>org.eclipse.jetty</groupId>
81 <artifactId>jetty-security</artifactId>
82 <version>${jetty.version}</version>
85 <groupId>org.eclipse.jetty</groupId>
86 <artifactId>jetty-websocket</artifactId>
87 <version>${jetty.websocket.version}</version>
90 <groupId>org.eclipse.jetty</groupId>
91 <artifactId>jetty-io</artifactId>
92 <version>${jetty.version}</version>
95 <groupId>com.thoughtworks.xstream</groupId>
96 <artifactId>xstream</artifactId>
97 <version>${thoughtworks.version}</version>
100 <groupId>ch.qos.logback</groupId>
101 <artifactId>logback-classic</artifactId>
102 <version>${qos.logback.version}</version>
103 <scope>compile</scope>
106 <groupId>ch.qos.logback</groupId>
107 <artifactId>logback-core</artifactId>
108 <version>${qos.logback.version}</version>
109 <scope>compile</scope>
112 <groupId>org.apache.httpcomponents</groupId>
113 <artifactId>httpclient</artifactId>
114 <version>4.5.3</version>
117 <groupId>org.sonatype.http-testing-harness</groupId>
118 <artifactId>junit-runner</artifactId>
119 <version>0.11</version>
122 <groupId>org.databene</groupId>
123 <artifactId>contiperf</artifactId>
128 <groupId>junit</groupId>
129 <artifactId>junit</artifactId>
130 <version>4.10</version>
134 <groupId>log4j</groupId>
135 <artifactId>log4j</artifactId>
136 <version>1.2.17</version>
137 <scope>compile</scope>
144 <skipDockerBuild>false</skipDockerBuild>
145 <skipDockerTag>false</skipDockerTag>
146 <skipTests>true</skipTests>
151 <groupId>com.spotify</groupId>
152 <artifactId>docker-maven-plugin</artifactId>
153 <version>1.0.0</version>
155 <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}</imageName>
156 <dockerDirectory>${docker.location}</dockerDirectory>
157 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
158 <skipDockerBuild>false</skipDockerBuild>
160 <imageTag>${project.version}</imageTag>
161 <imageTag>latest</imageTag>
163 <forceTags>true</forceTags>
166 <targetPath>/</targetPath>
167 <directory>${project.basedir}</directory>
169 <exclude>target/**/*</exclude>
170 <exclude>pom.xml</exclude>
175 <targetPath>/</targetPath>
176 <directory>${project.build.directory}</directory>
177 <include>**/**</include>
187 <finalName>datarouter-subscriber</finalName>
190 <directory>src/main/resources</directory>
191 <filtering>true</filtering>
193 <include>**/*.properties</include>
197 <directory>src/main/resources</directory>
198 <filtering>true</filtering>
200 <include>**/subscriber.properties</include>
204 <directory>src/main/resources</directory>
205 <filtering>true</filtering>
207 <include>**/log4j.properties</include>
211 <directory>src/test/resources</directory>
212 <filtering>true</filtering>
214 <include>**/log4j.properties</include>
220 <artifactId>maven-assembly-plugin</artifactId>
221 <version>2.4</version>
224 <descriptorRef>jar-with-dependencies</descriptorRef>
226 <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
229 <addClasspath>true</addClasspath>
230 <mainClass>org.onap.dmaap.datarouter.subscriber.Subscriber</mainClass>
236 <id>make-assembly</id>
237 <!-- this is used for inheritance merges -->
238 <phase>package</phase>
239 <!-- bind to the packaging phase -->
247 <groupId>org.apache.maven.plugins</groupId>
248 <artifactId>maven-compiler-plugin</artifactId>
253 <version>3.6.0</version>
256 <artifactId>maven-resources-plugin</artifactId>
257 <version>2.7</version>
260 <id>copy-docker-file</id>
261 <phase>package</phase>
263 <goal>copy-resources</goal>
266 <outputDirectory>${docker.location}</outputDirectory>
267 <overwrite>true</overwrite>
270 <directory>${basedir}/src/main/resources/docker</directory>
271 <filtering>true</filtering>
273 <include>**/*</include>
280 <id>copy-resources-1</id>
281 <phase>validate</phase>
283 <goal>copy-resources</goal>
286 <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
289 <directory>${project.basedir}/src/main/resources</directory>
291 <include>**/*.jar</include>
298 <id>copy-resources-2</id>
299 <phase>validate</phase>
301 <goal>copy-resources</goal>
304 <outputDirectory>${basedir}/target/opt/app/subscriber/etc</outputDirectory>
307 <directory>${basedir}/src/main/resources</directory>
309 <include>*.properties</include>
318 <groupId>org.apache.maven.plugins</groupId>
319 <artifactId>maven-dependency-plugin</artifactId>
320 <version>2.10</version>
323 <id>copy-dependencies</id>
324 <phase>package</phase>
326 <goal>copy-dependencies</goal>
329 <outputDirectory>${project.build.directory}/opt/app/subscriber/lib</outputDirectory>
330 <overWriteReleases>false</overWriteReleases>
331 <overWriteSnapshots>false</overWriteSnapshots>
332 <overWriteIfNewer>true</overWriteIfNewer>
338 <groupId>org.apache.maven.plugins</groupId>
339 <artifactId>maven-source-plugin</artifactId>
340 <version>2.2.1</version>
343 <id>attach-sources</id>
345 <goal>jar-no-fork</goal>
351 <groupId>org.jacoco</groupId>
352 <artifactId>jacoco-maven-plugin</artifactId>
353 <version>${jacoco.version}</version>
356 <exclude>**/gen/**</exclude>
357 <exclude>**/generated-sources/**</exclude>
358 <exclude>**/yang-gen/**</exclude>
359 <exclude>**/pax/**</exclude>
364 <id>pre-unit-test</id>
366 <goal>prepare-agent</goal>
369 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
370 <propertyName>surefireArgLine</propertyName>
374 <id>post-unit-test</id>
380 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
381 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
385 <id>pre-integration-test</id>
386 <phase>pre-integration-test</phase>
388 <goal>prepare-agent</goal>
391 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
392 <propertyName>failsafeArgLine</propertyName>
396 <id>post-integration-test</id>
397 <phase>post-integration-test</phase>
402 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
403 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>