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