8cf19338b30fbff74beef81f5dabd6893a7e90da
[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.hamcrest</groupId>
210             <artifactId>hamcrest-library</artifactId>
211             <version>1.3</version>
212             <scope>test</scope>
213         </dependency>
214         <dependency>
215             <groupId>org.easymock</groupId>
216             <artifactId>easymock</artifactId>
217             <version>3.0</version>
218             <scope>test</scope>
219         </dependency>
220         <!-- MSB java-sdk -->
221         <dependency>
222             <groupId>org.onap.msb.java-sdk</groupId>
223             <artifactId>msb-java-sdk</artifactId>
224             <version>1.1.0-SNAPSHOT</version>
225         </dependency>    
226     </dependencies>
227         
228         <profiles>
229         <profile>
230             <id>swagger</id>
231             <dependencies>
232                 <dependency>
233                     <groupId>io.swagger</groupId>
234                     <artifactId>swagger-jersey2-jaxrs</artifactId>
235                     <version>1.5.0</version>
236                 </dependency>
237             </dependencies>
238             <build>
239                 <plugins>
240                     <plugin>
241                         <groupId>com.github.kongchen</groupId>
242                         <artifactId>swagger-maven-plugin</artifactId>
243                         <version>3.1.1</version>
244                         <configuration>
245                             <apiSources>
246                                 <apiSource>
247                                     <springmvc>false</springmvc>
248                                     <locations>org.onap.aai.esr.resource</locations>
249                                     <basePath>/api/aai-esr-server/v1/</basePath>
250                                     <info>
251                                         <title>API Descriptions for External System Management</title>
252                                         <version>v1</version>
253                                         <description>
254                                             This page shows all the APIs available in the ESR server module.
255                                         </description>
256                                         <termsOfService>
257                                             http://www.github.com/kongchen/swagger-maven-plugin
258                                         </termsOfService>
259                                         <contact>
260                                             <email>li.zi30@zte.com.cn</email>
261                                             <name>Zi Li</name>
262                                         </contact>
263                                         <license>
264                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
265                                             <name>Apache 2.0</name>
266                                         </license>
267                                     </info>
268                                     <securityDefinitions>
269                                     </securityDefinitions>
270                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
271                                 </apiSource>
272                             </apiSources>
273                         </configuration>
274                         <executions>
275                             <execution>
276                                 <phase>compile</phase>
277                                 <goals>
278                                     <goal>generate</goal>
279                                 </goals>
280                             </execution>
281                         </executions>
282                         <dependencies>
283                             <dependency>
284                                 <groupId>io.swagger</groupId>
285                                 <artifactId>swagger-hibernate-validations</artifactId>
286                                 <version>1.5.6</version>
287                             </dependency>
288                         </dependencies>
289                     </plugin>
290                 </plugins>
291             </build>
292         </profile>
293     </profiles>
294 </project>