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">
4 <artifactId>apiroute-parent</artifactId>
5 <groupId>org.onap.msb.apigateway.apiroute</groupId>
6 <version>1.0.0-SNAPSHOT</version>
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>
16 <directory>src/main/java</directory>
18 <include>**/*.properties</include>
22 <directory>src/main/resources</directory>
27 <artifactId>maven-jar-plugin</artifactId>
28 <version>2.4</version>
32 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
38 <artifactId>maven-shade-plugin</artifactId>
39 <version>2.3</version>
42 <phase>package</phase>
50 <mainClass>org.onap.msb.apiroute.ApiRouteApp</mainClass>
57 <createDependencyReducedPom>true</createDependencyReducedPom>
60 <artifact>*:*</artifact>
62 <exclude>META-INF/*.SF</exclude>
63 <exclude>META-INF/*.DSA</exclude>
64 <exclude>META-INF/*.RSA</exclude>
71 <groupId>org.codehaus.mojo</groupId>
72 <artifactId>properties-maven-plugin</artifactId>
73 <version>1.0.0</version>
76 <phase>initialize</phase>
78 <goal>read-project-properties</goal>
82 <file>${basedir}/src/main/resources/swagger.properties</file>
89 <groupId>com.github.kongchen</groupId>
90 <artifactId>swagger-maven-plugin</artifactId>
91 <version>3.1.4</version>
94 <phase>compile</phase>
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>
108 <title>${api-title}</title>
109 <version>${api-version}</version>
110 <description>${api-description}</description>
112 <name>${api-license}</name>
115 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
121 <artifactId>maven-install-plugin</artifactId>
122 <version>2.3.1</version>
125 <id>install-file-id</id>
126 <phase>install</phase>
128 <goal>install-file</goal>
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>
141 <artifactId>maven-antrun-plugin</artifactId>
142 <version>1.8</version>
145 <id>ant-create-script</id>
146 <phase>initialize</phase>
151 <exportAntProperties>true</exportAntProperties>
180 <groupId>ant-contrib</groupId>
181 <artifactId>ant-contrib</artifactId>
182 <version>1.0b3</version>
185 <artifactId>ant</artifactId>
186 <groupId>ant</groupId>
193 <groupId>io.swagger</groupId>
194 <artifactId>swagger-codegen-maven-plugin</artifactId>
195 <version>2.2.1</version>
199 <goal>generate</goal>
202 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
203 <output>${project.build.directory}/generated-sources</output>
204 <language>java</language>
206 <dateLibrary>joda</dateLibrary>
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>
220 <groupId>org.codehaus.mojo</groupId>
221 <artifactId>exec-maven-plugin</artifactId>
222 <version>1.5.0</version>
225 <id>swagger-generate-sources</id>
226 <phase>generate-sources</phase>
231 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
237 <artifactId>maven-clean-plugin</artifactId>
238 <version>3.0.0</version>
241 <id>clean-generated-files</id>
242 <phase>generate-sources</phase>
249 <directory>${project.build.directory}/generated-sources</directory>
260 <groupId>junit</groupId>
261 <artifactId>junit</artifactId>
262 <version>4.11</version>
266 <artifactId>hamcrest-core</artifactId>
267 <groupId>org.hamcrest</groupId>
272 <groupId>org.powermock</groupId>
273 <artifactId>powermock-module-junit4</artifactId>
274 <version>1.6.6</version>
278 <artifactId>powermock-module-junit4-common</artifactId>
279 <groupId>org.powermock</groupId>
284 <groupId>org.powermock</groupId>
285 <artifactId>powermock-api-mockito</artifactId>
286 <version>1.6.6</version>
290 <artifactId>mockito-core</artifactId>
291 <groupId>org.mockito</groupId>
294 <artifactId>powermock-api-mockito-common</artifactId>
295 <groupId>org.powermock</groupId>
298 <artifactId>hamcrest-core</artifactId>
299 <groupId>org.hamcrest</groupId>
304 <groupId>com.fiftyonred</groupId>
305 <artifactId>mock-jedis</artifactId>
306 <version>0.4.0</version>