summaryrefslogtreecommitdiffstats
path: root/rulemgt/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'rulemgt/pom.xml')
-rw-r--r--rulemgt/pom.xml69
1 files changed, 67 insertions, 2 deletions
diff --git a/rulemgt/pom.xml b/rulemgt/pom.xml
index 5aa0b72..013105b 100644
--- a/rulemgt/pom.xml
+++ b/rulemgt/pom.xml
@@ -188,7 +188,6 @@
<artifactId>guava</artifactId>
<version>19.0</version>
</dependency>
-
</dependencies>
<build>
<plugins>
@@ -247,7 +246,6 @@
</execution>
</executions>
</plugin>
-
</plugins>
<resources>
<resource>
@@ -261,4 +259,71 @@
</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.rulemgt.resources</locations>
+ <basePath>/api/holmes-rule-mgmt/v1/</basePath>
+ <info>
+ <title>API Descriptions for Holmes Rule Management</title>
+ <version>v1</version>
+ <description>
+ This page shows all the APIs available in the Holmes rule 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>