Solve nexus-iq security issue: remove spring-core dependency
[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.2.4-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.2.4-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>
105                 <scheme>http</scheme>
106                 <scheme>https</scheme>
107               </schemes>
108               <host>${api-host-ip}:${api-host-port}</host>
109               <basePath>${api-base-path}</basePath>
110               <info>
111                 <title>${api-title}</title>
112                 <version>${api-version}</version>
113                 <description>${api-description}</description>
114                 <license>
115                   <name>${api-license}</name>
116                 </license>
117               </info>
118               <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
119             </apiSource>
120           </apiSources>
121         </configuration>
122       </plugin>
123       <plugin>
124         <artifactId>maven-install-plugin</artifactId>
125         <version>2.3.1</version>
126         <executions>
127           <execution>
128             <id>install-file-id</id>
129             <phase>install</phase>
130             <goals>
131               <goal>install-file</goal>
132             </goals>
133             <configuration>
134               <file>${basedir}/src/main/resources/swagger.json</file>
135               <groupId>${project.groupId}</groupId>
136               <artifactId>${project.artifactId}-swagger-schema</artifactId>
137               <version>${project.version}</version>
138               <packaging>json</packaging>
139             </configuration>
140           </execution>
141         </executions>
142       </plugin>
143       <plugin>
144         <artifactId>maven-antrun-plugin</artifactId>
145         <version>1.8</version>
146         <executions>
147           <execution>
148             <id>ant-create-script</id>
149             <phase>initialize</phase>
150             <goals>
151               <goal>run</goal>
152             </goals>
153             <configuration>
154               <exportAntProperties>true</exportAntProperties>
155               <tasks>
156                 <taskdef />
157                 <condition>
158                   <os />
159                 </condition>
160                 <condition>
161                   <os />
162                 </condition>
163                 <if>
164                   <equals />
165                   <then>
166                     <property />
167                     <echo />
168                     <echo />
169                   </then>
170                   <else>
171                     <property />
172                     <echo />
173                     <echo />
174                     <chmod />
175                   </else>
176                 </if>
177               </tasks>
178             </configuration>
179           </execution>
180         </executions>
181         <dependencies>
182           <dependency>
183             <groupId>ant-contrib</groupId>
184             <artifactId>ant-contrib</artifactId>
185             <version>1.0b3</version>
186             <exclusions>
187               <exclusion>
188                 <artifactId>ant</artifactId>
189                 <groupId>ant</groupId>
190               </exclusion>
191             </exclusions>
192           </dependency>
193         </dependencies>
194       </plugin>
195       <plugin>
196         <groupId>io.swagger</groupId>
197         <artifactId>swagger-codegen-maven-plugin</artifactId>
198         <version>2.2.1</version>
199         <executions>
200           <execution>
201             <goals>
202               <goal>generate</goal>
203             </goals>
204             <configuration>
205               <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
206               <output>${project.build.directory}/generated-sources</output>
207               <language>java</language>
208               <configOptions>
209                 <dateLibrary>joda</dateLibrary>
210               </configOptions>
211               <library>jersey2</library>
212               <groupId>${project.groupId}</groupId>
213               <artifactId>${project.artifactId}</artifactId>
214               <artifactVersion>${project.version}</artifactVersion>
215               <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
216               <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
217               <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
218             </configuration>
219           </execution>
220         </executions>
221       </plugin>
222       <plugin>
223         <groupId>org.codehaus.mojo</groupId>
224         <artifactId>exec-maven-plugin</artifactId>
225         <version>1.5.0</version>
226         <executions>
227           <execution>
228             <id>swagger-generate-sources</id>
229             <phase>generate-sources</phase>
230             <goals>
231               <goal>exec</goal>
232             </goals>
233             <configuration>
234               <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
235             </configuration>
236           </execution>
237         </executions>
238       </plugin>
239       <plugin>
240         <artifactId>maven-clean-plugin</artifactId>
241         <version>3.0.0</version>
242         <executions>
243           <execution>
244             <id>clean-generated-files</id>
245             <phase>generate-sources</phase>
246             <goals>
247               <goal>clean</goal>
248             </goals>
249             <configuration>
250               <filesets>
251                 <fileset>
252                   <directory>${project.build.directory}/generated-sources</directory>
253                 </fileset>
254               </filesets>
255             </configuration>
256           </execution>
257         </executions>
258       </plugin>
259     </plugins>
260   </build>
261   <dependencies>
262     <dependency>
263       <groupId>junit</groupId>
264       <artifactId>junit</artifactId>
265       <version>4.12</version>
266       <scope>test</scope>
267       <exclusions>
268         <exclusion>
269           <artifactId>hamcrest-core</artifactId>
270           <groupId>org.hamcrest</groupId>
271         </exclusion>
272       </exclusions>
273     </dependency>
274     <dependency>
275       <groupId>org.powermock</groupId>
276       <artifactId>powermock-module-junit4</artifactId>
277       <version>1.6.6</version>
278       <scope>test</scope>
279       <exclusions>
280         <exclusion>
281           <artifactId>powermock-module-junit4-common</artifactId>
282           <groupId>org.powermock</groupId>
283         </exclusion>
284       </exclusions>
285     </dependency>
286     <dependency>
287       <groupId>org.powermock</groupId>
288       <artifactId>powermock-api-mockito</artifactId>
289       <version>1.6.6</version>
290       <scope>test</scope>
291       <exclusions>
292         <exclusion>
293           <artifactId>mockito-core</artifactId>
294           <groupId>org.mockito</groupId>
295         </exclusion>
296         <exclusion>
297           <artifactId>powermock-api-mockito-common</artifactId>
298           <groupId>org.powermock</groupId>
299         </exclusion>
300         <exclusion>
301           <artifactId>hamcrest-core</artifactId>
302           <groupId>org.hamcrest</groupId>
303         </exclusion>
304       </exclusions>
305     </dependency>
306   </dependencies>
307 </project>
308