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