summaryrefslogtreecommitdiffstats
path: root/cps-rest/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'cps-rest/pom.xml')
-rwxr-xr-xcps-rest/pom.xml17
1 files changed, 16 insertions, 1 deletions
diff --git a/cps-rest/pom.xml b/cps-rest/pom.xml
index c581b061dc..d3be9c3610 100755
--- a/cps-rest/pom.xml
+++ b/cps-rest/pom.xml
@@ -154,9 +154,24 @@
</configOptions>
</configuration>
</execution>
+ <execution>
+ <id>openapi-yaml-gen</id>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <phase>compile</phase>
+ <configuration>
+ <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
+ <generatorName>openapi-yaml</generatorName>
+ <configOptions>
+ <outputFile>openapi.yaml</outputFile>
+ </configOptions>
+ </configuration>
+ </execution>
</executions>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
@@ -169,7 +184,7 @@
<outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-core</outputDirectory>
<resources>
<resource>
- <directory>${project.basedir}/target/generated-sources/swagger/</directory>
+ <directory>${project.basedir}/target/generated-sources/openapi/</directory>
<includes>
<include>openapi.yaml</include>
</includes>