Fixed the c3p0 issue found by NexusIQ
[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.3</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>junit</groupId>
147             <artifactId>junit</artifactId>
148         </dependency>
149         <dependency>
150             <groupId>org.hamcrest</groupId>
151             <artifactId>hamcrest-core</artifactId>
152         </dependency>
153         <dependency>
154             <groupId>org.powermock</groupId>
155             <artifactId>powermock-module-junit4</artifactId>
156         </dependency>
157         <dependency>
158             <groupId>org.slf4j</groupId>
159             <artifactId>slf4j-api</artifactId>
160         </dependency>
161         <dependency>
162             <groupId>io.swagger</groupId>
163             <artifactId>swagger-jersey2-jaxrs</artifactId>
164             <exclusions>
165                 <exclusion>
166                     <groupId>com.fasterxml.jackson.core</groupId>
167                     <artifactId>jackson-databind</artifactId>
168                 </exclusion>
169                 <exclusion>
170                     <groupId>com.fasterxml.jackson.core</groupId>
171                     <artifactId>jackson-core</artifactId>
172                 </exclusion>
173                 <exclusion>
174                     <groupId>com.fasterxml.jackson.dataformat</groupId>
175                     <artifactId>jackson-dataformat-xml</artifactId>
176                 </exclusion>
177             </exclusions>
178             <scope>provided</scope>
179         </dependency>
180
181         <dependency>
182             <groupId>org.powermock</groupId>
183             <artifactId>powermock-api-easymock</artifactId>
184             <version>1.6.5</version>
185             <scope>test</scope>
186         </dependency>
187         <dependency>
188             <groupId>org.powermock</groupId>
189             <artifactId>powermock-api-mockito</artifactId>
190             <version>1.7.1</version>
191             <scope>test</scope>
192         </dependency>
193         <dependency>
194             <groupId>org.powermock</groupId>
195             <artifactId>powermock-module-junit4-rule</artifactId>
196             <version>1.6.5</version>
197             <scope>test</scope>
198         </dependency>
199         <dependency>
200             <groupId>org.powermock</groupId>
201             <artifactId>powermock-classloading-xstream</artifactId>
202             <version>1.6.5</version>
203             <exclusions>
204                 <exclusion>
205                     <groupId>com.thoughtworks.xstream</groupId>
206                     <artifactId>xstream</artifactId>
207                 </exclusion>
208             </exclusions>
209             <scope>test</scope>
210         </dependency>
211         <dependency>
212             <groupId>com.thoughtworks.xstream</groupId>
213             <artifactId>xstream</artifactId>
214             <version>1.4.10</version>
215             <scope>test</scope>
216         </dependency>
217         <dependency>
218             <groupId>org.hamcrest</groupId>
219             <artifactId>hamcrest-library</artifactId>
220             <version>1.3</version>
221             <scope>test</scope>
222         </dependency>
223         <dependency>
224             <groupId>org.easymock</groupId>
225             <artifactId>easymock</artifactId>
226             <version>3.0</version>
227             <scope>test</scope>
228         </dependency>
229         <dependency>
230             <groupId>org.javassist</groupId>
231             <artifactId>javassist</artifactId>
232             <version>3.20.0-GA</version>
233         </dependency>
234         <dependency>
235             <groupId>org.apache.httpcomponents</groupId>
236             <artifactId>httpclient</artifactId>
237             <version>4.5.3</version>
238         </dependency>
239         <dependency>
240             <groupId>com.googlecode.json-simple</groupId>
241             <artifactId>json-simple</artifactId>
242             <version>1.1.1</version>
243         </dependency>
244         <dependency>
245             <groupId>net.sf.json-lib</groupId>
246             <artifactId>json-lib</artifactId>
247             <version>2.4</version>
248             <classifier>jdk15</classifier>
249             <exclusions>
250                 <exclusion>
251                     <groupId>commons-collections</groupId>
252                     <artifactId>commons-collections</artifactId>
253                 </exclusion>
254                 <exclusion>
255                     <groupId>commons-beanutils</groupId>
256                     <artifactId>commons-beanutils</artifactId>
257                 </exclusion>
258             </exclusions>
259         </dependency>
260         <dependency>
261             <groupId>commons-collections</groupId>
262             <artifactId>commons-collections</artifactId>
263             <version>3.2.2</version>
264         </dependency>
265         <dependency>
266             <groupId>com.alibaba</groupId>
267             <artifactId>fastjson</artifactId>
268             <version>1.2.49</version>
269         </dependency>
270         <dependency>
271             <groupId>org.glassfish.jersey.core</groupId>
272             <artifactId>jersey-server</artifactId>
273             <version>${jersey.version}</version>
274         </dependency>
275         <dependency>
276             <groupId>org.glassfish.jersey.core</groupId>
277             <artifactId>jersey-client</artifactId>
278             <version>${jersey.version}</version>
279         </dependency>
280         <dependency>
281             <groupId>org.glassfish.jersey.core</groupId>
282             <artifactId>jersey-common</artifactId>
283             <version>${jersey.version}</version>
284         </dependency>
285         <dependency>
286             <groupId>org.glassfish.jersey.containers</groupId>
287             <artifactId>jersey-container-servlet-core</artifactId>
288             <version>${jersey.version}</version>
289         </dependency>
290     </dependencies>
291     <build>
292         <plugins>
293             <plugin>
294                 <groupId>org.apache.maven.plugins</groupId>
295                 <artifactId>maven-jar-plugin</artifactId>
296                 <configuration>
297                     <archive>
298                         <manifest>
299                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
300                         </manifest>
301                     </archive>
302                 </configuration>
303             </plugin>
304
305             <plugin>
306                 <groupId>org.apache.maven.plugins</groupId>
307                 <artifactId>maven-compiler-plugin</artifactId>
308                 <version>3.3</version>
309                 <configuration>
310                     <source>1.8</source>
311                     <target>1.8</target>
312                 </configuration>
313             </plugin>
314             <plugin>
315                 <groupId>org.apache.maven.plugins</groupId>
316                 <artifactId>maven-shade-plugin</artifactId>
317                 <configuration>
318                     <createDependencyReducedPom>true</createDependencyReducedPom>
319                     <filters>
320                         <filter>
321                             <artifact>*:*</artifact>
322                             <excludes>
323                                 <exclude>META-INF/*.SF</exclude>
324                                 <exclude>META-INF/*.DSA</exclude>
325                                 <exclude>META-INF/*.RSA</exclude>
326                             </excludes>
327                         </filter>
328                     </filters>
329                 </configuration>
330                 <executions>
331                     <execution>
332                         <phase>package</phase>
333                         <goals>
334                             <goal>shade</goal>
335                         </goals>
336                         <configuration>
337                             <transformers>
338                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
339                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
340                                     <mainClass>org.onap.holmes.rulemgt.RuleActiveApp</mainClass>
341                                 </transformer>
342                             </transformers>
343                         </configuration>
344                     </execution>
345                 </executions>
346             </plugin>
347         </plugins>
348         <resources>
349             <resource>
350                 <directory>src/main/java</directory>
351                 <includes>
352                     <include>**/*.properties</include>
353                 </includes>
354             </resource>
355             <resource>
356                 <directory>src/main/resources</directory>
357             </resource>
358         </resources>
359     </build>
360
361     <profiles>
362         <profile>
363             <id>swagger</id>
364             <dependencies>
365                 <dependency>
366                     <groupId>io.swagger</groupId>
367                     <artifactId>swagger-jersey2-jaxrs</artifactId>
368                     <version>1.5.3</version>
369                     <exclusions>
370                         <exclusion>
371                             <groupId>com.fasterxml.jackson.core</groupId>
372                             <artifactId>jackson-databind</artifactId>
373                         </exclusion>
374                         <exclusion>
375                             <groupId>com.fasterxml.jackson.core</groupId>
376                             <artifactId>jackson-core</artifactId>
377                         </exclusion>
378                     </exclusions>
379                 </dependency>
380             </dependencies>
381             <build>
382                 <plugins>
383                     <plugin>
384                         <groupId>com.github.kongchen</groupId>
385                         <artifactId>swagger-maven-plugin</artifactId>
386                         <version>3.1.1</version>
387                         <configuration>
388                             <apiSources>
389                                 <apiSource>
390                                     <springmvc>false</springmvc>
391                                     <locations>org.onap.holmes.rulemgt.resources</locations>
392                                     <basePath>/api/holmes-rule-mgmt/v1/</basePath>
393                                     <info>
394                                         <title>API Descriptions for Holmes Rule Management</title>
395                                         <version>v1</version>
396                                         <description>
397                                             This page shows all the APIs available in the Holmes rule management module.
398                                         </description>
399                                         <termsOfService>
400                                             http://www.github.com/kongchen/swagger-maven-plugin
401                                         </termsOfService>
402                                         <contact>
403                                             <email>fu.guangrong@zte.com.cn</email>
404                                             <name>Guangrong Fu</name>
405                                         </contact>
406                                         <license>
407                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
408                                             <name>Apache 2.0</name>
409                                         </license>
410                                     </info>
411                                     <securityDefinitions>
412                                     </securityDefinitions>
413                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
414                                 </apiSource>
415                             </apiSources>
416                         </configuration>
417                         <executions>
418                             <execution>
419                                 <phase>compile</phase>
420                                 <goals>
421                                     <goal>generate</goal>
422                                 </goals>
423                             </execution>
424                         </executions>
425                         <dependencies>
426                             <dependency>
427                                 <groupId>io.swagger</groupId>
428                                 <artifactId>swagger-hibernate-validations</artifactId>
429                                 <version>1.5.6</version>
430                             </dependency>
431                         </dependencies>
432                     </plugin>
433                 </plugins>
434             </build>
435         </profile>
436     </profiles>
437 </project>