summaryrefslogtreecommitdiffstats
path: root/dmi-service/pom.xml
diff options
context:
space:
mode:
authoregernug <gerard.nugent@est.tech>2024-09-09 12:05:52 +0100
committeregernug <gerard.nugent@est.tech>2024-09-10 10:04:57 +0100
commit0900a1eb7607116a95700b6f99264f4676d9ba5c (patch)
treeb0a8c0e8644535d388a836bd1efebca71f7f0e65 /dmi-service/pom.xml
parent5ac3f5054a76e590afb6925b555ee86ed8b47d26 (diff)
Move Swagger API to docs folder
Use docs folder for code genereation Issue-ID: CPS-2332 Change-Id: Ifd59025014766667e63baee65a06522903fd7da2 Signed-off-by: egernug <gerard.nugent@est.tech>
Diffstat (limited to 'dmi-service/pom.xml')
-rw-r--r--dmi-service/pom.xml31
1 files changed, 4 insertions, 27 deletions
diff --git a/dmi-service/pom.xml b/dmi-service/pom.xml
index 0e75008b..7b2c54c1 100644
--- a/dmi-service/pom.xml
+++ b/dmi-service/pom.xml
@@ -309,7 +309,7 @@
<goal>generate</goal>
</goals>
<configuration>
- <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec>
+ <inputSpec>${project.basedir}/../docs/api/swagger/openapi.yaml</inputSpec>
<generatorName>spring</generatorName>
<generateSupportingFiles>false</generateSupportingFiles>
<invokerPackage>org.onap.cps.ncmp.dmi.rest.controller</invokerPackage>
@@ -333,7 +333,7 @@
<goal>generate</goal>
</goals>
<configuration>
- <inputSpec>${project.basedir}/openapi/openapi-datajob.yml</inputSpec>
+ <inputSpec>${project.basedir}/../docs/api/swagger/openapi-datajob.yaml</inputSpec>
<generatorName>spring</generatorName>
<generateSupportingFiles>false</generateSupportingFiles>
<invokerPackage>org.onap.cps.ncmp.dmi.datajobs.rest.controller</invokerPackage>
@@ -358,7 +358,7 @@
</goals>
<phase>compile</phase>
<configuration>
- <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec>
+ <inputSpec>${project.basedir}/../docs/api/swagger/openapi.yaml</inputSpec>
<generatorName>openapi-yaml</generatorName>
<configOptions>
<outputFile>openapi/openapi.yaml</outputFile>
@@ -372,7 +372,7 @@
</goals>
<phase>compile</phase>
<configuration>
- <inputSpec>${project.basedir}/openapi/openapi-datajob.yml</inputSpec>
+ <inputSpec>${project.basedir}/../docs/api/swagger/openapi-datajob.yaml</inputSpec>
<generatorName>openapi-yaml</generatorName>
<configOptions>
<outputFile>openapi/openapi-datajob.yaml</outputFile>
@@ -382,29 +382,6 @@
</executions>
</plugin>
<plugin>
- <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</outputDirectory>
- <resources>
- <resource>
- <directory>${project.basedir}/target/generated-sources/openapi/openapi</directory>
- <includes>
- <include>openapi*.yaml</include>
- </includes>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>3.1.2</version>