Fix the security issue casused by java-sdk.
[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.apache.ant</groupId>
183             <artifactId>ant</artifactId>
184             <scope>test</scope>
185         </dependency>
186         <dependency>
187             <groupId>org.powermock</groupId>
188             <artifactId>powermock-api-easymock</artifactId>
189             <version>1.6.5</version>
190             <scope>test</scope>
191         </dependency>
192         <dependency>
193             <groupId>org.powermock</groupId>
194             <artifactId>powermock-api-mockito</artifactId>
195             <version>1.7.1</version>
196             <scope>test</scope>
197         </dependency>
198         <dependency>
199             <groupId>org.powermock</groupId>
200             <artifactId>powermock-module-junit4-rule</artifactId>
201             <version>1.6.5</version>
202             <scope>test</scope>
203         </dependency>
204         <dependency>
205             <groupId>org.powermock</groupId>
206             <artifactId>powermock-classloading-xstream</artifactId>
207             <version>1.6.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-SNAPSHOT</version>
227         </dependency>    
228     </dependencies>
229         
230         <profiles>
231         <profile>
232             <id>swagger</id>
233             <dependencies>
234                 <dependency>
235                     <groupId>io.swagger</groupId>
236                     <artifactId>swagger-jersey2-jaxrs</artifactId>
237                     <version>1.5.0</version>
238                 </dependency>
239             </dependencies>
240             <build>
241                 <plugins>
242                     <plugin>
243                         <groupId>com.github.kongchen</groupId>
244                         <artifactId>swagger-maven-plugin</artifactId>
245                         <version>3.1.1</version>
246                         <configuration>
247                             <apiSources>
248                                 <apiSource>
249                                     <springmvc>false</springmvc>
250                                     <locations>org.onap.aai.esr.resource</locations>
251                                     <basePath>/api/aai-esr-server/v1/</basePath>
252                                     <info>
253                                         <title>API Descriptions for External System Management</title>
254                                         <version>v1</version>
255                                         <description>
256                                             This page shows all the APIs available in the ESR server module.
257                                         </description>
258                                         <termsOfService>
259                                             http://www.github.com/kongchen/swagger-maven-plugin
260                                         </termsOfService>
261                                         <contact>
262                                             <email>li.zi30@zte.com.cn</email>
263                                             <name>Zi Li</name>
264                                         </contact>
265                                         <license>
266                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
267                                             <name>Apache 2.0</name>
268                                         </license>
269                                     </info>
270                                     <securityDefinitions>
271                                     </securityDefinitions>
272                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
273                                 </apiSource>
274                             </apiSources>
275                         </configuration>
276                         <executions>
277                             <execution>
278                                 <phase>compile</phase>
279                                 <goals>
280                                     <goal>generate</goal>
281                                 </goals>
282                             </execution>
283                         </executions>
284                         <dependencies>
285                             <dependency>
286                                 <groupId>io.swagger</groupId>
287                                 <artifactId>swagger-hibernate-validations</artifactId>
288                                 <version>1.5.6</version>
289                             </dependency>
290                         </dependencies>
291                     </plugin>
292                 </plugins>
293             </build>
294         </profile>
295     </profiles>
296 </project>