Fixes for security isues
[dmaap/messagerouter/dmaapclient.git] / pom.xml
1 <!-- ============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. -->
12 <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>
18         <version>1.1.3-SNAPSHOT</version>
19         <name>dmaap-messagerouter-dmaapclient</name>
20         <description>Client library for MR event routing API</description>
21         <url>https://github.com/att/dmaap-framework</url>
22
23         <parent>
24                 <groupId>org.onap.oparent</groupId>
25                 <artifactId>oparent</artifactId>
26                 <version>0.1.1</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
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>
47                 <nexusproxy>https://nexus.onap.org</nexusproxy>
48         </properties>
49
50         <distributionManagement>
51                 <site>
52                         <id>ecomp-site</id>
53                         <url>dav:${nexusproxy}${sitePath}</url>
54                 </site>
55         </distributionManagement>
56
57         <licenses>
58                 <license>
59                         <name>Apache License Version 2.0</name>
60                 </license>
61         </licenses>
62
63         <developers>
64                 <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>
77
78         <dependencies>
79                 <dependency>
80                         <groupId>com.fasterxml.jackson.core</groupId>
81                         <artifactId>jackson-core</artifactId>
82                         <version>2.8.6</version>
83                 </dependency>
84                 <dependency>
85                         <groupId>com.fasterxml.jackson.core</groupId>
86                         <artifactId>jackson-databind</artifactId>
87                         <version>2.8.10</version>
88                 </dependency>
89                 <dependency>
90                         <groupId>org.apache.httpcomponents</groupId>
91                         <artifactId>httpclient-cache</artifactId>
92                         <version>4.5.3</version>
93                 </dependency>
94                 <dependency>
95                         <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>
109                         <version>3.1.200-oss</version>
110                         <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>
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-all</artifactId>
174                         <version>1.9.5</version>
175                         <scope>test</scope>
176                 </dependency>
177
178         </dependencies>
179
180         <build>
181                 <resources>
182                         <resource>
183                                 <directory>src/main/resources</directory>
184                                 <filtering>true</filtering>
185                                 <includes>
186                                         <include>**/MRClientVersion.properties</include>
187                                 </includes>
188                         </resource>
189                         <resource>
190                                 <directory>src/main/resources</directory>
191                                 <filtering>false</filtering>
192                                 <excludes>
193                                         <exclude>**/MRClientVersion.properties</exclude>
194                                 </excludes>
195                         </resource>
196                 </resources>
197                 <plugins>
198                         <plugin>
199                                 <groupId>org.apache.maven.plugins</groupId>
200                                 <artifactId>maven-site-plugin</artifactId>
201                                 <version>3.6</version>
202                                 <dependencies>
203                                         <dependency>
204                                                 <groupId>org.apache.maven.wagon</groupId>
205                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
206                                                 <version>2.10</version>
207                                         </dependency>
208                                 </dependencies>
209                         </plugin>
210                         <plugin>
211                                 <artifactId>maven-assembly-plugin</artifactId>
212                                 <version>2.4</version>
213                                 <configuration>
214                                         <descriptorRefs>
215                                                 <descriptorRef>jar-with-dependencies</descriptorRef>
216                                         </descriptorRefs>
217                                 </configuration>
218
219                                 <executions>
220                                         <execution>
221                                                 <id>make-assembly</id> <!-- this is used for inheritance merges -->
222                                                 <phase>package</phase> <!-- bind to the packaging phase -->
223                                                 <goals>
224                                                         <goal>single</goal>
225                                                 </goals>
226                                         </execution>
227                                 </executions>
228                         </plugin>
229
230
231                         <plugin>
232                                 <groupId>org.apache.maven.plugins</groupId>
233                                 <artifactId>maven-javadoc-plugin</artifactId>
234                                 <version>2.10.4</version>
235                                 <configuration>
236                                         <additionalparam>-Xdoclint:none</additionalparam>
237                                 </configuration>
238                                 <executions>
239                                         <execution>
240                                                 <id>attach-javadocs</id>
241                                                 <goals>
242                                                         <goal>jar</goal>
243                                                 </goals>
244                                         </execution>
245                                 </executions>
246                         </plugin>
247                         <plugin>
248                                 <groupId>org.apache.maven.plugins</groupId>
249                                 <artifactId>maven-source-plugin</artifactId>
250                                 <version>3.0.0</version>
251                                 <executions>
252                                         <execution>
253                                                 <id>attach-sources</id>
254                                                 <goals>
255                                                         <goal>jar-no-fork</goal>
256                                                 </goals>
257                                         </execution>
258                                 </executions>
259                         </plugin>
260                         <plugin>
261                                 <artifactId>maven-compiler-plugin</artifactId>
262                                 <version>3.1</version>
263                                 <configuration>
264                                         <source>1.7</source>
265                                         <target>1.7</target>
266                                 </configuration>
267                         </plugin>
268                         <plugin>
269                                 <groupId>org.jacoco</groupId>
270                                 <artifactId>jacoco-maven-plugin</artifactId>
271                                 <version>${jacoco.version}</version>
272                                 <configuration>
273                                         <!-- Note: This exclusion list should match <sonar.exclusions> property 
274                                                 above -->
275                                         <excludes>
276                                                 <exclude>**/gen/**</exclude>
277                                                 <exclude>**/generated-sources/**</exclude>
278                                                 <exclude>**/yang-gen/**</exclude>
279                                                 <exclude>**/pax/**</exclude>
280                                         </excludes>
281                                 </configuration>
282                                 <executions>
283                                         <!-- Prepares the property pointing to the JaCoCo runtime agent which 
284                                                 is passed as VM argument when Maven the Surefire plugin is executed. -->
285                                         <execution>
286                                                 <id>pre-unit-test</id>
287                                                 <goals>
288                                                         <goal>prepare-agent</goal>
289                                                 </goals>
290                                                 <configuration>
291                                                         <!-- Sets the path to the file which contains the execution data. -->
292                                                         <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
293                                                         <!-- Sets the name of the property containing the settings for JaCoCo 
294                                                                 runtime agent. -->
295                                                         <propertyName>surefireArgLine</propertyName>
296                                                 </configuration>
297                                         </execution>
298                                         <!-- Ensures that the code coverage report for unit tests is created 
299                                                 after unit tests have been run. -->
300                                         <execution>
301                                                 <id>post-unit-test</id>
302                                                 <phase>test</phase>
303                                                 <goals>
304                                                         <goal>report</goal>
305                                                 </goals>
306                                                 <configuration>
307                                                         <!-- Sets the path to the file which contains the execution data. -->
308                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
309                                                         <!-- Sets the output directory for the code coverage report. -->
310                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
311                                                 </configuration>
312                                         </execution>
313                                         <execution>
314                                                 <id>pre-integration-test</id>
315                                                 <phase>pre-integration-test</phase>
316                                                 <goals>
317                                                         <goal>prepare-agent</goal>
318                                                 </goals>
319                                                 <configuration>
320                                                         <!-- Sets the path to the file which contains the execution data. -->
321                                                         <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
322                                                         <!-- Sets the name of the property containing the settings for JaCoCo 
323                                                                 runtime agent. -->
324                                                         <propertyName>failsafeArgLine</propertyName>
325                                                 </configuration>
326                                         </execution>
327                                         <!-- Ensures that the code coverage report for integration tests after 
328                                                 integration tests have been run. -->
329                                         <execution>
330                                                 <id>post-integration-test</id>
331                                                 <phase>post-integration-test</phase>
332                                                 <goals>
333                                                         <goal>report</goal>
334                                                 </goals>
335                                                 <configuration>
336                                                         <!-- Sets the path to the file which contains the execution data. -->
337                                                         <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
338                                                         <!-- Sets the output directory for the code coverage report. -->
339                                                         <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
340                                                 </configuration>
341                                         </execution>
342                                 </executions>
343                         </plugin>
344                 </plugins>
345         </build>
346
347         <profiles>
348                 <!-- Add plugins here that should only be executed on the Jenkins server -->
349                 <profile>
350                         <id>jenkins</id>
351                         <activation>
352                                 <property>
353                                         <name>env.BUILD_NUMBER</name>
354                                 </property>
355                         </activation>
356                         <build>
357                                 <plugins>
358                                         <plugin>
359                                                 <groupId>org.codehaus.mojo</groupId>
360                                                 <artifactId>cobertura-maven-plugin</artifactId>
361                                         </plugin>
362                                 </plugins>
363                         </build>
364                 </profile>
365         </profiles>
366 </project>