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