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