From 26b87a77c527605d12c3c40b15f95de41e87f51e Mon Sep 17 00:00:00 2001 From: Lizi Date: Fri, 30 Mar 2018 09:32:21 +0000 Subject: Add swagger.json as discovery release artifacts Change-Id: I1c2d023dce35a4e74b7f2b0e91b8e3c0423b18da Issue-ID: MSB-187 Signed-off-by: Lizi --- sdclient/discovery-service/pom.xml | 78 +++++++++++++++++++++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) (limited to 'sdclient/discovery-service/pom.xml') diff --git a/sdclient/discovery-service/pom.xml b/sdclient/discovery-service/pom.xml index 982338d..a1b93ec 100644 --- a/sdclient/discovery-service/pom.xml +++ b/sdclient/discovery-service/pom.xml @@ -75,10 +75,86 @@ guava ${guava.version} - + + + org.codehaus.mojo + properties-maven-plugin + 1.0.0 + + + initialize + + read-project-properties + + + + ${basedir}/src/main/resources/swagger.properties + + + + + + + com.github.kongchen + swagger-maven-plugin + 3.1.4 + + + + ${api-rest-package} + + http + https + + ${api-host-ip}:${api-host-port} + ${api-base-path} + + ${api-title} + ${api-version} + ${api-description} + + ${api-license} + + + + ${basedir}/target/classes + + + + + + compile + + generate + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + attach-artifacts + package + + attach-artifact + + + + + target/classes/swagger.json + json + schema + + + + + + org.apache.maven.plugins maven-jar-plugin -- cgit 1.2.3-korg