diff options
author | elinuxhenrik <henrik.b.andersson@est.tech> | 2020-12-07 14:54:19 +0100 |
---|---|---|
committer | elinuxhenrik <henrik.b.andersson@est.tech> | 2020-12-08 09:34:41 +0100 |
commit | f28594d423c9da9988d6a23ab49c4e787a5ae089 (patch) | |
tree | 2666813cab4ec122160f2e8bc28adfef706747a4 /a1-policy-management/pom.xml | |
parent | acfcde2e7729939a9a9f9f8a085951585033c081 (diff) |
Add generation of API yaml file
Change-Id: I3f3091c76b926425f9a2187e43dd03a1cdb4bda6
Issue-ID: CCSDK-2736
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Diffstat (limited to 'a1-policy-management/pom.xml')
-rw-r--r-- | a1-policy-management/pom.xml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/a1-policy-management/pom.xml b/a1-policy-management/pom.xml index be8838ba..f218b52d 100644 --- a/a1-policy-management/pom.xml +++ b/a1-policy-management/pom.xml @@ -49,6 +49,7 @@ <docker-maven-plugin>0.30.0</docker-maven-plugin> <surefire-maven-plugin.version>3.0.0-M5</surefire-maven-plugin.version><!-- Version must be higher than version 2.19.1 that is defined in the parent pom for JUnit 5 tests to be run. Do not remove! --> <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version> + <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version> <exec.skip>true</exec.skip> <ccsdk.project.version>${project.version}</ccsdk.project.version> </properties> @@ -322,6 +323,27 @@ </executions> </plugin> <plugin> + <groupId>io.swagger.codegen.v3</groupId> + <artifactId>swagger-codegen-maven-plugin</artifactId> + <version>${swagger-codegen-maven-plugin.version}</version> + <executions> + <execution> + <phase>test</phase> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <inputSpec>${project.basedir}/api/pms-api.json</inputSpec> + <language>openapi-yaml</language> + <output>${project.basedir}/api</output> + <configOptions> + <outputFile>pms-api.yaml</outputFile> + </configOptions> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> <version>${docker-maven-plugin}</version> |