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