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-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>com.google.guava</groupId>
46 <artifactId>guava</artifactId>
47 <version>${google.guava.version}</version>
50 <groupId>commons-codec</groupId>
51 <artifactId>commons-codec</artifactId>
52 <version>${commons-codec.version}</version>
55 <groupId>org.eclipse.jetty</groupId>
56 <artifactId>jetty-server</artifactId>
57 <version>${jetty.version}</version>
60 <groupId>org.eclipse.jetty</groupId>
61 <artifactId>jetty-continuation</artifactId>
62 <version>${jetty.version}</version>
65 <groupId>org.eclipse.jetty</groupId>
66 <artifactId>jetty-util</artifactId>
67 <version>${jetty.version}</version>
70 <groupId>org.eclipse.jetty</groupId>
71 <artifactId>jetty-deploy</artifactId>
72 <version>${jetty.version}</version>
75 <groupId>org.eclipse.jetty</groupId>
76 <artifactId>jetty-servlet</artifactId>
77 <version>${jetty.version}</version>
80 <groupId>org.eclipse.jetty</groupId>
81 <artifactId>jetty-servlets</artifactId>
82 <version>${jetty.version}</version>
85 <groupId>org.eclipse.jetty</groupId>
86 <artifactId>jetty-http</artifactId>
87 <version>${jetty.version}</version>
90 <groupId>org.eclipse.jetty</groupId>
91 <artifactId>jetty-security</artifactId>
92 <version>${jetty.version}</version>
95 <groupId>org.eclipse.jetty</groupId>
96 <artifactId>jetty-websocket</artifactId>
97 <version>${jetty.websocket.version}</version>
100 <groupId>org.eclipse.jetty</groupId>
101 <artifactId>jetty-io</artifactId>
102 <version>${jetty.version}</version>
105 <groupId>com.thoughtworks.xstream</groupId>
106 <artifactId>xstream</artifactId>
107 <version>${thoughtworks.version}</version>
110 <groupId>ch.qos.logback</groupId>
111 <artifactId>logback-classic</artifactId>
112 <version>${qos.logback.version}</version>
113 <scope>compile</scope>
116 <groupId>ch.qos.logback</groupId>
117 <artifactId>logback-core</artifactId>
118 <version>${qos.logback.version}</version>
119 <scope>compile</scope>
122 <groupId>org.apache.httpcomponents</groupId>
123 <artifactId>httpclient</artifactId>
124 <version>4.5.3</version>
127 <groupId>org.sonatype.http-testing-harness</groupId>
128 <artifactId>junit-runner</artifactId>
129 <version>0.11</version>
132 <groupId>org.databene</groupId>
133 <artifactId>contiperf</artifactId>
138 <groupId>junit</groupId>
139 <artifactId>junit</artifactId>
140 <version>4.10</version>
144 <groupId>log4j</groupId>
145 <artifactId>log4j</artifactId>
146 <version>1.2.17</version>
147 <scope>compile</scope>
150 <groupId>org.apache.commons</groupId>
151 <artifactId>commons-io</artifactId>
152 <version>1.3.2</version>
159 <skipDockerBuild>false</skipDockerBuild>
160 <skipDockerTag>false</skipDockerTag>
161 <skipTests>true</skipTests>
166 <groupId>com.spotify</groupId>
167 <artifactId>docker-maven-plugin</artifactId>
168 <version>1.0.0</version>
170 <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}</imageName>
171 <dockerDirectory>${docker.location}</dockerDirectory>
172 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
173 <skipDockerBuild>false</skipDockerBuild>
175 <imageTag>${project.version}</imageTag>
176 <imageTag>latest</imageTag>
178 <forceTags>true</forceTags>
181 <targetPath>/</targetPath>
182 <directory>${project.basedir}</directory>
184 <exclude>target/**/*</exclude>
185 <exclude>pom.xml</exclude>
190 <targetPath>/</targetPath>
191 <directory>${project.build.directory}</directory>
192 <include>**/**</include>
202 <finalName>datarouter-subscriber</finalName>
205 <directory>src/main/resources</directory>
206 <filtering>true</filtering>
208 <include>**/*.properties</include>
212 <directory>src/main/resources</directory>
213 <filtering>true</filtering>
215 <include>**/subscriber.properties</include>
219 <directory>src/main/resources</directory>
220 <filtering>true</filtering>
222 <include>**/log4j.properties</include>
226 <directory>src/test/resources</directory>
227 <filtering>true</filtering>
229 <include>**/log4j.properties</include>
235 <artifactId>maven-assembly-plugin</artifactId>
236 <version>2.4</version>
239 <descriptorRef>jar-with-dependencies</descriptorRef>
241 <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
244 <addClasspath>true</addClasspath>
245 <mainClass>org.onap.dmaap.datarouter.subscriber.SubscriberMain</mainClass>
251 <id>make-assembly</id>
252 <!-- this is used for inheritance merges -->
253 <phase>package</phase>
254 <!-- bind to the packaging phase -->
262 <groupId>org.apache.maven.plugins</groupId>
263 <artifactId>maven-compiler-plugin</artifactId>
268 <version>3.6.0</version>
271 <artifactId>maven-resources-plugin</artifactId>
272 <version>2.7</version>
275 <id>copy-docker-file</id>
276 <phase>package</phase>
278 <goal>copy-resources</goal>
281 <outputDirectory>${docker.location}</outputDirectory>
282 <overwrite>true</overwrite>
285 <directory>${basedir}/src/main/resources/docker</directory>
286 <filtering>true</filtering>
288 <include>**/*</include>
295 <id>copy-resources-1</id>
296 <phase>validate</phase>
298 <goal>copy-resources</goal>
301 <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
304 <directory>${project.basedir}/src/main/resources</directory>
306 <include>**/*.jar</include>
313 <id>copy-resources-2</id>
314 <phase>validate</phase>
316 <goal>copy-resources</goal>
319 <outputDirectory>${basedir}/target/opt/app/subscriber/etc</outputDirectory>
322 <directory>${basedir}/src/main/resources</directory>
324 <include>*.properties</include>
333 <groupId>org.apache.maven.plugins</groupId>
334 <artifactId>maven-dependency-plugin</artifactId>
335 <version>2.10</version>
338 <id>copy-dependencies</id>
339 <phase>package</phase>
341 <goal>copy-dependencies</goal>
344 <outputDirectory>${project.build.directory}/opt/app/subscriber/lib</outputDirectory>
345 <overWriteReleases>false</overWriteReleases>
346 <overWriteSnapshots>false</overWriteSnapshots>
347 <overWriteIfNewer>true</overWriteIfNewer>
353 <groupId>org.apache.maven.plugins</groupId>
354 <artifactId>maven-source-plugin</artifactId>
355 <version>2.2.1</version>
358 <id>attach-sources</id>
360 <goal>jar-no-fork</goal>
366 <groupId>org.jacoco</groupId>
367 <artifactId>jacoco-maven-plugin</artifactId>
368 <version>${jacoco.version}</version>
371 <exclude>**/gen/**</exclude>
372 <exclude>**/generated-sources/**</exclude>
373 <exclude>**/yang-gen/**</exclude>
374 <exclude>**/pax/**</exclude>
379 <id>pre-unit-test</id>
381 <goal>prepare-agent</goal>
384 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
385 <propertyName>surefireArgLine</propertyName>
389 <id>post-unit-test</id>
395 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
396 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
400 <id>pre-integration-test</id>
401 <phase>pre-integration-test</phase>
403 <goal>prepare-agent</goal>
406 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
407 <propertyName>failsafeArgLine</propertyName>
411 <id>post-integration-test</id>
412 <phase>post-integration-test</phase>
417 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
418 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>