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.1.0-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.1.0-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>
39 <groupId>io.swagger</groupId>
40 <artifactId>swagger-jersey2-jaxrs</artifactId>
41 <scope>compile</scope>
43 <!-- add by wangyg:增加redis的java客户端jedis依赖 -->
45 <groupId>redis.clients</groupId>
46 <artifactId>jedis</artifactId>
49 <groupId>org.projectlombok</groupId>
50 <artifactId>lombok</artifactId>
54 <groupId>junit</groupId>
55 <artifactId>junit</artifactId>
59 <groupId>org.powermock</groupId>
60 <artifactId>powermock-module-junit4</artifactId>
65 <groupId>org.powermock</groupId>
66 <artifactId>powermock-api-mockito</artifactId>
70 <groupId>com.orbitz.consul</groupId>
71 <artifactId>consul-client</artifactId>
75 <groupId>com.fasterxml.jackson.core</groupId>
76 <artifactId>jackson-databind</artifactId>
80 <groupId>com.fasterxml.jackson.core</groupId>
81 <artifactId>jackson-core</artifactId>
85 <groupId>com.fasterxml.jackson.core</groupId>
86 <artifactId>jackson-annotations</artifactId>
90 <groupId>org.apache.httpcomponents</groupId>
91 <artifactId>httpasyncclient</artifactId>
95 <groupId>org.immutables</groupId>
96 <artifactId>value</artifactId>
97 <scope>compile</scope>
101 <groupId>com.fiftyonred</groupId>
102 <artifactId>mock-jedis</artifactId>
106 <groupId>commons-io</groupId>
107 <artifactId>commons-io</artifactId>
111 <groupId>org.onap.msb.swagger-sdk</groupId>
112 <artifactId>swagger-sdk</artifactId>
113 <version>1.0.0</version>
116 <groupId>org.slf4j</groupId>
117 <artifactId>slf4j-log4j12</artifactId>
126 <groupId>org.apache.maven.plugins</groupId>
127 <artifactId>maven-jar-plugin</artifactId>
128 <version>2.4</version>
132 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
138 <groupId>org.apache.maven.plugins</groupId>
139 <artifactId>maven-shade-plugin</artifactId>
140 <version>2.3</version>
142 <createDependencyReducedPom>true</createDependencyReducedPom>
145 <artifact>*:*</artifact>
147 <exclude>META-INF/*.SF</exclude>
148 <exclude>META-INF/*.DSA</exclude>
149 <exclude>META-INF/*.RSA</exclude>
156 <phase>package</phase>
163 implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
165 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
166 <mainClass>org.onap.msb.apiroute.ApiRouteApp</mainClass>
176 <groupId>org.codehaus.mojo</groupId>
177 <artifactId>properties-maven-plugin</artifactId>
178 <version>1.0.0</version>
181 <phase>initialize</phase>
183 <goal>read-project-properties</goal>
187 <file>${basedir}/src/main/resources/swagger.properties</file>
194 <groupId>com.github.kongchen</groupId>
195 <artifactId>swagger-maven-plugin</artifactId>
196 <version>3.1.4</version>
200 <locations>${api-rest-package}</locations>
202 <scheme>http</scheme>
203 <scheme>https</scheme>
205 <host>${api-host-ip}:${api-host-port}</host>
206 <basePath>${api-base-path}</basePath>
208 <title>${api-title}</title>
209 <version>${api-version}</version>
210 <description>${api-description}</description>
212 <name>${api-license}</name>
215 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
221 <phase>compile</phase>
223 <goal>generate</goal>
229 <groupId>org.apache.maven.plugins</groupId>
230 <artifactId>maven-install-plugin</artifactId>
231 <version>2.3.1</version>
234 <id>install-file-id</id>
235 <phase>install</phase>
237 <goal>install-file</goal>
240 <file>${basedir}/src/main/resources/swagger.json</file>
241 <groupId>${project.groupId}</groupId>
242 <artifactId>${project.artifactId}-swagger-schema</artifactId>
243 <version>${project.version}</version>
244 <packaging>json</packaging>
252 <groupId>org.apache.maven.plugins</groupId>
253 <artifactId>maven-antrun-plugin</artifactId>
254 <version>1.8</version>
257 <phase>initialize</phase>
258 <id>ant-create-script</id>
260 <exportAntProperties>true</exportAntProperties>
262 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
263 <condition property="is_windows" value="true">
264 <os family="windows"/>
266 <condition property="isLinux" value="true">
270 <equals arg1="${is_windows}" arg2="true"/>
272 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
273 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
274 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
277 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
278 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
279 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
280 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
292 <groupId>ant-contrib</groupId>
293 <artifactId>ant-contrib</artifactId>
294 <version>1.0b3</version>
297 <artifactId>ant</artifactId>
298 <groupId>ant</groupId>
305 <groupId>io.swagger</groupId>
306 <artifactId>swagger-codegen-maven-plugin</artifactId>
307 <version>2.2.1</version>
311 <goal>generate</goal>
314 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
315 <output>${project.build.directory}/generated-sources</output>
316 <language>java</language>
318 <dateLibrary>joda</dateLibrary>
320 <library>jersey2</library>
321 <groupId>${project.groupId}</groupId>
322 <artifactId>${project.artifactId}</artifactId>
323 <artifactVersion>${project.version}</artifactVersion>
324 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
325 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
326 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
332 <artifactId>exec-maven-plugin</artifactId>
333 <groupId>org.codehaus.mojo</groupId>
334 <version>1.5.0</version>
337 <id>swagger-generate-sources</id>
338 <phase>generate-sources</phase>
343 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
349 <groupId>org.apache.maven.plugins</groupId>
350 <artifactId>maven-clean-plugin</artifactId>
351 <version>3.0.0</version>
354 <id>clean-generated-files</id>
355 <phase>generate-sources</phase>
362 <directory>${project.build.directory}/generated-sources</directory>
372 <directory>src/main/java</directory>
374 <include>**/*.properties</include>
378 <directory>src/main/resources</directory>