f16de8e2e16bf2f305c5368f4835f1eb9bd56345
[holmes/dsa.git] / dmaap-dsa / 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.dsa</groupId>
22         <artifactId>holmes-dsa-parent</artifactId>
23         <version>1.2.0-SNAPSHOT</version>
24     </parent>
25
26     <artifactId>dmaap-dsa</artifactId>
27     <name>holmes-dmaap-dsa</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>com.eclipsesource.jaxrs</groupId>
42                     <artifactId>jersey-all</artifactId>
43                 </exclusion>
44                 <exclusion>
45                     <groupId>ch.qos.logback</groupId>
46                     <artifactId>logback-classic</artifactId>
47                 </exclusion>
48                 <exclusion>
49                     <groupId>com.fasterxml.jackson.core</groupId>
50                     <artifactId>jackson-databind</artifactId>
51                 </exclusion>
52                 <exclusion>
53                     <groupId>com.fasterxml.jackson.core</groupId>
54                     <artifactId>jackson-core</artifactId>
55                 </exclusion>
56             </exclusions>
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>org.apache.activemq</groupId>
68                     <artifactId>activemq-core</artifactId>
69                 </exclusion>
70             </exclusions>
71         </dependency>
72         <dependency>
73             <groupId>org.easymock</groupId>
74             <artifactId>easymock</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>io.dropwizard</groupId>
78             <artifactId>dropwizard-db</artifactId>
79         </dependency>
80         <dependency>
81             <groupId>org.antlr</groupId>
82             <artifactId>stringtemplate</artifactId>
83         </dependency>
84         <dependency>
85             <groupId>io.dropwizard</groupId>
86             <artifactId>dropwizard-core</artifactId>
87             <exclusions>
88                 <exclusion>
89                     <groupId>ch.qos.logback</groupId>
90                     <artifactId>logback</artifactId>
91                 </exclusion>
92                 <exclusion>
93                     <groupId>ch.qos.logback</groupId>
94                     <artifactId>logback-classic</artifactId>
95                 </exclusion>
96                 <exclusion>
97                     <artifactId>log4j-over-slf4j</artifactId>
98                     <groupId>org.slf4j</groupId>
99                 </exclusion>
100                 <exclusion>
101                     <groupId>org.hibernate</groupId>
102                     <artifactId>hibernate-validator</artifactId>
103                 </exclusion>
104             </exclusions>
105         </dependency>
106
107         <dependency>
108             <groupId>net.sf.json-lib</groupId>
109             <artifactId>json-lib</artifactId>
110             <version>2.4</version>
111             <classifier>jdk15</classifier>
112             <exclusions>
113                 <exclusion>
114                     <groupId>commons-collections</groupId>
115                     <artifactId>commons-collections</artifactId>
116                 </exclusion>
117                 <exclusion>
118                     <groupId>commons-beanutils</groupId>
119                     <artifactId>commons-beanutils</artifactId>
120                 </exclusion>
121             </exclusions>
122         </dependency>
123         <dependency>
124             <groupId>commons-collections</groupId>
125             <artifactId>commons-collections</artifactId>
126             <version>3.2.2</version>
127         </dependency>
128         <dependency>
129             <groupId>com.alibaba</groupId>
130             <artifactId>fastjson</artifactId>
131             <version>1.2.49</version>
132         </dependency>
133
134         <dependency>
135             <groupId>org.projectlombok</groupId>
136             <artifactId>lombok</artifactId>
137         </dependency>
138         <dependency>
139             <groupId>org.quartz-scheduler</groupId>
140             <artifactId>quartz</artifactId>
141         </dependency>
142         <dependency>
143             <groupId>junit</groupId>
144             <artifactId>junit</artifactId>
145         </dependency>
146         <dependency>
147             <groupId>org.hamcrest</groupId>
148             <artifactId>hamcrest-core</artifactId>
149         </dependency>
150         <dependency>
151             <groupId>org.powermock</groupId>
152             <artifactId>powermock-module-junit4</artifactId>
153         </dependency>
154         <dependency>
155             <groupId>org.slf4j</groupId>
156             <artifactId>slf4j-api</artifactId>
157         </dependency>
158         <dependency>
159             <groupId>io.swagger</groupId>
160             <artifactId>swagger-jersey2-jaxrs</artifactId>
161             <scope>provided</scope>
162         </dependency>
163         <dependency>
164             <groupId>org.powermock</groupId>
165             <artifactId>powermock-api-easymock</artifactId>
166             <version>1.6.5</version>
167             <scope>test</scope>
168         </dependency>
169         <dependency>
170             <groupId>org.powermock</groupId>
171             <artifactId>powermock-api-mockito</artifactId>
172             <version>1.7.1</version>
173             <scope>test</scope>
174         </dependency>
175         <dependency>
176             <groupId>org.powermock</groupId>
177             <artifactId>powermock-module-junit4-rule</artifactId>
178             <version>1.6.5</version>
179             <scope>test</scope>
180         </dependency>
181         <dependency>
182             <groupId>org.powermock</groupId>
183             <artifactId>powermock-classloading-xstream</artifactId>
184             <version>1.6.5</version>
185             <scope>test</scope>
186         </dependency>
187         <dependency>
188             <groupId>org.hamcrest</groupId>
189             <artifactId>hamcrest-library</artifactId>
190             <version>1.3</version>
191             <scope>test</scope>
192         </dependency>
193         <dependency>
194             <groupId>org.easymock</groupId>
195             <artifactId>easymock</artifactId>
196             <version>3.0</version>
197             <scope>test</scope>
198         </dependency>
199         <dependency>
200             <groupId>org.javassist</groupId>
201             <artifactId>javassist</artifactId>
202             <version>3.22.0-GA</version>
203         </dependency>
204         <dependency>
205             <groupId>org.apache.httpcomponents</groupId>
206             <artifactId>httpclient</artifactId>
207             <version>4.5.3</version>
208         </dependency>
209         <dependency>
210             <groupId>com.googlecode.json-simple</groupId>
211             <artifactId>json-simple</artifactId>
212             <version>1.1.1</version>
213         </dependency>
214         <dependency>
215             <groupId>org.glassfish.jersey.core</groupId>
216             <artifactId>jersey-server</artifactId>
217             <version>${jersey.version}</version>
218         </dependency>
219         <dependency>
220             <groupId>org.glassfish.jersey.core</groupId>
221             <artifactId>jersey-client</artifactId>
222             <version>${jersey.version}</version>
223         </dependency>
224         <dependency>
225             <groupId>org.glassfish.jersey.core</groupId>
226             <artifactId>jersey-common</artifactId>
227             <version>${jersey.version}</version>
228         </dependency>
229         <dependency>
230             <groupId>org.glassfish.jersey.containers</groupId>
231             <artifactId>jersey-container-servlet-core</artifactId>
232             <version>${jersey.version}</version>
233         </dependency>
234         <dependency>
235             <groupId>com.google.guava</groupId>
236             <artifactId>guava</artifactId>
237
238             <exclusions>
239                 <exclusion>
240                     <groupId>com.fasterxml.jackson.core</groupId>
241                     <artifactId>jackson-core</artifactId>
242                 </exclusion>
243             </exclusions>
244         </dependency>
245
246     </dependencies>
247     <build>
248         <plugins>
249             <plugin>
250                 <groupId>org.apache.maven.plugins</groupId>
251                 <artifactId>maven-jar-plugin</artifactId>
252                 <configuration>
253                     <archive>
254                         <manifest>
255                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
256                         </manifest>
257                     </archive>
258                 </configuration>
259             </plugin>
260             <plugin>
261                 <groupId>org.apache.maven.plugins</groupId>
262                 <artifactId>maven-compiler-plugin</artifactId>
263                 <version>3.3</version>
264                 <configuration>
265                     <source>1.8</source>
266                     <target>1.8</target>
267                 </configuration>
268             </plugin>
269             <plugin>
270                 <groupId>org.apache.maven.plugins</groupId>
271                 <artifactId>maven-shade-plugin</artifactId>
272                 <configuration>
273                     <createDependencyReducedPom>true</createDependencyReducedPom>
274                     <filters>
275                         <filter>
276                             <artifact>*:*</artifact>
277                             <excludes>
278                                 <exclude>META-INF/*.SF</exclude>
279                                 <exclude>META-INF/*.DSA</exclude>
280                                 <exclude>META-INF/*.RSA</exclude>
281                             </excludes>
282                         </filter>
283                     </filters>
284                 </configuration>
285                 <executions>
286                     <execution>
287                         <phase>package</phase>
288                         <goals>
289                             <goal>shade</goal>
290                         </goals>
291                         <configuration>
292                             <transformers>
293                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
294                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
295                                     <mainClass>org.onap.holmes.dsa.DMaapDsaActiveApp</mainClass>
296                                 </transformer>
297                             </transformers>
298                         </configuration>
299                     </execution>
300                 </executions>
301             </plugin>
302
303         </plugins>
304         <resources>
305             <resource>
306                 <directory>src/main/java</directory>
307                 <includes>
308                     <include>**/*.properties</include>
309                 </includes>
310             </resource>
311             <resource>
312                 <directory>src/main/resources</directory>
313             </resource>
314         </resources>
315     </build>
316 </project>