Remove the database related code in ESR.
[aai/esr-server.git] / esr-core / 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>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         <dependency>
141             <groupId>io.swagger</groupId>
142             <artifactId>swagger-jersey2-jaxrs</artifactId>
143         </dependency>
144         <!-- jersey -->
145         <dependency>
146             <groupId>org.glassfish.jersey.core</groupId>
147             <artifactId>jersey-server</artifactId>
148         </dependency>
149         <dependency>
150             <groupId>org.glassfish.jersey.media</groupId>
151             <artifactId>jersey-media-multipart</artifactId>
152         </dependency>
153         <dependency>
154             <groupId>org.glassfish.jersey.containers</groupId>
155             <artifactId>jersey-container-servlet-core</artifactId>
156         </dependency>
157         <!-- consumer -->
158         <dependency>
159             <groupId>com.eclipsesource.jaxrs</groupId>
160             <artifactId>consumer</artifactId>
161             <exclusions>
162                 <exclusion>
163                     <groupId>com.eclipsesource.jaxrs</groupId>
164                     <artifactId>jersey-all</artifactId>
165                 </exclusion>
166             </exclusions>
167         </dependency>
168         <!-- gson -->
169         <dependency>
170             <groupId>com.google.code.gson</groupId>
171             <artifactId>gson</artifactId>
172         </dependency>
173         <!-- UT -->
174         <dependency>
175             <groupId>junit</groupId>
176             <artifactId>junit</artifactId>
177             <scope>test</scope>
178         </dependency>
179         <dependency>
180             <groupId>org.powermock</groupId>
181             <artifactId>powermock-module-junit4</artifactId>
182             <scope>test</scope>
183         </dependency>
184         <dependency>
185             <groupId>org.powermock</groupId>
186             <artifactId>powermock-api-mockito</artifactId>
187             <scope>test</scope>
188         </dependency>
189         <dependency>
190             <groupId>org.apache.ant</groupId>
191             <artifactId>ant</artifactId>
192             <scope>test</scope>
193         </dependency>
194         <!-- UT end -->
195     </dependencies>
196 </project>