summaryrefslogtreecommitdiffstats
path: root/certService/pom.xml
diff options
context:
space:
mode:
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2020-02-12 07:49:02 +0100
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2020-02-12 08:02:28 +0100
commitc88b66b45d24af033587f3c5020991460ac58302 (patch)
treefc81812bedb7c31c6eae04301d82084995a1f9de /certService/pom.xml
parentab3855c97a649398d75e31e68528f9c82f0f9e4f (diff)
Generate openAPI 3.0 specification.
Issue-ID: AAF-995 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I3de5dae9688d89b3bac0d86beff982247667854d
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 d5b6e7d3..89e70232 100644
--- a/certService/pom.xml
+++ b/certService/pom.xml
@@ -40,6 +40,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>
@@ -135,7 +137,6 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
-
</plugins>
</pluginManagement>
<plugins>
@@ -148,6 +149,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>
@@ -174,6 +187,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>