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