summaryrefslogtreecommitdiffstats
path: root/certService/pom.xml
diff options
context:
space:
mode:
authorBogumil Zebek <bogumil.zebek@nokia.com>2020-02-12 09:23:22 +0000
committerGerrit Code Review <gerrit@onap.org>2020-02-12 09:23:22 +0000
commit0355952d2f43229fafcec06c34b5af19664b27af (patch)
tree8a0d60f5224066ed9be7bc9515e7e651c13d37cd /certService/pom.xml
parent3b531c0e44b206cf1e8ba9f041bfb14d9e1ab7d9 (diff)
parentc88b66b45d24af033587f3c5020991460ac58302 (diff)
Merge "Generate openAPI 3.0 specification."
Diffstat (limited to 'certService/pom.xml')
-rw-r--r--certService/pom.xml33
1 files changed, 32 insertions, 1 deletions
diff --git a/certService/pom.xml b/certService/pom.xml
index 6ea5255e..da8f89f3 100644
--- a/certService/pom.xml
+++ b/certService/pom.xml
@@ -41,6 +41,8 @@
<bouncycastle.version>1.60</bouncycastle.version>
<docker-maven-plugin.version>0.33.0</docker-maven-plugin.version>
<docker.tag>${project.version}</docker.tag>
+ <springdoc-openapi-maven-plugin.apiDocsUrl>http://localhost:8080/v3/api-docs
+ </springdoc-openapi-maven-plugin.apiDocsUrl>
</properties>
<dependencyManagement>
@@ -136,7 +138,6 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
-
</plugins>
</pluginManagement>
<plugins>
@@ -149,6 +150,18 @@
<goal>repackage</goal>
</goals>
</execution>
+ <execution>
+ <id>pre-integration-test</id>
+ <goals>
+ <goal>start</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>post-integration-test</id>
+ <goals>
+ <goal>stop</goal>
+ </goals>
+ </execution>
</executions>
</plugin>
<plugin>
@@ -175,6 +188,24 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.springdoc</groupId>
+ <artifactId>springdoc-openapi-maven-plugin</artifactId>
+ <version>0.2</version>
+ <executions>
+ <execution>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <apiDocsUrl>${springdoc-openapi-maven-plugin.apiDocsUrl}</apiDocsUrl>
+ <outputFileName>api-docs.json</outputFileName>
+ <outputDir>${project.build.directory}</outputDir>
+ </configuration>
+ </plugin>
</plugins>
</build>