blob: d7930ffcc90647ccfbbcb3a1027d66b809881865 [file] [log] [blame]
Sunil Unnava3ccc06f2018-02-22 16:48:55 -05001<!-- ============LICENSE_START=======================================================
2 org.onap.dmaap ================================================================================
3 Copyright © 2017 AT&T Intellectual Property. All rights reserved. ================================================================================
4 Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 use this file except in compliance with the License. You may obtain a copy
6 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
7 by applicable law or agreed to in writing, software distributed under the
8 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
9 OF ANY KIND, either express or implied. See the License for the specific
10 language governing permissions and limitations under the License. ============LICENSE_END=========================================================
11 ECOMP is a trademark and service mark of AT&T Intellectual Property. -->
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050012<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
14 <modelVersion>4.0.0</modelVersion>
15 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
16 <artifactId>dmaapClient</artifactId>
17 <packaging>jar</packaging>
sunil unnava27219252018-06-14 18:05:40 -040018 <version>1.1.7-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>
Varun Gudisena7d45c172017-08-31 10:44:28 -050021 <url>https://github.com/att/dmaap-framework</url>
22
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050023 <parent>
24 <groupId>org.onap.oparent</groupId>
25 <artifactId>oparent</artifactId>
Gildas Lanilise2e093e2018-03-15 17:39:27 -070026 <version>1.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 unnava27219252018-06-14 18:05:40 -040032 <jersey.version>2.26</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 Unnava3ccc06f2018-02-22 16:48:55 -050035
36 <!-- 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>
66 <email></email>
67 <organization>ATT</organization>
68 <organizationUrl>www.att.com</organizationUrl>
69 </developer>
70 <developer>
71 <name>Ramkumar</name>
72 <email></email>
73 <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>
119 </exclusions>
120 </dependency>
121 <!-- Begin - Dependency on log4j for logging purpose -->
122 <dependency>
123 <groupId>log4j</groupId>
124 <artifactId>log4j</artifactId>
125 <version>1.2.17</version>
126 </dependency>
127 <!-- Log4j's enhanced pattern layout is shipped separately -->
128 <dependency>
129 <groupId>log4j</groupId>
130 <artifactId>apache-log4j-extras</artifactId>
131 <version>1.2.17</version>
132 </dependency>
133 <!-- End - Dependency on log4j for logging purpose -->
134
135 <dependency>
136 <groupId>javax.ws.rs</groupId>
137 <artifactId>javax.ws.rs-api</artifactId>
138 <version>2.0.1</version>
139 </dependency>
140
141 <dependency>
142 <groupId>org.glassfish.jersey.core</groupId>
143 <artifactId>jersey-common</artifactId>
144 <version>${jersey.version}</version>
145 </dependency>
146
147 <dependency>
148 <groupId>org.glassfish.jersey.core</groupId>
149 <artifactId>jersey-client</artifactId>
150 <version>${jersey.version}</version>
151 </dependency>
152
153 <dependency>
154 <groupId>org.glassfish.jersey.media</groupId>
155 <artifactId>jersey-media-json-jackson</artifactId>
156 <version>${jersey.version}</version>
157 </dependency>
158 <dependency>
159 <groupId>junit</groupId>
160 <artifactId>junit</artifactId>
161 <version>4.11</version>
162 <scope>test</scope>
163 </dependency>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500164
rn509j5b7869e2017-10-03 11:07:22 -0400165 <dependency>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500166 <groupId>com.github.tomakehurst</groupId>
167 <artifactId>wiremock</artifactId>
168 <version>2.5.0</version>
169 <scope>test</scope>
rn509j5b7869e2017-10-03 11:07:22 -0400170 </dependency>
171 <dependency>
172 <groupId>org.mockito</groupId>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500173 <artifactId>mockito-core</artifactId>
174 <version>1.10.19</version>
175 <scope>test</scope>
176 </dependency>
177 <dependency>
178 <groupId>org.powermock</groupId>
179 <artifactId>powermock-module-junit4</artifactId>
180 <version>1.6.4</version>
181 <scope>test</scope>
182 </dependency>
183 <dependency>
184 <groupId>org.powermock</groupId>
185 <artifactId>powermock-api-mockito</artifactId>
186 <version>1.6.4</version>
187 <scope>test</scope>
188 </dependency>
189 <dependency>
190 <groupId>org.springframework</groupId>
191 <artifactId>spring-test</artifactId>
192 <version>3.0.5.RELEASE</version>
rn509j5b7869e2017-10-03 11:07:22 -0400193 <scope>test</scope>
194 </dependency>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500195
Varun Gudisenacc9de9b2017-08-30 20:49:32 -0500196 </dependencies>
197
198 <build>
199 <resources>
200 <resource>
201 <directory>src/main/resources</directory>
202 <filtering>true</filtering>
203 <includes>
204 <include>**/MRClientVersion.properties</include>
205 </includes>
206 </resource>
207 <resource>
208 <directory>src/main/resources</directory>
209 <filtering>false</filtering>
210 <excludes>
211 <exclude>**/MRClientVersion.properties</exclude>
212 </excludes>
213 </resource>
214 </resources>
215 <plugins>
216 <plugin>
Varun Gudisena26b93392017-09-21 23:38:33 -0500217 <groupId>org.apache.maven.plugins</groupId>
218 <artifactId>maven-site-plugin</artifactId>
219 <version>3.6</version>
220 <dependencies>
221 <dependency>
222 <groupId>org.apache.maven.wagon</groupId>
223 <artifactId>wagon-webdav-jackrabbit</artifactId>
224 <version>2.10</version>
225 </dependency>
226 </dependencies>
227 </plugin>
228 <plugin>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -0500229 <artifactId>maven-assembly-plugin</artifactId>
230 <version>2.4</version>
231 <configuration>
232 <descriptorRefs>
233 <descriptorRef>jar-with-dependencies</descriptorRef>
234 </descriptorRefs>
235 </configuration>
236
237 <executions>
238 <execution>
239 <id>make-assembly</id> <!-- this is used for inheritance merges -->
240 <phase>package</phase> <!-- bind to the packaging phase -->
241 <goals>
242 <goal>single</goal>
243 </goals>
244 </execution>
245 </executions>
246 </plugin>
247
248
249 <plugin>
250 <groupId>org.apache.maven.plugins</groupId>
251 <artifactId>maven-javadoc-plugin</artifactId>
252 <version>2.10.4</version>
253 <configuration>
254 <additionalparam>-Xdoclint:none</additionalparam>
255 </configuration>
256 <executions>
257 <execution>
258 <id>attach-javadocs</id>
259 <goals>
260 <goal>jar</goal>
261 </goals>
262 </execution>
263 </executions>
264 </plugin>
265 <plugin>
266 <groupId>org.apache.maven.plugins</groupId>
267 <artifactId>maven-source-plugin</artifactId>
268 <version>3.0.0</version>
269 <executions>
270 <execution>
271 <id>attach-sources</id>
272 <goals>
273 <goal>jar-no-fork</goal>
274 </goals>
275 </execution>
276 </executions>
277 </plugin>
278 <plugin>
279 <artifactId>maven-compiler-plugin</artifactId>
280 <version>3.1</version>
281 <configuration>
282 <source>1.7</source>
283 <target>1.7</target>
284 </configuration>
285 </plugin>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500286 <!-- <plugin>
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500287 <groupId>org.jacoco</groupId>
288 <artifactId>jacoco-maven-plugin</artifactId>
289 <version>${jacoco.version}</version>
290 <configuration>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500291 Note: This exclusion list should match <sonar.exclusions> property
292 above
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500293 <excludes>
294 <exclude>**/gen/**</exclude>
295 <exclude>**/generated-sources/**</exclude>
296 <exclude>**/yang-gen/**</exclude>
297 <exclude>**/pax/**</exclude>
298 </excludes>
299 </configuration>
300 <executions>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500301 Prepares the property pointing to the JaCoCo runtime agent which
302 is passed as VM argument when Maven the Surefire plugin is executed.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500303 <execution>
304 <id>pre-unit-test</id>
305 <goals>
306 <goal>prepare-agent</goal>
307 </goals>
308 <configuration>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500309 Sets the path to the file which contains the execution data.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500310 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500311 Sets the name of the property containing the settings for JaCoCo
312 runtime agent.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500313 <propertyName>surefireArgLine</propertyName>
314 </configuration>
315 </execution>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500316 Ensures that the code coverage report for unit tests is created
317 after unit tests have been run.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500318 <execution>
319 <id>post-unit-test</id>
320 <phase>test</phase>
321 <goals>
322 <goal>report</goal>
323 </goals>
324 <configuration>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500325 Sets the path to the file which contains the execution data.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500326 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500327 Sets the output directory for the code coverage report.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500328 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
329 </configuration>
330 </execution>
331 <execution>
332 <id>pre-integration-test</id>
333 <phase>pre-integration-test</phase>
334 <goals>
335 <goal>prepare-agent</goal>
336 </goals>
337 <configuration>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500338 Sets the path to the file which contains the execution data.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500339 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500340 Sets the name of the property containing the settings for JaCoCo
341 runtime agent.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500342 <propertyName>failsafeArgLine</propertyName>
343 </configuration>
344 </execution>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500345 Ensures that the code coverage report for integration tests after
346 integration tests have been run.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500347 <execution>
348 <id>post-integration-test</id>
349 <phase>post-integration-test</phase>
350 <goals>
351 <goal>report</goal>
352 </goals>
353 <configuration>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500354 Sets the path to the file which contains the execution data.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500355 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500356 Sets the output directory for the code coverage report.
Sunil Unnava3ccc06f2018-02-22 16:48:55 -0500357 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
358 </configuration>
359 </execution>
360 </executions>
Sunil Unnava173a07c2018-03-06 11:41:18 -0500361 </plugin> -->
Varun Gudisenacc9de9b2017-08-30 20:49:32 -0500362 </plugins>
363 </build>
364
365 <profiles>
366 <!-- Add plugins here that should only be executed on the Jenkins server -->
367 <profile>
368 <id>jenkins</id>
369 <activation>
370 <property>
371 <name>env.BUILD_NUMBER</name>
372 </property>
373 </activation>
374 <build>
375 <plugins>
376 <plugin>
377 <groupId>org.codehaus.mojo</groupId>
378 <artifactId>cobertura-maven-plugin</artifactId>
379 </plugin>
380 </plugins>
381 </build>
382 </profile>
383 </profiles>
384</project>