Merge "Documentation for MSB"
[msb/apigateway.git] / apiroute / apiroute-service / 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>apiroute-parent</artifactId>
5     <groupId>org.onap.msb.apigateway.apiroute</groupId>
6     <version>1.0.0-SNAPSHOT</version>
7   </parent>
8   <modelVersion>4.0.0</modelVersion>
9   <groupId>org.onap.msb.apigateway.apiroute</groupId>
10   <artifactId>apiroute-service</artifactId>
11   <name>onap/msb/apigateway/apiroute/apiroute-service</name>
12   <version>1.0.0-SNAPSHOT</version>
13   <build>
14     <resources>
15       <resource>
16         <directory>src/main/java</directory>
17         <includes>
18           <include>**/*.properties</include>
19         </includes>
20       </resource>
21       <resource>
22         <directory>src/main/resources</directory>
23       </resource>
24     </resources>
25     <plugins>
26       <plugin>
27         <artifactId>maven-jar-plugin</artifactId>
28         <version>2.4</version>
29         <configuration>
30           <archive>
31             <manifest>
32               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
33             </manifest>
34           </archive>
35         </configuration>
36       </plugin>
37       <plugin>
38         <artifactId>maven-shade-plugin</artifactId>
39         <version>2.3</version>
40         <executions>
41           <execution>
42             <phase>package</phase>
43             <goals>
44               <goal>shade</goal>
45             </goals>
46             <configuration>
47               <transformers>
48                 <transformer />
49                 <transformer>
50                   <mainClass>org.onap.msb.apiroute.ApiRouteApp</mainClass>
51                 </transformer>
52               </transformers>
53             </configuration>
54           </execution>
55         </executions>
56         <configuration>
57           <createDependencyReducedPom>true</createDependencyReducedPom>
58           <filters>
59             <filter>
60               <artifact>*:*</artifact>
61               <excludes>
62                 <exclude>META-INF/*.SF</exclude>
63                 <exclude>META-INF/*.DSA</exclude>
64                 <exclude>META-INF/*.RSA</exclude>
65               </excludes>
66             </filter>
67           </filters>
68         </configuration>
69       </plugin>
70       <plugin>
71         <groupId>org.codehaus.mojo</groupId>
72         <artifactId>properties-maven-plugin</artifactId>
73         <version>1.0.0</version>
74         <executions>
75           <execution>
76             <phase>initialize</phase>
77             <goals>
78               <goal>read-project-properties</goal>
79             </goals>
80             <configuration>
81               <files>
82                 <file>${basedir}/src/main/resources/swagger.properties</file>
83               </files>
84             </configuration>
85           </execution>
86         </executions>
87       </plugin>
88       <plugin>
89         <groupId>com.github.kongchen</groupId>
90         <artifactId>swagger-maven-plugin</artifactId>
91         <version>3.1.4</version>
92         <executions>
93           <execution>
94             <phase>compile</phase>
95             <goals>
96               <goal>generate</goal>
97             </goals>
98           </execution>
99         </executions>
100         <configuration>
101           <apiSources>
102             <apiSource>
103               <locations>${api-rest-package}</locations>
104               <schemes>http,https</schemes>
105               <host>${api-host-ip}:${api-host-port}</host>
106               <basePath>${api-base-path}</basePath>
107               <info>
108                 <title>${api-title}</title>
109                 <version>${api-version}</version>
110                 <description>${api-description}</description>
111                 <license>
112                   <name>${api-license}</name>
113                 </license>
114               </info>
115               <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
116             </apiSource>
117           </apiSources>
118         </configuration>
119       </plugin>
120       <plugin>
121         <artifactId>maven-install-plugin</artifactId>
122         <version>2.3.1</version>
123         <executions>
124           <execution>
125             <id>install-file-id</id>
126             <phase>install</phase>
127             <goals>
128               <goal>install-file</goal>
129             </goals>
130             <configuration>
131               <file>${basedir}/src/main/resources/swagger.json</file>
132               <groupId>${project.groupId}</groupId>
133               <artifactId>${project.artifactId}-swagger-schema</artifactId>
134               <version>${project.version}</version>
135               <packaging>json</packaging>
136             </configuration>
137           </execution>
138         </executions>
139       </plugin>
140       <plugin>
141         <artifactId>maven-antrun-plugin</artifactId>
142         <version>1.8</version>
143         <executions>
144           <execution>
145             <id>ant-create-script</id>
146             <phase>initialize</phase>
147             <goals>
148               <goal>run</goal>
149             </goals>
150             <configuration>
151               <exportAntProperties>true</exportAntProperties>
152               <tasks>
153                 <taskdef />
154                 <condition>
155                   <os />
156                 </condition>
157                 <condition>
158                   <os />
159                 </condition>
160                 <if>
161                   <equals />
162                   <then>
163                     <property />
164                     <echo />
165                     <echo />
166                   </then>
167                   <else>
168                     <property />
169                     <echo />
170                     <echo />
171                     <chmod />
172                   </else>
173                 </if>
174               </tasks>
175             </configuration>
176           </execution>
177         </executions>
178         <dependencies>
179           <dependency>
180             <groupId>ant-contrib</groupId>
181             <artifactId>ant-contrib</artifactId>
182             <version>1.0b3</version>
183             <exclusions>
184               <exclusion>
185                 <artifactId>ant</artifactId>
186                 <groupId>ant</groupId>
187               </exclusion>
188             </exclusions>
189           </dependency>
190         </dependencies>
191       </plugin>
192       <plugin>
193         <groupId>io.swagger</groupId>
194         <artifactId>swagger-codegen-maven-plugin</artifactId>
195         <version>2.2.1</version>
196         <executions>
197           <execution>
198             <goals>
199               <goal>generate</goal>
200             </goals>
201             <configuration>
202               <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
203               <output>${project.build.directory}/generated-sources</output>
204               <language>java</language>
205               <configOptions>
206                 <dateLibrary>joda</dateLibrary>
207               </configOptions>
208               <library>jersey2</library>
209               <groupId>${project.groupId}</groupId>
210               <artifactId>${project.artifactId}-java-sdk</artifactId>
211               <artifactVersion>${project.version}</artifactVersion>
212               <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
213               <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
214               <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
215             </configuration>
216           </execution>
217         </executions>
218       </plugin>
219       <plugin>
220         <groupId>org.codehaus.mojo</groupId>
221         <artifactId>exec-maven-plugin</artifactId>
222         <version>1.5.0</version>
223         <executions>
224           <execution>
225             <id>swagger-generate-sources</id>
226             <phase>generate-sources</phase>
227             <goals>
228               <goal>exec</goal>
229             </goals>
230             <configuration>
231               <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
232             </configuration>
233           </execution>
234         </executions>
235       </plugin>
236       <plugin>
237         <artifactId>maven-clean-plugin</artifactId>
238         <version>3.0.0</version>
239         <executions>
240           <execution>
241             <id>clean-generated-files</id>
242             <phase>generate-sources</phase>
243             <goals>
244               <goal>clean</goal>
245             </goals>
246             <configuration>
247               <filesets>
248                 <fileset>
249                   <directory>${project.build.directory}/generated-sources</directory>
250                 </fileset>
251               </filesets>
252             </configuration>
253           </execution>
254         </executions>
255       </plugin>
256     </plugins>
257   </build>
258   <dependencies>
259     <dependency>
260       <groupId>junit</groupId>
261       <artifactId>junit</artifactId>
262       <version>4.11</version>
263       <scope>test</scope>
264       <exclusions>
265         <exclusion>
266           <artifactId>hamcrest-core</artifactId>
267           <groupId>org.hamcrest</groupId>
268         </exclusion>
269       </exclusions>
270     </dependency>
271     <dependency>
272       <groupId>org.powermock</groupId>
273       <artifactId>powermock-module-junit4</artifactId>
274       <version>1.6.6</version>
275       <scope>test</scope>
276       <exclusions>
277         <exclusion>
278           <artifactId>powermock-module-junit4-common</artifactId>
279           <groupId>org.powermock</groupId>
280         </exclusion>
281       </exclusions>
282     </dependency>
283     <dependency>
284       <groupId>org.powermock</groupId>
285       <artifactId>powermock-api-mockito</artifactId>
286       <version>1.6.6</version>
287       <scope>test</scope>
288       <exclusions>
289         <exclusion>
290           <artifactId>mockito-core</artifactId>
291           <groupId>org.mockito</groupId>
292         </exclusion>
293         <exclusion>
294           <artifactId>powermock-api-mockito-common</artifactId>
295           <groupId>org.powermock</groupId>
296         </exclusion>
297         <exclusion>
298           <artifactId>hamcrest-core</artifactId>
299           <groupId>org.hamcrest</groupId>
300         </exclusion>
301       </exclusions>
302     </dependency>
303     <dependency>
304       <groupId>com.fiftyonred</groupId>
305       <artifactId>mock-jedis</artifactId>
306       <version>0.4.0</version>
307       <scope>test</scope>
308     </dependency>
309   </dependencies>
310 </project>
311