1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
3 Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 use this file except in compliance with the License. You may obtain a copy
5 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
6 by applicable law or agreed to in writing, software distributed under the
7 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
8 OF ANY KIND, either express or implied. See the License for the specific
9 language governing permissions and limitations under the License. -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13 <groupId>org.onap.msb.apigateway.apiroute</groupId>
14 <artifactId>apiroute-parent</artifactId>
15 <version>1.2.4-SNAPSHOT</version>
17 <modelVersion>4.0.0</modelVersion>
18 <groupId>org.onap.msb.apigateway.apiroute</groupId>
19 <artifactId>apiroute-service</artifactId>
20 <name>onap/msb/apigateway/apiroute/apiroute-service</name>
21 <packaging>jar</packaging>
22 <version>1.2.4-SNAPSHOT</version>
27 <groupId>io.dropwizard</groupId>
28 <artifactId>dropwizard-core</artifactId>
31 <groupId>io.dropwizard</groupId>
32 <artifactId>dropwizard-assets</artifactId>
35 <groupId>io.dropwizard</groupId>
36 <artifactId>dropwizard-client</artifactId>
38 <!-- add by wangyg:增加redis的java客户端jedis依赖 -->
40 <groupId>redis.clients</groupId>
41 <artifactId>jedis</artifactId>
44 <groupId>org.projectlombok</groupId>
45 <artifactId>lombok</artifactId>
49 <groupId>junit</groupId>
50 <artifactId>junit</artifactId>
54 <groupId>org.powermock</groupId>
55 <artifactId>powermock-module-junit4</artifactId>
60 <groupId>org.powermock</groupId>
61 <artifactId>powermock-api-mockito</artifactId>
65 <groupId>com.orbitz.consul</groupId>
66 <artifactId>consul-client</artifactId>
70 <groupId>com.fasterxml.jackson.core</groupId>
71 <artifactId>jackson-databind</artifactId>
75 <groupId>com.fasterxml.jackson.core</groupId>
76 <artifactId>jackson-core</artifactId>
80 <groupId>com.fasterxml.jackson.core</groupId>
81 <artifactId>jackson-annotations</artifactId>
85 <groupId>org.apache.httpcomponents</groupId>
86 <artifactId>httpasyncclient</artifactId>
90 <groupId>org.immutables</groupId>
91 <artifactId>value</artifactId>
92 <scope>compile</scope>
96 <groupId>com.fiftyonred</groupId>
97 <artifactId>mock-jedis</artifactId>
101 <groupId>commons-io</groupId>
102 <artifactId>commons-io</artifactId>
106 <groupId>org.onap.msb.swagger-sdk</groupId>
107 <artifactId>swagger-sdk</artifactId>
108 <version>1.1.0</version>
111 <groupId>org.slf4j</groupId>
112 <artifactId>slf4j-log4j12</artifactId>
121 <groupId>org.apache.maven.plugins</groupId>
122 <artifactId>maven-jar-plugin</artifactId>
123 <version>2.4</version>
127 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
133 <groupId>org.apache.maven.plugins</groupId>
134 <artifactId>maven-shade-plugin</artifactId>
135 <version>2.3</version>
137 <createDependencyReducedPom>true</createDependencyReducedPom>
140 <artifact>*:*</artifact>
142 <exclude>META-INF/*.SF</exclude>
143 <exclude>META-INF/*.DSA</exclude>
144 <exclude>META-INF/*.RSA</exclude>
151 <phase>package</phase>
158 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
160 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
161 <mainClass>org.onap.msb.apiroute.ApiRouteApp</mainClass>
171 <groupId>org.codehaus.mojo</groupId>
172 <artifactId>properties-maven-plugin</artifactId>
173 <version>1.0.0</version>
176 <phase>initialize</phase>
178 <goal>read-project-properties</goal>
182 <file>${basedir}/src/main/resources/swagger.properties</file>
189 <groupId>com.github.kongchen</groupId>
190 <artifactId>swagger-maven-plugin</artifactId>
191 <version>3.1.4</version>
195 <locations>${api-rest-package}</locations>
197 <scheme>http</scheme>
198 <scheme>https</scheme>
200 <host>${api-host-ip}:${api-host-port}</host>
201 <basePath>${api-base-path}</basePath>
203 <title>${api-title}</title>
204 <version>${api-version}</version>
205 <description>${api-description}</description>
207 <name>${api-license}</name>
210 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
216 <phase>compile</phase>
218 <goal>generate</goal>
224 <groupId>org.apache.maven.plugins</groupId>
225 <artifactId>maven-install-plugin</artifactId>
226 <version>2.3.1</version>
229 <id>install-file-id</id>
230 <phase>install</phase>
232 <goal>install-file</goal>
235 <file>${basedir}/src/main/resources/swagger.json</file>
236 <groupId>${project.groupId}</groupId>
237 <artifactId>${project.artifactId}-swagger-schema</artifactId>
238 <version>${project.version}</version>
239 <packaging>json</packaging>
247 <groupId>org.apache.maven.plugins</groupId>
248 <artifactId>maven-antrun-plugin</artifactId>
249 <version>1.8</version>
252 <phase>initialize</phase>
253 <id>ant-create-script</id>
255 <exportAntProperties>true</exportAntProperties>
257 <taskdef resource="net/sf/antcontrib/antlib.xml"
258 classpathref="maven.plugin.classpath" />
259 <condition property="is_windows" value="true">
260 <os family="windows" />
262 <condition property="isLinux" value="true">
266 <equals arg1="${is_windows}" arg2="true" />
268 <property name="swagger.sdk.script.file" value="generated-source-script.bat" />
270 file="${project.build.directory}${file.separator}generated-source-script.bat"
272 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
274 file="${project.build.directory}${file.separator}generated-source-script.bat"
276 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
279 <property name="swagger.sdk.script.file" value="generated-source-script.sh" />
281 file="${project.build.directory}${file.separator}generated-source-script.sh"
283 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
285 file="${project.build.directory}${file.separator}generated-source-script.sh"
287 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
289 file="${project.build.directory}${file.separator}generated-source-script.sh"
302 <groupId>ant-contrib</groupId>
303 <artifactId>ant-contrib</artifactId>
304 <version>1.0b3</version>
307 <artifactId>ant</artifactId>
308 <groupId>ant</groupId>
315 <groupId>io.swagger</groupId>
316 <artifactId>swagger-codegen-maven-plugin</artifactId>
317 <version>2.2.1</version>
321 <goal>generate</goal>
324 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
325 <output>${project.build.directory}/generated-sources</output>
326 <language>java</language>
328 <dateLibrary>joda</dateLibrary>
330 <library>jersey2</library>
331 <groupId>${project.groupId}</groupId>
332 <artifactId>${project.artifactId}</artifactId>
333 <artifactVersion>${project.version}</artifactVersion>
334 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
335 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
336 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
342 <artifactId>exec-maven-plugin</artifactId>
343 <groupId>org.codehaus.mojo</groupId>
344 <version>1.5.0</version>
347 <id>swagger-generate-sources</id>
348 <phase>generate-sources</phase>
353 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
359 <groupId>org.apache.maven.plugins</groupId>
360 <artifactId>maven-clean-plugin</artifactId>
361 <version>3.0.0</version>
364 <id>clean-generated-files</id>
365 <phase>generate-sources</phase>
372 <directory>${project.build.directory}/generated-sources</directory>
382 <directory>src/main/java</directory>
384 <include>**/*.properties</include>
388 <directory>src/main/resources</directory>