blob: 842b11c4af9deea9e5e87ead54810ac1c4d96678 [file] [log] [blame]
Gary Wu6454abb2018-08-24 15:22:40 -07001<?xml version="1.0"?>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -05002<!-- ============LICENSE_START=======================================================
3 org.onap.dmaap ================================================================================
4 Copyright © 2017 AT&T Intellectual Property. All rights reserved. ================================================================================
5 Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 use this file except in compliance with the License. You may obtain a copy
7 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
8 by applicable law or agreed to in writing, software distributed under the
9 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
10 OF ANY KIND, either express or implied. See the License for the specific
11 language governing permissions and limitations under the License. ============LICENSE_END=========================================================
12 ECOMP is a trademark and service mark of AT&T Intellectual Property. -->
Gary Wu6454abb2018-08-24 15:22:40 -070013<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">
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050014 <modelVersion>4.0.0</modelVersion>
15 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
16 <artifactId>dmaapClient</artifactId>
17 <packaging>jar</packaging>
su622b3815da02019-06-28 00:25:50 -040018 <version>1.1.10-SNAPSHOT</version>
Jessica Wagantall7d1a1562017-09-08 13:31:51 -070019 <name>dmaap-messagerouter-dmaapclient</name>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050020 <description>Client library for MR event routing API</description>
sunil.unnavadcb14792019-05-10 11:21:44 -040021 <url>https://gerrit.onap.org/r/gitweb?p=dmaap/messagerouter/dmaapclient.git</url>
Varun Gudisena7d45c172017-08-31 10:44:28 -050022
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050023 <parent>
24 <groupId>org.onap.oparent</groupId>
25 <artifactId>oparent</artifactId>
su622b050efb32019-11-20 15:13:53 -050026 <version>2.1.0</version>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050027 </parent>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050028 <properties>
29 <!-- for the client library, we want to allow 1.6 or later -->
30 <maven.compiler.target>1.7</maven.compiler.target>
31 <maven.compiler.source>1.7</maven.compiler.source>
sunil unnava4cb1f9a2018-08-30 16:25:20 -040032 <jersey.version>2.22.1</jersey.version>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -050033 <version.jackson.core>2.6.7.1</version.jackson.core>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050034 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
sunil unnava5056c3d2018-10-26 12:17:29 -040035 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -050036 <!-- SONAR -->
37 <jacoco.version>0.7.7.201606060606</jacoco.version>
38 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
39 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
40 <!-- Default Sonar configuration -->
41 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
42 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
43 <!-- Note: This list should match jacoco-maven-plugin's exclusion list
44 below -->
45 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
46 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/dmaapclient/${project.artifactId}/${project.version}</sitePath>
Varun Gudisena90a9a1d2017-09-25 11:11:32 -050047 <nexusproxy>https://nexus.onap.org</nexusproxy>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050048 </properties>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -050049
Varun Gudisena26b93392017-09-21 23:38:33 -050050 <distributionManagement>
51 <site>
52 <id>ecomp-site</id>
53 <url>dav:${nexusproxy}${sitePath}</url>
54 </site>
55 </distributionManagement>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050056
Sunil Unnava3ccc06f2018-02-22 16:48:55 -050057 <licenses>
58 <license>
59 <name>Apache License Version 2.0</name>
60 </license>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050061 </licenses>
62
63 <developers>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -050064 <developer>
65 <name>Rajashree</name>
Gary Wu6454abb2018-08-24 15:22:40 -070066 <email/>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -050067 <organization>ATT</organization>
68 <organizationUrl>www.att.com</organizationUrl>
69 </developer>
70 <developer>
71 <name>Ramkumar</name>
Gary Wu6454abb2018-08-24 15:22:40 -070072 <email/>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -050073 <organization>ATT</organization>
74 <organizationUrl>www.att.com</organizationUrl>
75 </developer>
76 </developers>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050077
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050078 <dependencies>
79 <dependency>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -050080 <groupId>com.fasterxml.jackson.core</groupId>
81 <artifactId>jackson-core</artifactId>
Sunil Unnava41de4532018-03-08 13:50:34 -050082 <version>2.8.11</version>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -050083 </dependency>
84 <dependency>
85 <groupId>com.fasterxml.jackson.core</groupId>
86 <artifactId>jackson-databind</artifactId>
Sunil Unnava41de4532018-03-08 13:50:34 -050087 <version>2.8.11.1</version>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -050088 </dependency>
89 <dependency>
90 <groupId>org.apache.httpcomponents</groupId>
91 <artifactId>httpclient-cache</artifactId>
92 <version>4.5.3</version>
93 </dependency>
94 <dependency>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050095 <groupId>com.att.nsa</groupId>
96 <artifactId>saClientLibrary</artifactId>
97 <version>0.0.1</version>
98 </dependency>
99
100 <dependency>
101 <groupId>org.json</groupId>
102 <artifactId>json</artifactId>
103 <version>20131018</version>
104 </dependency>
105
106 <dependency>
107 <groupId>com.att.aft</groupId>
108 <artifactId>dme2</artifactId>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500109 <version>3.1.200-oss</version>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -0500110 <exclusions>
111 <exclusion>
112 <groupId>com.sun.jersey</groupId>
113 <artifactId>jersey-json</artifactId>
114 </exclusion>
115 <exclusion>
116 <groupId>com.sun.jersey</groupId>
117 <artifactId>jersey-client</artifactId>
118 </exclusion>
sunil unnavaca985372018-10-30 12:28:04 -0400119 <exclusion>
120 <groupId>javax.jms</groupId>
121 <artifactId>jms</artifactId>
122 </exclusion>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -0500123 </exclusions>
124 </dependency>
125 <!-- Begin - Dependency on log4j for logging purpose -->
126 <dependency>
127 <groupId>log4j</groupId>
128 <artifactId>log4j</artifactId>
129 <version>1.2.17</version>
130 </dependency>
131 <!-- Log4j's enhanced pattern layout is shipped separately -->
132 <dependency>
133 <groupId>log4j</groupId>
134 <artifactId>apache-log4j-extras</artifactId>
135 <version>1.2.17</version>
136 </dependency>
137 <!-- End - Dependency on log4j for logging purpose -->
138
139 <dependency>
140 <groupId>javax.ws.rs</groupId>
141 <artifactId>javax.ws.rs-api</artifactId>
142 <version>2.0.1</version>
143 </dependency>
144
145 <dependency>
146 <groupId>org.glassfish.jersey.core</groupId>
147 <artifactId>jersey-common</artifactId>
148 <version>${jersey.version}</version>
149 </dependency>
150
151 <dependency>
152 <groupId>org.glassfish.jersey.core</groupId>
153 <artifactId>jersey-client</artifactId>
154 <version>${jersey.version}</version>
155 </dependency>
156
157 <dependency>
158 <groupId>org.glassfish.jersey.media</groupId>
159 <artifactId>jersey-media-json-jackson</artifactId>
160 <version>${jersey.version}</version>
161 </dependency>
162 <dependency>
163 <groupId>junit</groupId>
164 <artifactId>junit</artifactId>
165 <version>4.11</version>
166 <scope>test</scope>
167 </dependency>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500168
rn509j5b7869e2017-10-03 11:07:22 -0400169 <dependency>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500170 <groupId>com.github.tomakehurst</groupId>
171 <artifactId>wiremock</artifactId>
172 <version>2.5.0</version>
173 <scope>test</scope>
rn509j5b7869e2017-10-03 11:07:22 -0400174 </dependency>
175 <dependency>
176 <groupId>org.mockito</groupId>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500177 <artifactId>mockito-core</artifactId>
178 <version>1.10.19</version>
179 <scope>test</scope>
180 </dependency>
181 <dependency>
182 <groupId>org.powermock</groupId>
183 <artifactId>powermock-module-junit4</artifactId>
184 <version>1.6.4</version>
185 <scope>test</scope>
186 </dependency>
187 <dependency>
188 <groupId>org.powermock</groupId>
189 <artifactId>powermock-api-mockito</artifactId>
190 <version>1.6.4</version>
191 <scope>test</scope>
192 </dependency>
193 <dependency>
194 <groupId>org.springframework</groupId>
195 <artifactId>spring-test</artifactId>
196 <version>3.0.5.RELEASE</version>
rn509j5b7869e2017-10-03 11:07:22 -0400197 <scope>test</scope>
198 </dependency>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500199
Varun Gudisenacc9de9b2017-08-30 20:49:32 -0500200 </dependencies>
201
202 <build>
203 <resources>
204 <resource>
205 <directory>src/main/resources</directory>
206 <filtering>true</filtering>
207 <includes>
208 <include>**/MRClientVersion.properties</include>
209 </includes>
210 </resource>
211 <resource>
212 <directory>src/main/resources</directory>
213 <filtering>false</filtering>
214 <excludes>
215 <exclude>**/MRClientVersion.properties</exclude>
216 </excludes>
217 </resource>
218 </resources>
219 <plugins>
220 <plugin>
Varun Gudisena26b93392017-09-21 23:38:33 -0500221 <groupId>org.apache.maven.plugins</groupId>
222 <artifactId>maven-site-plugin</artifactId>
223 <version>3.6</version>
224 <dependencies>
225 <dependency>
226 <groupId>org.apache.maven.wagon</groupId>
227 <artifactId>wagon-webdav-jackrabbit</artifactId>
228 <version>2.10</version>
229 </dependency>
230 </dependencies>
231 </plugin>
232 <plugin>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -0500233 <artifactId>maven-assembly-plugin</artifactId>
234 <version>2.4</version>
235 <configuration>
236 <descriptorRefs>
237 <descriptorRef>jar-with-dependencies</descriptorRef>
238 </descriptorRefs>
239 </configuration>
240
241 <executions>
242 <execution>
243 <id>make-assembly</id> <!-- this is used for inheritance merges -->
244 <phase>package</phase> <!-- bind to the packaging phase -->
245 <goals>
246 <goal>single</goal>
247 </goals>
248 </execution>
249 </executions>
250 </plugin>
251
252
253 <plugin>
254 <groupId>org.apache.maven.plugins</groupId>
255 <artifactId>maven-javadoc-plugin</artifactId>
256 <version>2.10.4</version>
257 <configuration>
258 <additionalparam>-Xdoclint:none</additionalparam>
259 </configuration>
260 <executions>
261 <execution>
262 <id>attach-javadocs</id>
263 <goals>
264 <goal>jar</goal>
265 </goals>
266 </execution>
267 </executions>
268 </plugin>
269 <plugin>
270 <groupId>org.apache.maven.plugins</groupId>
271 <artifactId>maven-source-plugin</artifactId>
272 <version>3.0.0</version>
273 <executions>
274 <execution>
275 <id>attach-sources</id>
276 <goals>
277 <goal>jar-no-fork</goal>
278 </goals>
279 </execution>
280 </executions>
281 </plugin>
282 <plugin>
283 <artifactId>maven-compiler-plugin</artifactId>
284 <version>3.1</version>
285 <configuration>
286 <source>1.7</source>
287 <target>1.7</target>
288 </configuration>
289 </plugin>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500290 <!-- <plugin>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500291 <groupId>org.jacoco</groupId>
292 <artifactId>jacoco-maven-plugin</artifactId>
293 <version>${jacoco.version}</version>
294 <configuration>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500295 Note: This exclusion list should match <sonar.exclusions> property
296 above
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500297 <excludes>
298 <exclude>**/gen/**</exclude>
299 <exclude>**/generated-sources/**</exclude>
300 <exclude>**/yang-gen/**</exclude>
301 <exclude>**/pax/**</exclude>
302 </excludes>
303 </configuration>
304 <executions>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500305 Prepares the property pointing to the JaCoCo runtime agent which
306 is passed as VM argument when Maven the Surefire plugin is executed.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500307 <execution>
308 <id>pre-unit-test</id>
309 <goals>
310 <goal>prepare-agent</goal>
311 </goals>
312 <configuration>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500313 Sets the path to the file which contains the execution data.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500314 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500315 Sets the name of the property containing the settings for JaCoCo
316 runtime agent.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500317 <propertyName>surefireArgLine</propertyName>
318 </configuration>
319 </execution>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500320 Ensures that the code coverage report for unit tests is created
321 after unit tests have been run.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500322 <execution>
323 <id>post-unit-test</id>
324 <phase>test</phase>
325 <goals>
326 <goal>report</goal>
327 </goals>
328 <configuration>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500329 Sets the path to the file which contains the execution data.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500330 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500331 Sets the output directory for the code coverage report.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500332 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
333 </configuration>
334 </execution>
335 <execution>
336 <id>pre-integration-test</id>
337 <phase>pre-integration-test</phase>
338 <goals>
339 <goal>prepare-agent</goal>
340 </goals>
341 <configuration>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500342 Sets the path to the file which contains the execution data.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500343 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500344 Sets the name of the property containing the settings for JaCoCo
345 runtime agent.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500346 <propertyName>failsafeArgLine</propertyName>
347 </configuration>
348 </execution>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500349 Ensures that the code coverage report for integration tests after
350 integration tests have been run.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500351 <execution>
352 <id>post-integration-test</id>
353 <phase>post-integration-test</phase>
354 <goals>
355 <goal>report</goal>
356 </goals>
357 <configuration>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500358 Sets the path to the file which contains the execution data.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500359 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500360 Sets the output directory for the code coverage report.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500361 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
362 </configuration>
363 </execution>
364 </executions>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500365 </plugin> -->
Varun Gudisenacc9de9b2017-08-30 20:49:32 -0500366 </plugins>
367 </build>
368
369 <profiles>
370 <!-- Add plugins here that should only be executed on the Jenkins server -->
371 <profile>
372 <id>jenkins</id>
373 <activation>
374 <property>
375 <name>env.BUILD_NUMBER</name>
376 </property>
377 </activation>
378 <build>
379 <plugins>
380 <plugin>
381 <groupId>org.codehaus.mojo</groupId>
382 <artifactId>cobertura-maven-plugin</artifactId>
383 </plugin>
384 </plugins>
385 </build>
386 </profile>
387 </profiles>
388</project>