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.2.4-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.2.4-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>
105 <scheme>http</scheme>
106 <scheme>https</scheme>
108 <host>${api-host-ip}:${api-host-port}</host>
109 <basePath>${api-base-path}</basePath>
111 <title>${api-title}</title>
112 <version>${api-version}</version>
113 <description>${api-description}</description>
115 <name>${api-license}</name>
118 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
124 <artifactId>maven-install-plugin</artifactId>
125 <version>2.3.1</version>
128 <id>install-file-id</id>
129 <phase>install</phase>
131 <goal>install-file</goal>
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>
144 <artifactId>maven-antrun-plugin</artifactId>
145 <version>1.8</version>
148 <id>ant-create-script</id>
149 <phase>initialize</phase>
154 <exportAntProperties>true</exportAntProperties>
183 <groupId>ant-contrib</groupId>
184 <artifactId>ant-contrib</artifactId>
185 <version>1.0b3</version>
188 <artifactId>ant</artifactId>
189 <groupId>ant</groupId>
196 <groupId>io.swagger</groupId>
197 <artifactId>swagger-codegen-maven-plugin</artifactId>
198 <version>2.2.1</version>
202 <goal>generate</goal>
205 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
206 <output>${project.build.directory}/generated-sources</output>
207 <language>java</language>
209 <dateLibrary>joda</dateLibrary>
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>
223 <groupId>org.codehaus.mojo</groupId>
224 <artifactId>exec-maven-plugin</artifactId>
225 <version>1.5.0</version>
228 <id>swagger-generate-sources</id>
229 <phase>generate-sources</phase>
234 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
240 <artifactId>maven-clean-plugin</artifactId>
241 <version>3.0.0</version>
244 <id>clean-generated-files</id>
245 <phase>generate-sources</phase>
252 <directory>${project.build.directory}/generated-sources</directory>
263 <groupId>junit</groupId>
264 <artifactId>junit</artifactId>
265 <version>4.12</version>
269 <artifactId>hamcrest-core</artifactId>
270 <groupId>org.hamcrest</groupId>
275 <groupId>org.powermock</groupId>
276 <artifactId>powermock-module-junit4</artifactId>
277 <version>1.6.6</version>
281 <artifactId>powermock-module-junit4-common</artifactId>
282 <groupId>org.powermock</groupId>
287 <groupId>org.powermock</groupId>
288 <artifactId>powermock-api-mockito</artifactId>
289 <version>1.6.6</version>
293 <artifactId>mockito-core</artifactId>
294 <groupId>org.mockito</groupId>
297 <artifactId>powermock-api-mockito-common</artifactId>
298 <groupId>org.powermock</groupId>
301 <artifactId>hamcrest-core</artifactId>
302 <groupId>org.hamcrest</groupId>