diff options
author | egernug <gerard.nugent@est.tech> | 2024-09-18 13:32:19 +0100 |
---|---|---|
committer | egernug <gerard.nugent@est.tech> | 2024-09-18 16:16:29 +0100 |
commit | b76392e2d1629d4eb67b10c450cdd954ef678966 (patch) | |
tree | 040f4529c26c989629e5786568e22d9bb0c0d583 /cps-rest/pom.xml | |
parent | 03d2e8607ecfa0502ea93335243c56752ee66f92 (diff) |
[1/2] Move Swagger API to docs folder
Code generation moved to docs folder for cps-core
Issue-ID: CPS-2332
Change-Id: I9a8c5007a3039e0f46114c589de0756d6de91127
Signed-off-by: egernug <gerard.nugent@est.tech>
Diffstat (limited to 'cps-rest/pom.xml')
-rw-r--r-- | cps-rest/pom.xml | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/cps-rest/pom.xml b/cps-rest/pom.xml index 4bcb01af4c..5151a416b8 100644 --- a/cps-rest/pom.xml +++ b/cps-rest/pom.xml @@ -141,7 +141,7 @@ <goal>generate</goal> </goals> <configuration> - <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> + <inputSpec>docs/api/swagger/cps/openapi.yaml</inputSpec> <invokerPackage>org.onap.cps.rest.controller</invokerPackage> <modelPackage>org.onap.cps.rest.model</modelPackage> <apiPackage>org.onap.cps.rest.api</apiPackage> @@ -165,7 +165,7 @@ </goals> <phase>compile</phase> <configuration> - <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> + <inputSpec>docs/api/swagger/cps/openapi.yaml</inputSpec> <generatorName>openapi-yaml</generatorName> <configOptions> <outputFile>openapi.yaml</outputFile> @@ -174,30 +174,6 @@ </execution> </executions> </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-resources-plugin</artifactId> - <executions> - <execution> - <id>copy-resources</id> - <phase>compile</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-core</outputDirectory> - <resources> - <resource> - <directory>${project.basedir}/target/generated-sources/openapi/</directory> - <includes> - <include>openapi.yaml</include> - </includes> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> </plugins> </build> </project> |