Fix the sonar issue.
[aai/esr-server.git] / esr-mgr / pom.xml
1 <?xml version="1.0"?>
2 <!--
3
4     Copyright 2016-2017 ZTE Corporation.
5
6     Licensed under the Apache License, Version 2.0 (the "License");
7     you may not use this file except in compliance with the License.
8     You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12     Unless required by applicable law or agreed to in writing, software
13     distributed under the License is distributed on an "AS IS" BASIS,
14     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15     See the License for the specific language governing permissions and
16     limitations under the License.
17
18 -->
19 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20
21         <parent>
22                 <groupId>org.onap.aai.esr-server</groupId>
23                 <artifactId>aai-esr-server</artifactId>
24                 <version>1.1.0-SNAPSHOT</version>
25         </parent>
26         
27         <modelVersion>4.0.0</modelVersion>
28         <artifactId>esr-mgr</artifactId>
29         <name>esr-server/esr-mgr</name>
30         <version>1.1.0-SNAPSHOT</version>
31         <packaging>jar</packaging>
32
33     <build>
34         <plugins>
35             <plugin>
36                 <groupId>org.eclipse.m2e</groupId>
37                 <artifactId>lifecycle-mapping</artifactId>
38                 <configuration>
39                     <lifecycleMappingMetadata>
40                         <pluginExecutions>
41                             <pluginExecution>
42                                 <pluginExecutionFilter>
43                                     <groupId>org.apache.maven.plugins</groupId>
44                                     <artifactId>maven-dependency-plugin</artifactId>
45                                     <versionRange>[2.0,)</versionRange>
46                                     <goals>
47                                         <goal>copy-dependencies</goal>
48                                     </goals>
49                                 </pluginExecutionFilter>
50                                 <action>
51                                     <ignore/>
52                                 </action>
53                             </pluginExecution>
54                         </pluginExecutions>
55                     </lifecycleMappingMetadata>
56                 </configuration>
57             </plugin>
58             <plugin>
59                 <groupId>org.apache.maven.plugins</groupId>
60                 <artifactId>maven-jar-plugin</artifactId>
61                 <configuration>
62                     <archive>
63                         <manifest>
64                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
65                         </manifest>
66                     </archive>
67                 </configuration>
68             </plugin>
69             <plugin>
70                 <groupId>org.apache.maven.plugins</groupId>
71                 <artifactId>maven-shade-plugin</artifactId>
72                 <configuration>
73                     <createDependencyReducedPom>true</createDependencyReducedPom>
74                     <filters>
75                         <filter>
76                             <artifact>*:*</artifact>
77                             <excludes>
78                                 <exclude>META-INF/*.SF</exclude>
79                                 <exclude>META-INF/*.DSA</exclude>
80                                 <exclude>META-INF/*.RSA</exclude>
81                             </excludes>
82                         </filter>
83                     </filters>
84                 </configuration>
85                 <executions>
86                     <execution>
87                         <phase>package</phase>
88                         <goals>
89                             <goal>shade</goal>
90                         </goals>
91                         <configuration>
92                             <transformers>
93                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
94                                 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
95                                     <mainClass>org.onap.aai.esr.extsysApp</mainClass>
96                                 </transformer>
97                             </transformers>
98                         </configuration>
99                     </execution>
100                 </executions>
101             </plugin>
102             <plugin>
103                 <groupId>org.apache.maven.plugins</groupId>
104                 <artifactId>maven-dependency-plugin</artifactId>
105                 <executions>
106                     <execution>
107                         <id>copy-dependencies</id>
108                         <phase>package</phase>
109                         <goals>
110                             <goal>copy-dependencies</goal>
111                         </goals>
112                         <configuration>
113                             <artifactItems>
114                                 <artifactItem>
115                                     <groupId>io.dropwizard</groupId>
116                                     <artifactId>dropwizard-core</artifactId>
117                                     <version>${dropwizard.version}</version>
118                                     <overWrite>true</overWrite>
119                                 </artifactItem>
120                             </artifactItems>
121                         </configuration>
122                     </execution>
123                 </executions>
124             </plugin>
125         </plugins>
126     </build>
127
128     <dependencies>
129         <dependency>
130             <groupId>io.dropwizard</groupId>
131             <artifactId>dropwizard-core</artifactId>
132         </dependency>
133         <dependency>
134             <groupId>io.dropwizard</groupId>
135             <artifactId>dropwizard-assets</artifactId>
136         </dependency>
137         <dependency>
138             <groupId>io.dropwizard</groupId>
139             <artifactId>dropwizard-hibernate</artifactId>
140         </dependency>
141         <dependency>
142             <groupId>io.swagger</groupId>
143             <artifactId>swagger-jersey2-jaxrs</artifactId>
144         </dependency>
145                 <dependency>
146                         <groupId>com.fasterxml.jackson.core</groupId>
147                         <artifactId>jackson-databind</artifactId>
148                         <version>2.9.4</version>
149                 </dependency>
150         <!-- jersey -->
151         <dependency>
152             <groupId>org.glassfish.jersey.core</groupId>
153             <artifactId>jersey-server</artifactId>
154         </dependency>
155         <dependency>
156             <groupId>org.glassfish.jersey.media</groupId>
157             <artifactId>jersey-media-multipart</artifactId>
158         </dependency>
159         <dependency>
160             <groupId>org.glassfish.jersey.containers</groupId>
161             <artifactId>jersey-container-servlet-core</artifactId>
162         </dependency>
163         <!-- consumer -->
164         <dependency>
165             <groupId>com.eclipsesource.jaxrs</groupId>
166             <artifactId>consumer</artifactId>
167             <exclusions>
168                 <exclusion>
169                     <groupId>com.eclipsesource.jaxrs</groupId>
170                     <artifactId>jersey-all</artifactId>
171                 </exclusion>
172             </exclusions>
173         </dependency>
174         <!-- gson -->
175         <dependency>
176             <groupId>com.google.code.gson</groupId>
177             <artifactId>gson</artifactId>
178         </dependency>
179         <!-- UT -->
180         <dependency>
181             <groupId>junit</groupId>
182             <artifactId>junit</artifactId>
183             <scope>test</scope>
184         </dependency>
185         <dependency>
186             <groupId>org.apache.ant</groupId>
187             <artifactId>ant</artifactId>
188             <scope>test</scope>
189         </dependency>
190         <dependency>
191             <groupId>org.powermock</groupId>
192             <artifactId>powermock-api-easymock</artifactId>
193             <version>1.6.5</version>
194             <scope>test</scope>
195         </dependency>
196         <!-- <dependency>
197             <groupId>org.powermock</groupId>
198             <artifactId>powermock-api-mockito</artifactId>
199             <version>1.7.1</version>
200             <scope>test</scope>
201         </dependency>
202         <dependency>
203             <groupId>org.powermock</groupId>
204             <artifactId>powermock-module-junit4-rule</artifactId>
205             <version>1.6.5</version>
206             <scope>test</scope>
207         </dependency> -->
208         <dependency>
209                 <groupId>org.powermock</groupId>
210                 <artifactId>powermock-module-junit4</artifactId>
211                 <version>1.5.5</version>
212                 <scope>test</scope>
213         </dependency>
214         <dependency>
215             <groupId>org.powermock</groupId>
216             <artifactId>powermock-api-mockito</artifactId>
217             <version>1.5.5</version>
218             <scope>test</scope>
219         </dependency>
220         <dependency>
221             <groupId>org.hamcrest</groupId>
222             <artifactId>hamcrest-library</artifactId>
223             <version>1.3</version>
224             <scope>test</scope>
225         </dependency>
226         <dependency>
227             <groupId>org.easymock</groupId>
228             <artifactId>easymock</artifactId>
229             <version>3.0</version>
230             <scope>test</scope>
231         </dependency>
232         <!-- MSB java-sdk -->
233         <dependency>
234             <groupId>org.onap.msb.java-sdk</groupId>
235             <artifactId>msb-java-sdk</artifactId>
236             <version>1.1.0-SNAPSHOT</version>
237         </dependency>    
238     </dependencies>
239         
240         <profiles>
241         <profile>
242             <id>swagger</id>
243             <dependencies>
244                 <dependency>
245                     <groupId>io.swagger</groupId>
246                     <artifactId>swagger-jersey2-jaxrs</artifactId>
247                     <version>1.5.0</version>
248                 </dependency>
249             </dependencies>
250             <build>
251                 <plugins>
252                     <plugin>
253                         <groupId>com.github.kongchen</groupId>
254                         <artifactId>swagger-maven-plugin</artifactId>
255                         <version>3.1.1</version>
256                         <configuration>
257                             <apiSources>
258                                 <apiSource>
259                                     <springmvc>false</springmvc>
260                                     <locations>org.onap.aai.esr.resource</locations>
261                                     <basePath>/api/aai-esr-server/v1/</basePath>
262                                     <info>
263                                         <title>API Descriptions for External System Management</title>
264                                         <version>v1</version>
265                                         <description>
266                                             This page shows all the APIs available in the ESR server module.
267                                         </description>
268                                         <termsOfService>
269                                             http://www.github.com/kongchen/swagger-maven-plugin
270                                         </termsOfService>
271                                         <contact>
272                                             <email>li.zi30@zte.com.cn</email>
273                                             <name>Zi Li</name>
274                                         </contact>
275                                         <license>
276                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
277                                             <name>Apache 2.0</name>
278                                         </license>
279                                     </info>
280                                     <securityDefinitions>
281                                     </securityDefinitions>
282                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
283                                 </apiSource>
284                             </apiSources>
285                         </configuration>
286                         <executions>
287                             <execution>
288                                 <phase>compile</phase>
289                                 <goals>
290                                     <goal>generate</goal>
291                                 </goals>
292                             </execution>
293                         </executions>
294                         <dependencies>
295                             <dependency>
296                                 <groupId>io.swagger</groupId>
297                                 <artifactId>swagger-hibernate-validations</artifactId>
298                                 <version>1.5.6</version>
299                             </dependency>
300                         </dependencies>
301                     </plugin>
302                 </plugins>
303             </build>
304         </profile>
305     </profiles>
306 </project>