summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorGeora Barsky <georab@amdocs.com>2018-10-26 12:53:09 -0400
committerGeora Barsky <georab@amdocs.com>2018-11-01 12:36:15 -0400
commit28d58cedeba041e536d71f82325cb1d32eeba730 (patch)
tree1b3cc54c3c3d609c7dcbd469ea422d15ec022b94 /pom.xml
parent49cc90f205535596dfdad0cf81a5bbf6ad93f5f8 (diff)
Enhance model to support L2 Fabric
Adding JUnit tests and swagger specs Issue-ID: LOG-780 Change-Id: Iaf7cb19a6310ebdeef085a94f00623041aa4f89b Signed-off-by: Geora Barsky <georab@amdocs.com>
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>