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