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