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