Bump minor version
[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
146         <!-- jersey -->
147         <dependency>
148             <groupId>org.glassfish.jersey.core</groupId>
149             <artifactId>jersey-server</artifactId>
150         </dependency>
151         <dependency>
152             <groupId>org.glassfish.jersey.media</groupId>
153             <artifactId>jersey-media-multipart</artifactId>
154         </dependency>
155         <dependency>
156             <groupId>org.glassfish.jersey.containers</groupId>
157             <artifactId>jersey-container-servlet-core</artifactId>
158         </dependency>
159         <!-- consumer -->
160         <dependency>
161             <groupId>com.eclipsesource.jaxrs</groupId>
162             <artifactId>consumer</artifactId>
163             <exclusions>
164                 <exclusion>
165                     <groupId>com.eclipsesource.jaxrs</groupId>
166                     <artifactId>jersey-all</artifactId>
167                 </exclusion>
168             </exclusions>
169         </dependency>
170         <!-- gson -->
171         <dependency>
172             <groupId>com.google.code.gson</groupId>
173             <artifactId>gson</artifactId>
174         </dependency>
175         <!-- UT -->
176         <dependency>
177             <groupId>junit</groupId>
178             <artifactId>junit</artifactId>
179             <scope>test</scope>
180         </dependency>
181         <dependency>
182             <groupId>org.powermock</groupId>
183             <artifactId>powermock-module-junit4</artifactId>
184             <scope>test</scope>
185         </dependency>
186         <dependency>
187             <groupId>org.powermock</groupId>
188             <artifactId>powermock-api-mockito</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         <!-- MSB java-sdk -->
197         <dependency>
198             <groupId>org.onap.msb.java-sdk</groupId>
199             <artifactId>msb-java-sdk</artifactId>
200             <version>1.0.0</version>
201          </dependency>    
202     </dependencies>
203         
204         <profiles>
205         <profile>
206             <id>swagger</id>
207             <dependencies>
208                 <dependency>
209                     <groupId>io.swagger</groupId>
210                     <artifactId>swagger-jersey2-jaxrs</artifactId>
211                     <version>1.5.0</version>
212                 </dependency>
213             </dependencies>
214             <build>
215                 <plugins>
216                     <plugin>
217                         <groupId>com.github.kongchen</groupId>
218                         <artifactId>swagger-maven-plugin</artifactId>
219                         <version>3.1.1</version>
220                         <configuration>
221                             <apiSources>
222                                 <apiSource>
223                                     <springmvc>false</springmvc>
224                                     <locations>org.onap.aai.esr.resource</locations>
225                                     <basePath>/api/aai-esr-server/v1/</basePath>
226                                     <info>
227                                         <title>API Descriptions for External System Management</title>
228                                         <version>v1</version>
229                                         <description>
230                                             This page shows all the APIs available in the ESR server module.
231                                         </description>
232                                         <termsOfService>
233                                             http://www.github.com/kongchen/swagger-maven-plugin
234                                         </termsOfService>
235                                         <contact>
236                                             <email>li.zi30@zte.com.cn</email>
237                                             <name>Zi Li</name>
238                                         </contact>
239                                         <license>
240                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
241                                             <name>Apache 2.0</name>
242                                         </license>
243                                     </info>
244                                     <securityDefinitions>
245                                     </securityDefinitions>
246                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
247                                 </apiSource>
248                             </apiSources>
249                         </configuration>
250                         <executions>
251                             <execution>
252                                 <phase>compile</phase>
253                                 <goals>
254                                     <goal>generate</goal>
255                                 </goals>
256                             </execution>
257                         </executions>
258                         <dependencies>
259                             <dependency>
260                                 <groupId>io.swagger</groupId>
261                                 <artifactId>swagger-hibernate-validations</artifactId>
262                                 <version>1.5.6</version>
263                             </dependency>
264                         </dependencies>
265                     </plugin>
266                 </plugins>
267             </build>
268         </profile>
269     </profiles>
270 </project>