Changed the Version of jackson-core to 2.8.6
[holmes/rule-management.git] / rulemgt / pom.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3   ~ Copyright 2017 ZTE Corporation.
4   ~
5   ~ Licensed under the Apache License, Version 2.0 (the "License");
6   ~ you may not use this file except in compliance with the License.
7   ~ You may obtain a copy of the License at
8   ~
9   ~     http://www.apache.org/licenses/LICENSE-2.0
10   ~
11   ~ Unless required by applicable law or agreed to in writing, software
12   ~ distributed under the License is distributed on an "AS IS" BASIS,
13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   ~ See the License for the specific language governing permissions and
15   ~ limitations under the License.
16   -->
17 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19
20     <modelVersion>4.0.0</modelVersion>
21     <parent>
22         <groupId>org.onap.holmes.rule-management</groupId>
23         <artifactId>holmes-rulemgt-parent</artifactId>
24         <version>1.1.0-SNAPSHOT</version>
25     </parent>
26
27     <artifactId>holmes-rulemgt</artifactId>
28     <name>holmes-rulemgt-service</name>
29     <packaging>jar</packaging>
30
31     <dependencies>
32         <dependency>
33             <groupId>org.hibernate</groupId>
34             <artifactId>hibernate-validator</artifactId>
35             <version>5.4.2.Final</version>
36         </dependency>
37         <dependency>
38             <groupId>com.fasterxml.jackson.core</groupId>
39             <artifactId>jackson-core</artifactId>
40             <version>2.8.6</version>
41         </dependency>
42         <dependency>
43             <groupId>org.onap.msb.java-sdk</groupId>
44             <artifactId>msb-java-sdk</artifactId>
45             <exclusions>
46                 <exclusion>
47                     <groupId>ch.qos.logback</groupId>
48                     <artifactId>logback-classic</artifactId>
49                 </exclusion>
50                 <exclusion>
51                     <groupId>com.fasterxml.jackson.core</groupId>
52                     <artifactId>jackson-databind</artifactId>
53                 </exclusion>
54                 <exclusion>
55                     <groupId>com.fasterxml.jackson.core</groupId>
56                     <artifactId>jackson-core</artifactId>
57                 </exclusion>
58             </exclusions>
59         </dependency>
60         <dependency>
61             <groupId>org.reflections</groupId>
62             <artifactId>reflections</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.onap.holmes.common</groupId>
66             <artifactId>holmes-actions</artifactId>
67             <exclusions>
68                 <exclusion>
69                     <groupId>org.glassfish.jersey.containers</groupId>
70                     <artifactId>jersey-container-servlet-core</artifactId>
71                 </exclusion>
72                 <exclusion>
73                     <groupId>org.apache.activemq</groupId>
74                     <artifactId>activemq-core</artifactId>
75                 </exclusion>
76             </exclusions>
77         </dependency>
78         <dependency>
79             <groupId>org.easymock</groupId>
80             <artifactId>easymock</artifactId>
81         </dependency>
82         <dependency>
83             <groupId>io.dropwizard</groupId>
84             <artifactId>dropwizard-db</artifactId>
85         </dependency>
86         <dependency>
87             <groupId>org.antlr</groupId>
88             <artifactId>stringtemplate</artifactId>
89         </dependency>
90         <dependency>
91             <groupId>ch.qos.logback</groupId>
92             <artifactId>logback-classic</artifactId>
93             <version>1.1.2</version>
94         </dependency>
95         <dependency>
96             <groupId>io.dropwizard</groupId>
97             <artifactId>dropwizard-core</artifactId>
98             <exclusions>
99                 <exclusion>
100                     <groupId>ch.qos.logback</groupId>
101                     <artifactId>logback</artifactId>
102                 </exclusion>
103                 <exclusion>
104                     <groupId>ch.qos.logback</groupId>
105                     <artifactId>logback-classic</artifactId>
106                 </exclusion>
107                 <exclusion>
108                     <artifactId>log4j-over-slf4j</artifactId>
109                     <groupId>org.slf4j</groupId>
110                 </exclusion>
111                 <exclusion>
112                     <groupId>org.hibernate</groupId>
113                     <artifactId>hibernate-validator</artifactId>
114                 </exclusion>
115                 <exclusion>
116                     <groupId>com.fasterxml.jackson.core</groupId>
117                     <artifactId>jackson-core</artifactId>
118                 </exclusion>
119             </exclusions>
120         </dependency>
121
122         <dependency>
123             <groupId>org.projectlombok</groupId>
124             <artifactId>lombok</artifactId>
125         </dependency>
126         <dependency>
127             <groupId>org.postgresql</groupId>
128             <artifactId>postgresql</artifactId>
129         </dependency>
130         <dependency>
131             <groupId>org.quartz-scheduler</groupId>
132             <artifactId>quartz</artifactId>
133         </dependency>
134         <dependency>
135             <groupId>junit</groupId>
136             <artifactId>junit</artifactId>
137         </dependency>
138         <dependency>
139             <groupId>org.hamcrest</groupId>
140             <artifactId>hamcrest-core</artifactId>
141         </dependency>
142         <dependency>
143             <groupId>org.powermock</groupId>
144             <artifactId>powermock-module-junit4</artifactId>
145         </dependency>
146         <dependency>
147             <groupId>org.slf4j</groupId>
148             <artifactId>slf4j-api</artifactId>
149         </dependency>
150         <dependency>
151             <groupId>io.swagger</groupId>
152             <artifactId>swagger-jersey2-jaxrs</artifactId>
153             <exclusions>
154                 <exclusion>
155                     <groupId>com.fasterxml.jackson.core</groupId>
156                     <artifactId>jackson-databind</artifactId>
157                 </exclusion>
158                 <exclusion>
159                     <groupId>com.fasterxml.jackson.core</groupId>
160                     <artifactId>jackson-core</artifactId>
161                 </exclusion>
162             </exclusions>
163             <scope>provided</scope>
164         </dependency>
165
166         <dependency>
167             <groupId>org.powermock</groupId>
168             <artifactId>powermock-api-easymock</artifactId>
169             <version>1.6.5</version>
170             <scope>test</scope>
171         </dependency>
172         <dependency>
173             <groupId>org.powermock</groupId>
174             <artifactId>powermock-api-mockito</artifactId>
175             <version>1.7.1</version>
176             <scope>test</scope>
177         </dependency>
178         <dependency>
179             <groupId>org.powermock</groupId>
180             <artifactId>powermock-module-junit4-rule</artifactId>
181             <version>1.6.5</version>
182             <scope>test</scope>
183         </dependency>
184         <dependency>
185             <groupId>org.powermock</groupId>
186             <artifactId>powermock-classloading-xstream</artifactId>
187             <version>1.6.5</version>
188             <scope>test</scope>
189         </dependency>
190         <dependency>
191             <groupId>org.hamcrest</groupId>
192             <artifactId>hamcrest-library</artifactId>
193             <version>1.3</version>
194             <scope>test</scope>
195         </dependency>
196         <dependency>
197             <groupId>org.easymock</groupId>
198             <artifactId>easymock</artifactId>
199             <version>3.0</version>
200             <scope>test</scope>
201         </dependency>
202         <dependency>
203             <groupId>org.javassist</groupId>
204             <artifactId>javassist</artifactId>
205             <version>3.20.0-GA</version>
206         </dependency>
207         <dependency>
208             <groupId>org.apache.httpcomponents</groupId>
209             <artifactId>httpclient</artifactId>
210             <version>4.5.3</version>
211         </dependency>
212         <dependency>
213             <groupId>com.googlecode.json-simple</groupId>
214             <artifactId>json-simple</artifactId>
215             <version>1.1.1</version>
216         </dependency>
217         <dependency>
218             <groupId>net.sf.json-lib</groupId>
219             <artifactId>json-lib</artifactId>
220             <version>2.4</version>
221             <classifier>jdk15</classifier>
222             <exclusions>
223                 <exclusion>
224                     <groupId>commons-collections</groupId>
225                     <artifactId>commons-collections</artifactId>
226                 </exclusion>
227                 <exclusion>
228                     <groupId>commons-beanutils</groupId>
229                     <artifactId>commons-beanutils</artifactId>
230                 </exclusion>
231             </exclusions>
232         </dependency>
233         <dependency>
234             <groupId>commons-collections</groupId>
235             <artifactId>commons-collections</artifactId>
236             <version>3.2.2</version>
237         </dependency>
238         <dependency>
239             <groupId>com.alibaba</groupId>
240             <artifactId>fastjson</artifactId>
241             <version>1.1.23</version>
242         </dependency>
243         <dependency>
244             <groupId>org.glassfish.jersey.core</groupId>
245             <artifactId>jersey-server</artifactId>
246             <version>${jersey.version}</version>
247         </dependency>
248         <dependency>
249             <groupId>org.glassfish.jersey.core</groupId>
250             <artifactId>jersey-client</artifactId>
251             <version>${jersey.version}</version>
252         </dependency>
253         <dependency>
254             <groupId>org.glassfish.jersey.core</groupId>
255             <artifactId>jersey-common</artifactId>
256             <version>${jersey.version}</version>
257         </dependency>
258         <dependency>
259             <groupId>org.glassfish.jersey.containers</groupId>
260             <artifactId>jersey-container-servlet-core</artifactId>
261             <version>${jersey.version}</version>
262         </dependency>
263         <dependency>
264             <groupId>com.google.guava</groupId>
265             <artifactId>guava</artifactId>
266             <version>19.0</version>
267             <exclusions>
268                 <exclusion>
269                     <groupId>com.fasterxml.jackson.core</groupId>
270                     <artifactId>jackson-core</artifactId>
271                 </exclusion>
272             </exclusions>
273         </dependency>
274     </dependencies>
275     <build>
276         <plugins>
277             <plugin>
278                 <groupId>org.apache.maven.plugins</groupId>
279                 <artifactId>maven-jar-plugin</artifactId>
280                 <configuration>
281                     <archive>
282                         <manifest>
283                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
284                         </manifest>
285                     </archive>
286                 </configuration>
287             </plugin>
288             <plugin>
289                 <groupId>org.apache.maven.plugins</groupId>
290                 <artifactId>maven-compiler-plugin</artifactId>
291                 <version>3.3</version>
292                 <configuration>
293                     <source>1.8</source>
294                     <target>1.8</target>
295                 </configuration>
296             </plugin>
297             <plugin>
298                 <groupId>org.apache.maven.plugins</groupId>
299                 <artifactId>maven-shade-plugin</artifactId>
300                 <configuration>
301                     <createDependencyReducedPom>true</createDependencyReducedPom>
302                     <filters>
303                         <filter>
304                             <artifact>*:*</artifact>
305                             <excludes>
306                                 <exclude>META-INF/*.SF</exclude>
307                                 <exclude>META-INF/*.DSA</exclude>
308                                 <exclude>META-INF/*.RSA</exclude>
309                             </excludes>
310                         </filter>
311                     </filters>
312                 </configuration>
313                 <executions>
314                     <execution>
315                         <phase>package</phase>
316                         <goals>
317                             <goal>shade</goal>
318                         </goals>
319                         <configuration>
320                             <transformers>
321                                 <transformer
322                                         implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
323                                 <transformer
324                                         implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
325                                     <mainClass>org.onap.holmes.rulemgt.RuleActiveApp</mainClass>
326                                 </transformer>
327                             </transformers>
328                         </configuration>
329                     </execution>
330                 </executions>
331             </plugin>
332         </plugins>
333         <resources>
334             <resource>
335                 <directory>src/main/java</directory>
336                 <includes>
337                     <include>**/*.properties</include>
338                 </includes>
339             </resource>
340             <resource>
341                 <directory>src/main/resources</directory>
342             </resource>
343         </resources>
344     </build>
345
346     <profiles>
347         <profile>
348             <id>swagger</id>
349             <dependencies>
350                 <dependency>
351                     <groupId>io.swagger</groupId>
352                     <artifactId>swagger-jersey2-jaxrs</artifactId>
353                     <version>1.5.3</version>
354                     <exclusions>
355                         <exclusion>
356                             <groupId>com.fasterxml.jackson.core</groupId>
357                             <artifactId>jackson-databind</artifactId>
358                         </exclusion>
359                         <exclusion>
360                             <groupId>com.fasterxml.jackson.core</groupId>
361                             <artifactId>jackson-core</artifactId>
362                         </exclusion>
363                     </exclusions>
364                 </dependency>
365             </dependencies>
366             <build>
367                 <plugins>
368                     <plugin>
369                         <groupId>com.github.kongchen</groupId>
370                         <artifactId>swagger-maven-plugin</artifactId>
371                         <version>3.1.1</version>
372                         <configuration>
373                             <apiSources>
374                                 <apiSource>
375                                     <springmvc>false</springmvc>
376                                     <locations>org.onap.holmes.rulemgt.resources</locations>
377                                     <basePath>/api/holmes-rule-mgmt/v1/</basePath>
378                                     <info>
379                                         <title>API Descriptions for Holmes Rule Management</title>
380                                         <version>v1</version>
381                                         <description>
382                                             This page shows all the APIs available in the Holmes rule management module.
383                                         </description>
384                                         <termsOfService>
385                                             http://www.github.com/kongchen/swagger-maven-plugin
386                                         </termsOfService>
387                                         <contact>
388                                             <email>fu.guangrong@zte.com.cn</email>
389                                             <name>Guangrong Fu</name>
390                                         </contact>
391                                         <license>
392                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
393                                             <name>Apache 2.0</name>
394                                         </license>
395                                     </info>
396                                     <securityDefinitions>
397                                     </securityDefinitions>
398                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
399                                 </apiSource>
400                             </apiSources>
401                         </configuration>
402                         <executions>
403                             <execution>
404                                 <phase>compile</phase>
405                                 <goals>
406                                     <goal>generate</goal>
407                                 </goals>
408                             </execution>
409                         </executions>
410                         <dependencies>
411                             <dependency>
412                                 <groupId>io.swagger</groupId>
413                                 <artifactId>swagger-hibernate-validations</artifactId>
414                                 <version>1.5.6</version>
415                             </dependency>
416                         </dependencies>
417                     </plugin>
418                 </plugins>
419             </build>
420         </profile>
421     </profiles>
422 </project>