Add swagger-sdk support for MSB service
[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     </plugins>
141   </build>
142   <dependencies>
143     <dependency>
144       <groupId>junit</groupId>
145       <artifactId>junit</artifactId>
146       <version>4.11</version>
147       <scope>test</scope>
148       <exclusions>
149         <exclusion>
150           <artifactId>hamcrest-core</artifactId>
151           <groupId>org.hamcrest</groupId>
152         </exclusion>
153       </exclusions>
154     </dependency>
155     <dependency>
156       <groupId>org.powermock</groupId>
157       <artifactId>powermock-module-junit4</artifactId>
158       <version>1.6.6</version>
159       <scope>test</scope>
160       <exclusions>
161         <exclusion>
162           <artifactId>powermock-module-junit4-common</artifactId>
163           <groupId>org.powermock</groupId>
164         </exclusion>
165       </exclusions>
166     </dependency>
167     <dependency>
168       <groupId>org.powermock</groupId>
169       <artifactId>powermock-api-mockito</artifactId>
170       <version>1.6.6</version>
171       <scope>test</scope>
172       <exclusions>
173         <exclusion>
174           <artifactId>mockito-core</artifactId>
175           <groupId>org.mockito</groupId>
176         </exclusion>
177         <exclusion>
178           <artifactId>powermock-api-mockito-common</artifactId>
179           <groupId>org.powermock</groupId>
180         </exclusion>
181         <exclusion>
182           <artifactId>hamcrest-core</artifactId>
183           <groupId>org.hamcrest</groupId>
184         </exclusion>
185       </exclusions>
186     </dependency>
187     <dependency>
188       <groupId>com.fiftyonred</groupId>
189       <artifactId>mock-jedis</artifactId>
190       <version>0.4.0</version>
191       <scope>test</scope>
192     </dependency>
193   </dependencies>
194 </project>
195