summaryrefslogtreecommitdiffstats
path: root/engine-d/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'engine-d/pom.xml')
-rw-r--r--engine-d/pom.xml70
1 files changed, 69 insertions, 1 deletions
diff --git a/engine-d/pom.xml b/engine-d/pom.xml
index a5f85dc..4cbe04c 100644
--- a/engine-d/pom.xml
+++ b/engine-d/pom.xml
@@ -34,6 +34,7 @@
</properties>
<dependencies>
+
<dependency>
<groupId>org.onap.msb.java-sdk</groupId>
<artifactId>msb-java-sdk</artifactId>
@@ -215,7 +216,6 @@
</execution>
</executions>
</plugin>
-
</plugins>
<resources>
<resource>
@@ -229,4 +229,72 @@
</resource>
</resources>
</build>
+
+ <profiles>
+ <profile>
+ <id>swagger</id>
+ <dependencies>
+ <dependency>
+ <groupId>io.swagger</groupId>
+ <artifactId>swagger-jersey2-jaxrs</artifactId>
+ <version>1.5.0</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.github.kongchen</groupId>
+ <artifactId>swagger-maven-plugin</artifactId>
+ <version>3.1.1</version>
+ <configuration>
+ <apiSources>
+ <apiSource>
+ <springmvc>false</springmvc>
+ <locations>org.onap.holmes.engine.resources</locations>
+ <basePath>/api/holmes-engine-mgmt/v1/</basePath>
+ <info>
+ <title>API Descriptions for Holmes Engine Management</title>
+ <version>v1</version>
+ <description>
+ This page shows all the APIs available in the Holmes engine management module.
+ </description>
+ <termsOfService>
+ http://www.github.com/kongchen/swagger-maven-plugin
+ </termsOfService>
+ <contact>
+ <email>fu.guangrong@zte.com.cn</email>
+ <name>Guangrong Fu</name>
+ </contact>
+ <license>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
+ <name>Apache 2.0</name>
+ </license>
+ </info>
+ <securityDefinitions>
+ </securityDefinitions>
+ <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
+ </apiSource>
+ </apiSources>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>compile</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>io.swagger</groupId>
+ <artifactId>swagger-hibernate-validations</artifactId>
+ <version>1.5.6</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>