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