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