aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml56
1 files changed, 56 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 3880f2c..96181f9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,6 +18,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ <swagger.directory>${project.build.directory}/generated-resources/swagger</swagger.directory>
</properties>
<dependencies>
@@ -33,6 +34,29 @@
<version>4.12</version>
<scope>test</scope>
</dependency>
+
+ <dependency>
+ <groupId>io.swagger</groupId>
+ <artifactId>swagger-core</artifactId>
+ <version>1.5.9</version>
+ </dependency>
+ <dependency>
+ <groupId>io.swagger</groupId>
+ <artifactId>swagger-annotations</artifactId>
+ <version>1.5.9</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.glassfish.jersey.core</groupId>
+ <artifactId>jersey-client</artifactId>
+ <version>2.24</version>
+ </dependency>
+ <dependency>
+ <groupId>org.glassfish.jersey.core</groupId>
+ <artifactId>jersey-common</artifactId>
+ <version>2.24</version>
+ </dependency>
+
</dependencies>
<build>
@@ -42,6 +66,38 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
</plugin>
+ <plugin>
+ <groupId>com.github.kongchen</groupId>
+ <artifactId>swagger-maven-plugin</artifactId>
+ <version>3.1.3</version>
+ <configuration>
+ <apiSources>
+ <apiSource>
+ <locations>org.onap.pomba.common.resource.AuditResource</locations>
+ <schemes>http</schemes>
+ <host>host:port</host>
+ <basePath>/XXXcontextbuilder</basePath>
+ <info>
+ <title>Swagger Specification for POMBA Common Model</title>
+ <version>${project.version}</version>
+ <description>POMBA Audit Context Builder API</description>
+ </info>
+ <templatePath>${basedir}/src/main/resources/strapdown.html.hbs</templatePath>
+ <outputPath>${basedir}/src/main/resources/commonModel.html</outputPath>
+ <swaggerDirectory>${swagger.directory}</swaggerDirectory>
+ </apiSource>
+ </apiSources>
+ </configuration>
+ <executions>
+ <execution>
+ <!-- <phase>compile</phase> -->
+ <phase>package</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>