Refactor cloud region registration logic
[aai/esr-server.git] / esr-mgr / dependency-reduced-pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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/maven-v4_0_0.xsd">
3   <parent>
4     <artifactId>aai-esr-server</artifactId>
5     <groupId>org.onap.aai.esr-server</groupId>
6     <version>1.1.0-SNAPSHOT</version>
7   </parent>
8   <modelVersion>4.0.0</modelVersion>
9   <artifactId>esr-mgr</artifactId>
10   <name>esr-server/esr-mgr</name>
11   <version>1.1.0-SNAPSHOT</version>
12   <build>
13     <plugins>
14       <plugin>
15         <groupId>org.eclipse.m2e</groupId>
16         <artifactId>lifecycle-mapping</artifactId>
17         <configuration>
18           <lifecycleMappingMetadata>
19             <pluginExecutions>
20               <pluginExecution>
21                 <pluginExecutionFilter>
22                   <groupId>org.apache.maven.plugins</groupId>
23                   <artifactId>maven-dependency-plugin</artifactId>
24                   <versionRange>[2.0,)</versionRange>
25                   <goals>
26                     <goal>copy-dependencies</goal>
27                   </goals>
28                 </pluginExecutionFilter>
29                 <action>
30                   <ignore />
31                 </action>
32               </pluginExecution>
33             </pluginExecutions>
34           </lifecycleMappingMetadata>
35         </configuration>
36       </plugin>
37       <plugin>
38         <artifactId>maven-jar-plugin</artifactId>
39         <configuration>
40           <archive>
41             <manifest>
42               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
43             </manifest>
44           </archive>
45         </configuration>
46       </plugin>
47       <plugin>
48         <artifactId>maven-shade-plugin</artifactId>
49         <executions>
50           <execution>
51             <phase>package</phase>
52             <goals>
53               <goal>shade</goal>
54             </goals>
55             <configuration>
56               <transformers>
57                 <transformer />
58                 <transformer>
59                   <mainClass>org.onap.aai.esr.extsysApp</mainClass>
60                 </transformer>
61               </transformers>
62             </configuration>
63           </execution>
64         </executions>
65         <configuration>
66           <createDependencyReducedPom>true</createDependencyReducedPom>
67           <filters>
68             <filter>
69               <artifact>*:*</artifact>
70               <excludes>
71                 <exclude>META-INF/*.SF</exclude>
72                 <exclude>META-INF/*.DSA</exclude>
73                 <exclude>META-INF/*.RSA</exclude>
74               </excludes>
75             </filter>
76           </filters>
77         </configuration>
78       </plugin>
79       <plugin>
80         <artifactId>maven-dependency-plugin</artifactId>
81         <executions>
82           <execution>
83             <id>copy-dependencies</id>
84             <phase>package</phase>
85             <goals>
86               <goal>copy-dependencies</goal>
87             </goals>
88             <configuration>
89               <artifactItems>
90                 <artifactItem>
91                   <groupId>io.dropwizard</groupId>
92                   <artifactId>dropwizard-core</artifactId>
93                   <version>${dropwizard.version}</version>
94                   <overWrite>true</overWrite>
95                 </artifactItem>
96               </artifactItems>
97             </configuration>
98           </execution>
99         </executions>
100       </plugin>
101     </plugins>
102   </build>
103   <profiles>
104     <profile>
105       <id>swagger</id>
106       <build>
107         <plugins>
108           <plugin>
109             <groupId>com.github.kongchen</groupId>
110             <artifactId>swagger-maven-plugin</artifactId>
111             <version>3.1.1</version>
112             <executions>
113               <execution>
114                 <phase>compile</phase>
115                 <goals>
116                   <goal>generate</goal>
117                 </goals>
118               </execution>
119             </executions>
120             <dependencies>
121               <dependency>
122                 <groupId>io.swagger</groupId>
123                 <artifactId>swagger-hibernate-validations</artifactId>
124                 <version>1.5.6</version>
125               </dependency>
126             </dependencies>
127             <configuration>
128               <apiSources>
129                 <apiSource>
130                   <springmvc>false</springmvc>
131                   <locations>org.onap.aai.esr.resource</locations>
132                   <basePath>/api/aai-esr-server/v1/</basePath>
133                   <info>
134                     <title>API Descriptions for External System Management</title>
135                     <version>v1</version>
136                     <description>This page shows all the APIs available in the ESR server module.</description>
137                     <termsOfService>http://www.github.com/kongchen/swagger-maven-plugin</termsOfService>
138                     <contact>
139                       <email>li.zi30@zte.com.cn</email>
140                       <name>Zi Li</name>
141                     </contact>
142                     <license>
143                       <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
144                       <name>Apache 2.0</name>
145                     </license>
146                   </info>
147                   <securityDefinitions />
148                   <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
149                 </apiSource>
150               </apiSources>
151             </configuration>
152           </plugin>
153         </plugins>
154       </build>
155       <dependencies>
156         <dependency>
157           <groupId>io.swagger</groupId>
158           <artifactId>swagger-jersey2-jaxrs</artifactId>
159           <version>1.5.0</version>
160         </dependency>
161       </dependencies>
162     </profile>
163   </profiles>
164   <dependencies>
165     <dependency>
166       <groupId>junit</groupId>
167       <artifactId>junit</artifactId>
168       <version>4.10</version>
169       <scope>test</scope>
170       <exclusions>
171         <exclusion>
172           <artifactId>hamcrest-core</artifactId>
173           <groupId>org.hamcrest</groupId>
174         </exclusion>
175       </exclusions>
176     </dependency>
177     <dependency>
178       <groupId>org.powermock</groupId>
179       <artifactId>powermock-module-junit4</artifactId>
180       <version>1.4.10</version>
181       <scope>test</scope>
182       <exclusions>
183         <exclusion>
184           <artifactId>powermock-module-junit4-common</artifactId>
185           <groupId>org.powermock</groupId>
186         </exclusion>
187       </exclusions>
188     </dependency>
189     <dependency>
190       <groupId>org.powermock</groupId>
191       <artifactId>powermock-api-mockito</artifactId>
192       <version>1.4.10</version>
193       <scope>test</scope>
194       <exclusions>
195         <exclusion>
196           <artifactId>mockito-all</artifactId>
197           <groupId>org.mockito</groupId>
198         </exclusion>
199         <exclusion>
200           <artifactId>powermock-api-support</artifactId>
201           <groupId>org.powermock</groupId>
202         </exclusion>
203       </exclusions>
204     </dependency>
205     <dependency>
206       <groupId>org.apache.ant</groupId>
207       <artifactId>ant</artifactId>
208       <version>1.8.2</version>
209       <scope>test</scope>
210       <exclusions>
211         <exclusion>
212           <artifactId>ant-launcher</artifactId>
213           <groupId>org.apache.ant</groupId>
214         </exclusion>
215       </exclusions>
216     </dependency>
217   </dependencies>
218 </project>
219