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