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