Upload the ESR server seed code.
[aai/esr-server.git] / esr-core / esr-mgr / pom.xml
1 <?xml version="1.0"?>
2 <!--
3
4     Copyright 2016 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>esr-core-parent</artifactId>
24         <version>1.0.0-SNAPSHOT</version>
25     </parent>
26
27     <modelVersion>4.0.0</modelVersion>
28     <artifactId>esr-mgr</artifactId>
29     <name>esr-server/esr-core/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         </dependency>
132         <dependency>
133             <groupId>io.dropwizard</groupId>
134             <artifactId>dropwizard-assets</artifactId>
135         </dependency>
136         <dependency>
137             <groupId>io.dropwizard</groupId>
138             <artifactId>dropwizard-hibernate</artifactId>
139         </dependency>
140         <!-- lombok -->
141         <dependency>
142             <groupId>org.projectlombok</groupId>
143             <artifactId>lombok</artifactId>            
144         </dependency>
145         <dependency>
146             <groupId>io.swagger</groupId>
147             <artifactId>swagger-jersey2-jaxrs</artifactId>
148         </dependency>
149         <!-- jersey -->
150         <dependency>
151             <groupId>org.glassfish.jersey.core</groupId>
152             <artifactId>jersey-server</artifactId>
153         </dependency>
154         <dependency>
155             <groupId>org.glassfish.jersey.media</groupId>
156             <artifactId>jersey-media-multipart</artifactId>
157         </dependency>
158         <dependency>
159             <groupId>org.glassfish.jersey.containers</groupId>
160             <artifactId>jersey-container-servlet-core</artifactId>
161         </dependency>
162         <!-- consumer -->
163         <dependency>
164             <groupId>com.eclipsesource.jaxrs</groupId>
165             <artifactId>consumer</artifactId>
166             <exclusions>
167                 <exclusion>
168                     <groupId>com.eclipsesource.jaxrs</groupId>
169                     <artifactId>jersey-all</artifactId>
170                 </exclusion>
171             </exclusions>
172         </dependency>
173         <!-- gson -->
174         <dependency>
175             <groupId>com.google.code.gson</groupId>
176             <artifactId>gson</artifactId>
177         </dependency>
178         <dependency>
179             <groupId>mysql</groupId>
180             <artifactId>mysql-connector-java</artifactId>
181         </dependency>
182         <!-- UT -->
183         <dependency>
184             <groupId>junit</groupId>
185             <artifactId>junit</artifactId>
186             <scope>test</scope>
187         </dependency>
188         <dependency>
189             <groupId>org.powermock</groupId>
190             <artifactId>powermock-module-junit4</artifactId>
191             <scope>test</scope>
192         </dependency>
193         <dependency>
194             <groupId>org.powermock</groupId>
195             <artifactId>powermock-api-mockito</artifactId>
196             <scope>test</scope>
197         </dependency>
198         <dependency>
199             <groupId>com.h2database</groupId>
200             <artifactId>h2</artifactId>
201             <scope>test</scope>
202         </dependency>
203         <dependency>
204             <groupId>org.apache.ant</groupId>
205             <artifactId>ant</artifactId>
206             <scope>test</scope>
207         </dependency>
208         <!-- UT end -->
209     </dependencies>
210 </project>