diff options
author | 2017-09-20 19:06:05 +0530 | |
---|---|---|
committer | 2017-09-20 21:19:03 +0530 | |
commit | faa96aff9ec83d0690eff7088f8fa84654b2dfe5 (patch) | |
tree | c98e87c12417a9f273b2ef49f6b7c38fd8dcd425 /apiroute/apiroute-service/dependency-reduced-pom.xml | |
parent | 76cf1c65509b8e59d1f10c1ae8efb45b2ceeb58c (diff) |
Add swagger-sdk support for MSB service
It adds required changes to create the swagger.json
at build time for MSB services.
MSB-78
Change-Id: I84f37e01100f9b55ad231e419d6c3d3e42390a12
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'apiroute/apiroute-service/dependency-reduced-pom.xml')
-rw-r--r-- | apiroute/apiroute-service/dependency-reduced-pom.xml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/apiroute/apiroute-service/dependency-reduced-pom.xml b/apiroute/apiroute-service/dependency-reduced-pom.xml index 697e024..4c53010 100644 --- a/apiroute/apiroute-service/dependency-reduced-pom.xml +++ b/apiroute/apiroute-service/dependency-reduced-pom.xml @@ -67,6 +67,76 @@ </filters> </configuration> </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>properties-maven-plugin</artifactId> + <version>1.0.0</version> + <executions> + <execution> + <phase>initialize</phase> + <goals> + <goal>read-project-properties</goal> + </goals> + <configuration> + <files> + <file>${basedir}/src/main/resources/swagger.properties</file> + </files> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>com.github.kongchen</groupId> + <artifactId>swagger-maven-plugin</artifactId> + <version>3.1.4</version> + <executions> + <execution> + <phase>compile</phase> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + <configuration> + <apiSources> + <apiSource> + <locations>${api-rest-package}</locations> + <schemes>http,https</schemes> + <host>${api-host-ip}:${api-host-port}</host> + <basePath>${api-base-path}</basePath> + <info> + <title>${api-title}</title> + <version>${api-version}</version> + <description>${api-description}</description> + <license> + <name>${api-license}</name> + </license> + </info> + <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory> + </apiSource> + </apiSources> + </configuration> + </plugin> + <plugin> + <artifactId>maven-install-plugin</artifactId> + <version>2.3.1</version> + <executions> + <execution> + <id>install-file-id</id> + <phase>install</phase> + <goals> + <goal>install-file</goal> + </goals> + <configuration> + <file>${basedir}/src/main/resources/swagger.json</file> + <groupId>${project.groupId}</groupId> + <artifactId>${project.artifactId}-swagger-schema</artifactId> + <version>${project.version}</version> + <packaging>json</packaging> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> <dependencies> |