fix security vulnerabilities
[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.11-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>commons-codec</groupId>
77                 <artifactId>commons-codec</artifactId>
78                 <version>1.13</version>
79         </dependency>
80                 <dependency>
81                         <groupId>com.fasterxml.jackson.core</groupId>
82                         <artifactId>jackson-core</artifactId>
83                         <version>2.8.11</version>
84                 </dependency>
85                 <dependency>
86                         <groupId>com.fasterxml.jackson.core</groupId>
87                         <artifactId>jackson-databind</artifactId>
88                         <version>2.8.11.1</version>
89                 </dependency>
90                 <dependency>
91                         <groupId>org.apache.httpcomponents</groupId>
92                         <artifactId>httpclient-cache</artifactId>
93                         <version>4.5.3</version>
94                 </dependency>
95                 <dependency>
96                         <groupId>com.att.nsa</groupId>
97                         <artifactId>saClientLibrary</artifactId>
98                         <version>0.0.1</version>
99                 </dependency>
100
101                 <dependency>
102                         <groupId>org.json</groupId>
103                         <artifactId>json</artifactId>
104                         <version>20131018</version>
105                 </dependency>
106
107                 <dependency>
108                         <groupId>com.att.aft</groupId>
109                         <artifactId>dme2</artifactId>
110                         <version>3.1.200-oss</version>
111                         <exclusions>
112                                 <exclusion>
113                                         <groupId>com.sun.jersey</groupId>
114                                         <artifactId>jersey-json</artifactId>
115                                 </exclusion>
116                                 <exclusion>
117                                         <groupId>com.sun.jersey</groupId>
118                                         <artifactId>jersey-client</artifactId>
119                                 </exclusion>
120                                 <exclusion>
121                                         <groupId>javax.jms</groupId>
122                                         <artifactId>jms</artifactId>
123                                 </exclusion>
124                         </exclusions>
125                 </dependency>
126                 <!-- Begin - Dependency on log4j for logging purpose -->
127                 <dependency>
128                         <groupId>log4j</groupId>
129                         <artifactId>log4j</artifactId>
130                         <version>1.2.17</version>
131                 </dependency>
132                 <!-- Log4j's enhanced pattern layout is shipped separately -->
133                 <dependency>
134                         <groupId>log4j</groupId>
135                         <artifactId>apache-log4j-extras</artifactId>
136                         <version>1.2.17</version>
137                 </dependency>
138                 <!-- End - Dependency on log4j for logging purpose -->
139
140                 <dependency>
141                         <groupId>javax.ws.rs</groupId>
142                         <artifactId>javax.ws.rs-api</artifactId>
143                         <version>2.0.1</version>
144                 </dependency>
145
146                 <dependency>
147                         <groupId>org.glassfish.jersey.core</groupId>
148                         <artifactId>jersey-common</artifactId>
149                         <version>${jersey.version}</version>
150                 </dependency>
151
152                 <dependency>
153                         <groupId>org.glassfish.jersey.core</groupId>
154                         <artifactId>jersey-client</artifactId>
155                         <version>${jersey.version}</version>
156                 </dependency>
157
158                 <dependency>
159                         <groupId>org.glassfish.jersey.media</groupId>
160                         <artifactId>jersey-media-json-jackson</artifactId>
161                         <version>${jersey.version}</version>
162                 </dependency>
163                 <dependency>
164                         <groupId>junit</groupId>
165                         <artifactId>junit</artifactId>
166                         <version>4.11</version>
167                         <scope>test</scope>
168                 </dependency>
169
170                 <dependency>
171                         <groupId>com.github.tomakehurst</groupId>
172                         <artifactId>wiremock</artifactId>
173                         <version>2.5.0</version>
174                         <scope>test</scope>
175                 </dependency>
176                 <dependency>
177                         <groupId>org.mockito</groupId>
178                         <artifactId>mockito-core</artifactId>
179                         <version>1.10.19</version>
180                         <scope>test</scope>
181                 </dependency>
182                 <dependency>
183                         <groupId>org.powermock</groupId>
184                         <artifactId>powermock-module-junit4</artifactId>
185                         <version>1.6.4</version>
186                         <scope>test</scope>
187                 </dependency>
188                 <dependency>
189                         <groupId>org.powermock</groupId>
190                         <artifactId>powermock-api-mockito</artifactId>
191                         <version>1.6.4</version>
192                         <scope>test</scope>
193                 </dependency>
194                 <dependency>
195                         <groupId>org.springframework</groupId>
196                         <artifactId>spring-test</artifactId>
197                         <version>3.0.5.RELEASE</version>
198                         <scope>test</scope>
199                 </dependency>
200
201         </dependencies>
202
203         <build>
204                 <resources>
205                         <resource>
206                                 <directory>src/main/resources</directory>
207                                 <filtering>true</filtering>
208                                 <includes>
209                                         <include>**/MRClientVersion.properties</include>
210                                 </includes>
211                         </resource>
212                         <resource>
213                                 <directory>src/main/resources</directory>
214                                 <filtering>false</filtering>
215                                 <excludes>
216                                         <exclude>**/MRClientVersion.properties</exclude>
217                                 </excludes>
218                         </resource>
219                 </resources>
220                 <plugins>
221                         <plugin>
222                                 <groupId>org.apache.maven.plugins</groupId>
223                                 <artifactId>maven-site-plugin</artifactId>
224                                 <version>3.6</version>
225                                 <dependencies>
226                                         <dependency>
227                                                 <groupId>org.apache.maven.wagon</groupId>
228                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
229                                                 <version>2.10</version>
230                                         </dependency>
231                                 </dependencies>
232                         </plugin>
233                         <plugin>
234                                 <artifactId>maven-assembly-plugin</artifactId>
235                                 <version>2.4</version>
236                                 <configuration>
237                                         <descriptorRefs>
238                                                 <descriptorRef>jar-with-dependencies</descriptorRef>
239                                         </descriptorRefs>
240                                 </configuration>
241
242                                 <executions>
243                                         <execution>
244                                                 <id>make-assembly</id> <!-- this is used for inheritance merges -->
245                                                 <phase>package</phase> <!-- bind to the packaging phase -->
246                                                 <goals>
247                                                         <goal>single</goal>
248                                                 </goals>
249                                         </execution>
250                                 </executions>
251                         </plugin>
252
253
254                         <plugin>
255                                 <groupId>org.apache.maven.plugins</groupId>
256                                 <artifactId>maven-javadoc-plugin</artifactId>
257                                 <version>2.10.4</version>
258                                 <configuration>
259                                         <additionalparam>-Xdoclint:none</additionalparam>
260                                 </configuration>
261                                 <executions>
262                                         <execution>
263                                                 <id>attach-javadocs</id>
264                                                 <goals>
265                                                         <goal>jar</goal>
266                                                 </goals>
267                                         </execution>
268                                 </executions>
269                         </plugin>
270                         <plugin>
271                                 <groupId>org.apache.maven.plugins</groupId>
272                                 <artifactId>maven-source-plugin</artifactId>
273                                 <version>3.0.0</version>
274                                 <executions>
275                                         <execution>
276                                                 <id>attach-sources</id>
277                                                 <goals>
278                                                         <goal>jar-no-fork</goal>
279                                                 </goals>
280                                         </execution>
281                                 </executions>
282                         </plugin>
283                         <plugin>
284                                 <artifactId>maven-compiler-plugin</artifactId>
285                                 <version>3.1</version>
286                                 <configuration>
287                                         <source>1.7</source>
288                                         <target>1.7</target>
289                                 </configuration>
290                         </plugin>
291                          <plugin>
292                     <groupId>org.jacoco</groupId>
293                     <artifactId>jacoco-maven-plugin</artifactId>
294                     <executions>
295                         <execution>
296                             <id>prepare-agent</id>
297                             <goals>
298                                 <goal>prepare-agent</goal>
299                             </goals>
300                         </execution>
301                         <execution>
302                             <id>report</id>
303                             <goals>
304                                 <goal>report</goal>
305                             </goals>
306                             <configuration>
307                                 <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
308                                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
309                             </configuration>
310                         </execution>
311                     </executions>
312                 </plugin>
313                 </plugins>
314         </build>
315
316         <profiles>
317                 <!-- Add plugins here that should only be executed on the Jenkins server -->
318                 <profile>
319                         <id>jenkins</id>
320                         <activation>
321                                 <property>
322                                         <name>env.BUILD_NUMBER</name>
323                                 </property>
324                         </activation>
325                         <build>
326                                 <plugins>
327                                         <plugin>
328                                                 <groupId>org.codehaus.mojo</groupId>
329                                                 <artifactId>cobertura-maven-plugin</artifactId>
330                                         </plugin>
331                                 </plugins>
332                         </build>
333                 </profile>
334         </profiles>
335 </project>