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