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>org.apache.httpcomponents</groupId>
96 <artifactId>httpclient</artifactId>
97 <version>4.5.3</version>
100 <groupId>org.sonatype.http-testing-harness</groupId>
101 <artifactId>junit-runner</artifactId>
102 <version>0.11</version>
105 <groupId>org.databene</groupId>
106 <artifactId>contiperf</artifactId>
111 <groupId>junit</groupId>
112 <artifactId>junit</artifactId>
113 <version>4.10</version>
117 <groupId>log4j</groupId>
118 <artifactId>log4j</artifactId>
119 <version>1.2.17</version>
120 <scope>compile</scope>
127 <skipDockerBuild>false</skipDockerBuild>
128 <skipDockerTag>false</skipDockerTag>
129 <skipTests>true</skipTests>
134 <groupId>com.spotify</groupId>
135 <artifactId>docker-maven-plugin</artifactId>
136 <version>1.0.0</version>
138 <imageName>${onap.nexus.dockerregistry.daily}/${datarouter.prov.image.name}</imageName>
139 <dockerDirectory>${docker.location}</dockerDirectory>
140 <serverId>${onap.nexus.dockerregistry.daily}</serverId>
141 <skipDockerBuild>false</skipDockerBuild>
143 <imageTag>${project.version}</imageTag>
144 <imageTag>latest</imageTag>
146 <forceTags>true</forceTags>
149 <targetPath>/</targetPath>
150 <directory>${project.basedir}</directory>
152 <exclude>target/**/*</exclude>
153 <exclude>pom.xml</exclude>
158 <targetPath>/</targetPath>
159 <directory>${project.build.directory}</directory>
160 <include>**/**</include>
170 <finalName>datarouter-subscriber</finalName>
173 <directory>src/main/resources</directory>
174 <filtering>true</filtering>
176 <include>**/*.properties</include>
180 <directory>src/main/resources</directory>
181 <filtering>true</filtering>
183 <include>**/subscriber.properties</include>
187 <directory>src/main/resources</directory>
188 <filtering>true</filtering>
190 <include>**/log4j.properties</include>
194 <directory>src/test/resources</directory>
195 <filtering>true</filtering>
197 <include>**/log4j.properties</include>
203 <artifactId>maven-assembly-plugin</artifactId>
204 <version>2.4</version>
207 <descriptorRef>jar-with-dependencies</descriptorRef>
209 <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
212 <addClasspath>true</addClasspath>
213 <mainClass>org.onap.dmaap.datarouter.subscriber.Subscriber</mainClass>
219 <id>make-assembly</id>
220 <!-- this is used for inheritance merges -->
221 <phase>package</phase>
222 <!-- bind to the packaging phase -->
230 <groupId>org.apache.maven.plugins</groupId>
231 <artifactId>maven-compiler-plugin</artifactId>
236 <version>3.6.0</version>
239 <artifactId>maven-resources-plugin</artifactId>
240 <version>2.7</version>
243 <id>copy-docker-file</id>
244 <phase>package</phase>
246 <goal>copy-resources</goal>
249 <outputDirectory>${docker.location}</outputDirectory>
250 <overwrite>true</overwrite>
253 <directory>${basedir}/src/main/resources/docker</directory>
254 <filtering>true</filtering>
256 <include>**/*</include>
263 <id>copy-resources-1</id>
264 <phase>validate</phase>
266 <goal>copy-resources</goal>
269 <outputDirectory>${basedir}/target/opt/app/subscriber/lib</outputDirectory>
272 <directory>${project.basedir}/src/main/resources</directory>
274 <include>**/*.jar</include>
281 <id>copy-resources-2</id>
282 <phase>validate</phase>
284 <goal>copy-resources</goal>
287 <outputDirectory>${basedir}/target/opt/app/subscriber/etc</outputDirectory>
290 <directory>${basedir}/src/main/resources</directory>
292 <include>*.properties</include>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-dependency-plugin</artifactId>
303 <version>2.10</version>
306 <id>copy-dependencies</id>
307 <phase>package</phase>
309 <goal>copy-dependencies</goal>
312 <outputDirectory>${project.build.directory}/opt/app/subscriber/lib</outputDirectory>
313 <overWriteReleases>false</overWriteReleases>
314 <overWriteSnapshots>false</overWriteSnapshots>
315 <overWriteIfNewer>true</overWriteIfNewer>
321 <groupId>org.apache.maven.plugins</groupId>
322 <artifactId>maven-source-plugin</artifactId>
323 <version>2.2.1</version>
326 <id>attach-sources</id>
328 <goal>jar-no-fork</goal>
334 <groupId>org.jacoco</groupId>
335 <artifactId>jacoco-maven-plugin</artifactId>
336 <version>${jacoco.version}</version>
339 <exclude>**/gen/**</exclude>
340 <exclude>**/generated-sources/**</exclude>
341 <exclude>**/yang-gen/**</exclude>
342 <exclude>**/pax/**</exclude>
347 <id>pre-unit-test</id>
349 <goal>prepare-agent</goal>
352 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
353 <propertyName>surefireArgLine</propertyName>
357 <id>post-unit-test</id>
363 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
364 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
368 <id>pre-integration-test</id>
369 <phase>pre-integration-test</phase>
371 <goal>prepare-agent</goal>
374 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
375 <propertyName>failsafeArgLine</propertyName>
379 <id>post-integration-test</id>
380 <phase>post-integration-test</phase>
385 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
386 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>