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>
140 <groupId>org.apache.commons</groupId>
141 <artifactId>commons-io</artifactId>
142 <version>1.3.2</version>
149 <skipDockerBuild>false</skipDockerBuild>
150 <skipDockerTag>false</skipDockerTag>
151 <skipTests>true</skipTests>
156 <groupId>com.spotify</groupId>
157 <artifactId>docker-maven-plugin</artifactId>
158 <version>1.0.0</version>
160 <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}</imageName>
161 <dockerDirectory>${docker.location}</dockerDirectory>
162 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
163 <skipDockerBuild>false</skipDockerBuild>
165 <imageTag>${project.version}</imageTag>
166 <imageTag>latest</imageTag>
168 <forceTags>true</forceTags>
171 <targetPath>/</targetPath>
172 <directory>${project.basedir}</directory>
174 <exclude>target/**/*</exclude>
175 <exclude>pom.xml</exclude>
180 <targetPath>/</targetPath>
181 <directory>${project.build.directory}</directory>
182 <include>**/**</include>
192 <finalName>datarouter-subscriber</finalName>
195 <directory>src/main/resources</directory>
196 <filtering>true</filtering>
198 <include>**/*.properties</include>
202 <directory>src/main/resources</directory>
203 <filtering>true</filtering>
205 <include>**/subscriber.properties</include>
209 <directory>src/main/resources</directory>
210 <filtering>true</filtering>
212 <include>**/log4j.properties</include>
216 <directory>src/test/resources</directory>
217 <filtering>true</filtering>
219 <include>**/log4j.properties</include>
225 <artifactId>maven-assembly-plugin</artifactId>
226 <version>2.4</version>
229 <descriptorRef>jar-with-dependencies</descriptorRef>
231 <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
234 <addClasspath>true</addClasspath>
235 <mainClass>org.onap.dmaap.datarouter.subscriber.SubscriberMain</mainClass>
241 <id>make-assembly</id>
242 <!-- this is used for inheritance merges -->
243 <phase>package</phase>
244 <!-- bind to the packaging phase -->
252 <groupId>org.apache.maven.plugins</groupId>
253 <artifactId>maven-compiler-plugin</artifactId>
258 <version>3.6.0</version>
261 <artifactId>maven-resources-plugin</artifactId>
262 <version>2.7</version>
265 <id>copy-docker-file</id>
266 <phase>package</phase>
268 <goal>copy-resources</goal>
271 <outputDirectory>${docker.location}</outputDirectory>
272 <overwrite>true</overwrite>
275 <directory>${basedir}/src/main/resources/docker</directory>
276 <filtering>true</filtering>
278 <include>**/*</include>
285 <id>copy-resources-1</id>
286 <phase>validate</phase>
288 <goal>copy-resources</goal>
291 <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
294 <directory>${project.basedir}/src/main/resources</directory>
296 <include>**/*.jar</include>
303 <id>copy-resources-2</id>
304 <phase>validate</phase>
306 <goal>copy-resources</goal>
309 <outputDirectory>${basedir}/target/opt/app/subscriber/etc</outputDirectory>
312 <directory>${basedir}/src/main/resources</directory>
314 <include>*.properties</include>
323 <groupId>org.apache.maven.plugins</groupId>
324 <artifactId>maven-dependency-plugin</artifactId>
325 <version>2.10</version>
328 <id>copy-dependencies</id>
329 <phase>package</phase>
331 <goal>copy-dependencies</goal>
334 <outputDirectory>${project.build.directory}/opt/app/subscriber/lib</outputDirectory>
335 <overWriteReleases>false</overWriteReleases>
336 <overWriteSnapshots>false</overWriteSnapshots>
337 <overWriteIfNewer>true</overWriteIfNewer>
343 <groupId>org.apache.maven.plugins</groupId>
344 <artifactId>maven-source-plugin</artifactId>
345 <version>2.2.1</version>
348 <id>attach-sources</id>
350 <goal>jar-no-fork</goal>
356 <groupId>org.jacoco</groupId>
357 <artifactId>jacoco-maven-plugin</artifactId>
358 <version>${jacoco.version}</version>
361 <exclude>**/gen/**</exclude>
362 <exclude>**/generated-sources/**</exclude>
363 <exclude>**/yang-gen/**</exclude>
364 <exclude>**/pax/**</exclude>
369 <id>pre-unit-test</id>
371 <goal>prepare-agent</goal>
374 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
375 <propertyName>surefireArgLine</propertyName>
379 <id>post-unit-test</id>
385 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
386 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
390 <id>pre-integration-test</id>
391 <phase>pre-integration-test</phase>
393 <goal>prepare-agent</goal>
396 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
397 <propertyName>failsafeArgLine</propertyName>
401 <id>post-integration-test</id>
402 <phase>post-integration-test</phase>
407 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
408 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>