Sonar Cloud migration changes
[dmaap/messagerouter/dmaapclient.git] / pom.xml
1 <?xml version="1.0"?>
2 <!-- ============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. -->
13 <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">
14         <modelVersion>4.0.0</modelVersion>
15         <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
16         <artifactId>dmaapClient</artifactId>
17         <packaging>jar</packaging>
18         <version>1.1.10-SNAPSHOT</version>
19         <name>dmaap-messagerouter-dmaapclient</name>
20         <description>Client library for MR event routing API</description>
21         <url>https://gerrit.onap.org/r/gitweb?p=dmaap/messagerouter/dmaapclient.git</url>
22
23         <parent>
24                 <groupId>org.onap.oparent</groupId>
25                 <artifactId>oparent</artifactId>
26                 <version>2.1.0</version>
27         </parent>
28         <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>
32                 <jersey.version>2.22.1</jersey.version>
33                 <version.jackson.core>2.6.7.1</version.jackson.core>
34                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
36                 <sonar.language>java</sonar.language>
37         <sonar.skip>false</sonar.skip>
38         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
39         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
40         <sonar.projectVersion>${project.version}</sonar.projectVersion>
41                 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
42                 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/dmaapclient/${project.artifactId}/${project.version}</sitePath>
43                 <nexusproxy>https://nexus.onap.org</nexusproxy>
44         </properties>
45
46         <distributionManagement>
47                 <site>
48                         <id>ecomp-site</id>
49                         <url>dav:${nexusproxy}${sitePath}</url>
50                 </site>
51         </distributionManagement>
52
53         <licenses>
54                 <license>
55                         <name>Apache License Version 2.0</name>
56                 </license>
57         </licenses>
58
59         <developers>
60                 <developer>
61                         <name>Rajashree</name>
62                         <email/>
63                         <organization>ATT</organization>
64                         <organizationUrl>www.att.com</organizationUrl>
65                 </developer>
66                 <developer>
67                         <name>Ramkumar</name>
68                         <email/>
69                         <organization>ATT</organization>
70                         <organizationUrl>www.att.com</organizationUrl>
71                 </developer>
72         </developers>
73
74         <dependencies>
75                 <dependency>
76                         <groupId>com.fasterxml.jackson.core</groupId>
77                         <artifactId>jackson-core</artifactId>
78                         <version>2.8.11</version>
79                 </dependency>
80                 <dependency>
81                         <groupId>com.fasterxml.jackson.core</groupId>
82                         <artifactId>jackson-databind</artifactId>
83                         <version>2.8.11.1</version>
84                 </dependency>
85                 <dependency>
86                         <groupId>org.apache.httpcomponents</groupId>
87                         <artifactId>httpclient-cache</artifactId>
88                         <version>4.5.3</version>
89                 </dependency>
90                 <dependency>
91                         <groupId>com.att.nsa</groupId>
92                         <artifactId>saClientLibrary</artifactId>
93                         <version>0.0.1</version>
94                 </dependency>
95
96                 <dependency>
97                         <groupId>org.json</groupId>
98                         <artifactId>json</artifactId>
99                         <version>20131018</version>
100                 </dependency>
101
102                 <dependency>
103                         <groupId>com.att.aft</groupId>
104                         <artifactId>dme2</artifactId>
105                         <version>3.1.200-oss</version>
106                         <exclusions>
107                                 <exclusion>
108                                         <groupId>com.sun.jersey</groupId>
109                                         <artifactId>jersey-json</artifactId>
110                                 </exclusion>
111                                 <exclusion>
112                                         <groupId>com.sun.jersey</groupId>
113                                         <artifactId>jersey-client</artifactId>
114                                 </exclusion>
115                                 <exclusion>
116                                         <groupId>javax.jms</groupId>
117                                         <artifactId>jms</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>
164
165                 <dependency>
166                         <groupId>com.github.tomakehurst</groupId>
167                         <artifactId>wiremock</artifactId>
168                         <version>2.5.0</version>
169                         <scope>test</scope>
170                 </dependency>
171                 <dependency>
172                         <groupId>org.mockito</groupId>
173                         <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>
193                         <scope>test</scope>
194                 </dependency>
195
196         </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>
217                                 <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>
229                                 <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>
286                          <plugin>
287                     <groupId>org.jacoco</groupId>
288                     <artifactId>jacoco-maven-plugin</artifactId>
289                     <executions>
290                         <execution>
291                             <id>prepare-agent</id>
292                             <goals>
293                                 <goal>prepare-agent</goal>
294                             </goals>
295                         </execution>
296                         <execution>
297                             <id>report</id>
298                             <goals>
299                                 <goal>report</goal>
300                             </goals>
301                             <configuration>
302                                 <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
303                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
304                             </configuration>
305                         </execution>
306                     </executions>
307                 </plugin>
308                 </plugins>
309         </build>
310
311         <profiles>
312                 <!-- Add plugins here that should only be executed on the Jenkins server -->
313                 <profile>
314                         <id>jenkins</id>
315                         <activation>
316                                 <property>
317                                         <name>env.BUILD_NUMBER</name>
318                                 </property>
319                         </activation>
320                         <build>
321                                 <plugins>
322                                         <plugin>
323                                                 <groupId>org.codehaus.mojo</groupId>
324                                                 <artifactId>cobertura-maven-plugin</artifactId>
325                                         </plugin>
326                                 </plugins>
327                         </build>
328                 </profile>
329         </profiles>
330 </project>