diff options
author | egernug <gerard.nugent@est.tech> | 2023-06-27 09:31:23 +0100 |
---|---|---|
committer | egernug <gerard.nugent@est.tech> | 2023-06-27 09:35:43 +0100 |
commit | 7ae1bcf4b463aec8c153feacfe32db4360e9c11d (patch) | |
tree | 64487e0b12a5c4efcc500074da7132a96c5b541a /cps-ncmp-rest/pom.xml | |
parent | 48110553bc0e7099e5b675bb504cc73937c33d19 (diff) |
Generate docs using OpenAPI 3.0
Doc generation in OpenAPI 3.0 requires executions for each file being generated.
This change adds those executions and updates the dependency to copy these files.
Issue-ID:CPS-1745
Signed-off-by: egernug <gerard.nugent@est.tech>
Change-Id: I144b49b0066f798f15408d955dcd914dd2c0bc91
Diffstat (limited to 'cps-ncmp-rest/pom.xml')
-rw-r--r-- | cps-ncmp-rest/pom.xml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/cps-ncmp-rest/pom.xml b/cps-ncmp-rest/pom.xml index 6679932dbd..8db3628a94 100644 --- a/cps-ncmp-rest/pom.xml +++ b/cps-ncmp-rest/pom.xml @@ -179,9 +179,24 @@ </configOptions> </configuration> </execution> + <execution> + <id>ncmp-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> @@ -195,7 +210,7 @@ </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> |