aboutsummaryrefslogtreecommitdiffstats
path: root/cps-rest/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'cps-rest/pom.xml')
-rw-r--r--cps-rest/pom.xml26
1 files changed, 25 insertions, 1 deletions
diff --git a/cps-rest/pom.xml b/cps-rest/pom.xml
index f7ddd6c382..f270a58f06 100644
--- a/cps-rest/pom.xml
+++ b/cps-rest/pom.xml
@@ -27,10 +27,14 @@
<parent>
<groupId>org.onap.cps</groupId>
<artifactId>cps-parent</artifactId>
- <version>3.5.1-SNAPSHOT</version>
+ <version>3.5.5-SNAPSHOT</version>
<relativePath>../cps-parent/pom.xml</relativePath>
</parent>
+ <properties>
+ <maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
+ </properties>
+
<artifactId>cps-rest</artifactId>
<dependencies>
@@ -177,6 +181,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
+ <version>${maven-resources-plugin.version}</version>
<executions>
<execution>
<id>copy-resources</id>
@@ -196,6 +201,25 @@
</resources>
</configuration>
</execution>
+ <execution>
+ <id>copy-to-doc-folder</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.basedir}/../docs/api/swagger/cps</outputDirectory>
+ <overwrite>true</overwrite>
+ <resources>
+ <resource>
+ <directory>${project.basedir}/target/generated-sources/openapi/</directory>
+ <includes>
+ <include>openapi.yaml</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
</executions>
</plugin>
</plugins>