[DMAAP-CLIENT] Release 1.1.14
[dmaap/messagerouter/dmaapclient.git] / pom.xml
1 <?xml version="1.0"?>
2 <!--
3   ============LICENSE_START==============================================
4         org.onap.dmaap
5         =======================================================================
6         Copyright © 2017 AT&T Intellectual Property. All rights reserved.
7         =======================================================================
8         Licensed under the Apache License, Version 2.0 (the "License");
9         you may not use this file except in compliance with the License.
10         You may obtain a copy of the License at
11
12                   http://www.apache.org/licenses/LICENSE-2.0
13
14         Unless required by applicable law or agreed to in writing, software
15         distributed under the License is distributed on an "AS IS" BASIS,
16         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17         See the License for the specific language governing permissions and
18         limitations under the License.
19         ============LICENSE_END================================================
20         ECOMP is a trademark and service mark of AT&T Intellectual Property.
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
25
26     <modelVersion>4.0.0</modelVersion>
27     <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
28     <artifactId>dmaapClient</artifactId>
29     <packaging>jar</packaging>
30     <version>1.1.15-SNAPSHOT</version>
31     <name>dmaap-messagerouter-dmaapclient</name>
32     <description>Client library for MR event routing API</description>
33     <url>https://gerrit.onap.org/r/gitweb?p=dmaap/messagerouter/dmaapclient.git</url>
34
35     <parent>
36         <groupId>org.onap.oparent</groupId>
37         <artifactId>oparent</artifactId>
38         <version>3.2.0</version>
39     </parent>
40
41     <properties>
42         <jersey.version>2.34</jersey.version>
43         <version.jackson.core>2.6.7.1</version.jackson.core>
44         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
46         <sonar.language>java</sonar.language>
47         <sonar.skip>false</sonar.skip>
48         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
49         </sonar.surefire.reportsPath>
50         <sonar.coverage.jacoco.xmlReportPaths>
51             ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
52         </sonar.coverage.jacoco.xmlReportPaths>
53         <sonar.projectVersion>${project.version}</sonar.projectVersion>
54         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**
55         </sonar.exclusions>
56         <sitePath>
57             /content/sites/site/org/onap/dmaap/messagerouter/dmaapclient/${project.artifactId}/${project.version}
58         </sitePath>
59         <nexusproxy>https://nexus.onap.org</nexusproxy>
60     </properties>
61
62     <distributionManagement>
63         <site>
64             <id>ecomp-site</id>
65             <url>dav:${nexusproxy}${sitePath}</url>
66         </site>
67     </distributionManagement>
68
69     <licenses>
70         <license>
71             <name>Apache License Version 2.0</name>
72         </license>
73     </licenses>
74
75     <developers>
76         <developer>
77             <name>Rajashree</name>
78             <email/>
79             <organization>ATT</organization>
80             <organizationUrl>www.att.com</organizationUrl>
81         </developer>
82         <developer>
83             <name>Ramkumar</name>
84             <email/>
85             <organization>ATT</organization>
86             <organizationUrl>www.att.com</organizationUrl>
87         </developer>
88     </developers>
89
90     <dependencies>
91         <dependency>
92             <groupId>commons-codec</groupId>
93             <artifactId>commons-codec</artifactId>
94             <version>1.15</version>
95         </dependency>
96         <dependency>
97             <groupId>org.javassist</groupId>
98             <artifactId>javassist</artifactId>
99             <version>3.27.0-GA</version>
100         </dependency>
101         <dependency>
102             <groupId>com.fasterxml.jackson.core</groupId>
103             <artifactId>jackson-core</artifactId>
104             <version>2.11.2</version>
105         </dependency>
106         <dependency>
107             <groupId>com.fasterxml.jackson.core</groupId>
108             <artifactId>jackson-databind</artifactId>
109             <version>2.13.3</version>
110         </dependency>
111         <dependency>
112             <groupId>org.apache.httpcomponents</groupId>
113             <artifactId>httpclient-cache</artifactId>
114             <version>4.5.13</version>
115         </dependency>
116         <dependency>
117             <groupId>com.att.nsa</groupId>
118             <artifactId>saClientLibrary</artifactId>
119             <version>0.0.1</version>
120         </dependency>
121         <dependency>
122             <groupId>org.json</groupId>
123             <artifactId>json</artifactId>
124             <version>20220320</version>
125         </dependency>
126         <dependency>
127             <groupId>com.att.aft</groupId>
128             <artifactId>dme2</artifactId>
129             <version>3.1.200-oss</version>
130             <exclusions>
131                 <exclusion>
132                     <groupId>com.sun.jersey</groupId>
133                     <artifactId>jersey-json</artifactId>
134                 </exclusion>
135                 <exclusion>
136                     <groupId>com.sun.jersey</groupId>
137                     <artifactId>jersey-client</artifactId>
138                 </exclusion>
139                 <exclusion>
140                     <groupId>javax.jms</groupId>
141                     <artifactId>jms</artifactId>
142                 </exclusion>
143             </exclusions>
144         </dependency>
145         <dependency>
146             <groupId>jakarta.xml.bind</groupId>
147             <artifactId>jakarta.xml.bind-api</artifactId>
148             <version>2.3.2</version>
149         </dependency>
150         <!-- Runtime, com.sun.xml.bind module -->
151         <dependency>
152             <groupId>org.glassfish.jaxb</groupId>
153             <artifactId>jaxb-runtime</artifactId>
154             <version>2.3.2</version>
155         </dependency>
156         <dependency>
157             <groupId>commons-io</groupId>
158             <artifactId>commons-io</artifactId>
159             <version>2.7</version>
160         </dependency>
161         <dependency>
162             <groupId>javax.ws.rs</groupId>
163             <artifactId>javax.ws.rs-api</artifactId>
164             <version>2.0.1</version>
165         </dependency>
166         <dependency>
167             <groupId>org.glassfish.jersey.core</groupId>
168             <artifactId>jersey-common</artifactId>
169             <version>${jersey.version}</version>
170         </dependency>
171         <dependency>
172             <groupId>org.glassfish.jersey.connectors</groupId>
173             <artifactId>jersey-apache-connector</artifactId>
174             <version>${jersey.version}</version>
175         </dependency>
176         <dependency>
177             <groupId>org.glassfish.jersey.core</groupId>
178             <artifactId>jersey-client</artifactId>
179             <version>${jersey.version}</version>
180         </dependency>
181         <dependency>
182             <groupId>org.glassfish.jersey.media</groupId>
183             <artifactId>jersey-media-json-jackson</artifactId>
184             <version>${jersey.version}</version>
185         </dependency>
186         <dependency>
187         <groupId>org.glassfish.jersey.inject</groupId>
188         <artifactId>jersey-hk2</artifactId>
189         <version>${jersey.version}</version>
190         <exclusions>
191             <exclusion>
192                 <groupId>org.glassfish.hk2.external</groupId>
193                 <artifactId>javax.inject</artifactId>
194             </exclusion>
195             <exclusion>
196                 <groupId>javax.annotation</groupId>
197                 <artifactId>javax.annotation-api</artifactId>
198             </exclusion>
199             <exclusion>
200                 <groupId>org.javassist</groupId>
201                 <artifactId>javassist</artifactId>
202             </exclusion>
203         </exclusions>
204     </dependency>
205     <dependency>
206             <groupId>junit</groupId>
207             <artifactId>junit</artifactId>
208             <version>4.11</version>
209             <scope>test</scope>
210         </dependency>
211         <dependency>
212             <groupId>com.github.tomakehurst</groupId>
213             <artifactId>wiremock</artifactId>
214             <version>2.5.0</version>
215             <scope>test</scope>
216         </dependency>
217         <dependency>
218             <groupId>org.mockito</groupId>
219             <artifactId>mockito-core</artifactId>
220             <version>2.18.0</version>
221             <scope>test</scope>
222         </dependency>
223         <dependency>
224             <groupId>org.powermock</groupId>
225             <artifactId>powermock-module-junit4</artifactId>
226             <version>2.0.0-beta.5</version>
227             <scope>test</scope>
228         </dependency>
229         <dependency>
230             <groupId>org.powermock</groupId>
231             <artifactId>powermock-api-mockito2</artifactId>
232             <version>2.0.0-beta.5</version>
233             <scope>test</scope>
234         </dependency>
235         <dependency>
236             <groupId>org.springframework</groupId>
237             <artifactId>spring-test</artifactId>
238             <version>3.0.5.RELEASE</version>
239             <scope>test</scope>
240         </dependency>
241     </dependencies>
242
243     <build>
244         <resources>
245             <resource>
246                 <directory>src/main/resources</directory>
247                 <filtering>true</filtering>
248                 <includes>
249                     <include>**/MRClientVersion.properties</include>
250                 </includes>
251             </resource>
252             <resource>
253                 <directory>src/main/resources</directory>
254                 <filtering>false</filtering>
255                 <excludes>
256                     <exclude>**/MRClientVersion.properties</exclude>
257                 </excludes>
258             </resource>
259         </resources>
260         <plugins>
261             <plugin>
262                 <groupId>org.apache.maven.plugins</groupId>
263                 <artifactId>maven-site-plugin</artifactId>
264                 <version>3.6</version>
265                 <dependencies>
266                     <dependency>
267                         <groupId>org.apache.maven.wagon</groupId>
268                         <artifactId>wagon-webdav-jackrabbit</artifactId>
269                         <version>2.10</version>
270                     </dependency>
271                 </dependencies>
272             </plugin>
273             <plugin>
274                 <groupId>org.apache.maven.plugins</groupId>
275                 <artifactId>maven-compiler-plugin</artifactId>
276                 <configuration>
277                     <source>11</source>
278                     <target>11</target>
279                 </configuration>
280             </plugin>
281             <plugin>
282                 <artifactId>maven-assembly-plugin</artifactId>
283                 <version>2.4</version>
284                 <configuration>
285                     <descriptorRefs>
286                         <descriptorRef>jar-with-dependencies</descriptorRef>
287                     </descriptorRefs>
288                 </configuration>
289
290                 <executions>
291                     <execution>
292                         <id>make-assembly</id> <!-- this is used for inheritance merges -->
293                         <phase>package</phase> <!-- bind to the packaging phase -->
294                         <goals>
295                             <goal>single</goal>
296                         </goals>
297                     </execution>
298                 </executions>
299             </plugin>
300             <plugin>
301                 <artifactId>maven-checkstyle-plugin</artifactId>
302                 <executions>
303                     <execution>
304                         <id>onap-java-style</id>
305                         <configuration>
306                             <consoleOutput>false</consoleOutput>
307                         </configuration>
308                     </execution>
309                 </executions>
310             </plugin>
311             <plugin>
312                 <groupId>org.apache.maven.plugins</groupId>
313                 <artifactId>maven-javadoc-plugin</artifactId>
314                 <version>3.3.1</version>
315                 <configuration>
316                     <failOnError>false</failOnError>
317                     <detectJavaApiLink>false</detectJavaApiLink>
318                     <additionalparam>-Xdoclint:none</additionalparam>
319                 </configuration>
320                 <executions>
321                     <execution>
322                         <id>attach-javadocs</id>
323                         <goals>
324                             <goal>jar</goal>
325                         </goals>
326                     </execution>
327                 </executions>
328             </plugin>
329             <plugin>
330                 <groupId>org.apache.maven.plugins</groupId>
331                 <artifactId>maven-source-plugin</artifactId>
332                 <version>3.0.0</version>
333                 <executions>
334                     <execution>
335                         <id>attach-sources</id>
336                         <goals>
337                             <goal>jar-no-fork</goal>
338                         </goals>
339                     </execution>
340                 </executions>
341             </plugin>
342             <plugin>
343                 <groupId>org.jacoco</groupId>
344                 <artifactId>jacoco-maven-plugin</artifactId>
345                 <executions>
346                     <execution>
347                         <id>prepare-agent</id>
348                         <goals>
349                             <goal>prepare-agent</goal>
350                         </goals>
351                     </execution>
352                     <execution>
353                         <id>report</id>
354                         <goals>
355                             <goal>report</goal>
356                         </goals>
357                         <configuration>
358                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec
359                             </dataFile>
360                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut
361                             </outputDirectory>
362                         </configuration>
363                     </execution>
364                 </executions>
365             </plugin>
366         </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>