diff options
author | mpriyank <priyank.maheshwari@est.tech> | 2024-12-04 15:49:34 +0000 |
---|---|---|
committer | mpriyank <priyank.maheshwari@est.tech> | 2024-12-04 15:49:40 +0000 |
commit | c364b3a247d81c2a3d29d433e751dfdd427ce00c (patch) | |
tree | df9052feb22e3e6357f2f185317f415aa993df20 /dmi-service/pom.xml | |
parent | 9e9ff2ba93e0b16451aef4f99a8bd728656ead4a (diff) |
Add plugin to copy openapi files to doc folder
- Added copy to doc folder plugin for ncmp-dmi-plugin
- Updated the info.version property to 1.7.0 which ensures that the
plugin works
Issue-ID: CPS-2539
Change-Id: I1d456e2b16a6d66e6e71c21e5e16732408721837
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
Diffstat (limited to 'dmi-service/pom.xml')
-rw-r--r-- | dmi-service/pom.xml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dmi-service/pom.xml b/dmi-service/pom.xml index c6d4cfea..0686f3ae 100644 --- a/dmi-service/pom.xml +++ b/dmi-service/pom.xml @@ -48,6 +48,7 @@ <openapi.generator.maven.plugin.version>6.6.0</openapi.generator.maven.plugin.version> <spring.boot.maven.plugin.version>3.1.2</spring.boot.maven.plugin.version> <spotbugs.maven.plugin.version>4.4.2</spotbugs.maven.plugin.version> + <maven-resources-plugin.version>3.3.1</maven-resources-plugin.version> <!-- Code Coverage Configuration --> <jacoco.execFile>${basedir}/target/code-coverage/jacoco-ut.exec</jacoco.execFile> @@ -425,6 +426,33 @@ </executions> </plugin> <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>${maven-resources-plugin.version}</version> + <executions> + <execution> + <id>copy-to-doc-folder</id> + <phase>compile</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${project.basedir}/../docs/api/swagger</outputDirectory> + <overwrite>true</overwrite> + <resources> + <resource> + <directory>${project.basedir}/target/generated-sources/openapi/openapi/</directory> + <includes> + <include>openapi.yaml</include> + <include>openapi-datajob.yaml</include> + </includes> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring.boot.maven.plugin.version}</version> |