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