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