summaryrefslogtreecommitdiffstats
path: root/controlloop/common/feature-controlloop-management/pom.xml
diff options
context:
space:
mode:
authorlapentafd <francesco.lapenta@est.tech>2023-02-13 13:59:45 +0000
committerFrancesco Davide Lapenta <francesco.lapenta@est.tech>2023-02-13 14:04:58 +0000
commit44dd8296a49937e347f6c2304bcaa09e3a67e3cc (patch)
treec8009f1a989ee9bb01c1b0a73f103474ed27c316 /controlloop/common/feature-controlloop-management/pom.xml
parent70ddcbe8e34eda99a7e6e9f383cc78a0d6f0cbd2 (diff)
Clean Annotations drools-applications
Added swagger extracted documentation in openapi.yaml Issue-ID: POLICY-3465 Change-Id: Icb30dea789559b0de379ce0e5d8da3e8d9a5dac5 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
Diffstat (limited to 'controlloop/common/feature-controlloop-management/pom.xml')
-rw-r--r--controlloop/common/feature-controlloop-management/pom.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/controlloop/common/feature-controlloop-management/pom.xml b/controlloop/common/feature-controlloop-management/pom.xml
index e0c9db9d0..9d7d22e3f 100644
--- a/controlloop/common/feature-controlloop-management/pom.xml
+++ b/controlloop/common/feature-controlloop-management/pom.xml
@@ -91,6 +91,39 @@
</execution>
</executions>
</plugin>
+ <!-- Controllers interfaces generation -->
+ <plugin>
+ <groupId>io.swagger.codegen.v3</groupId>
+ <artifactId>swagger-codegen-maven-plugin</artifactId>
+ <version>3.0.36</version>
+ <executions>
+ <execution>
+ <id>code-gen</id>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+ <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
+ <invokerPackage>org.onap.policy.drools.server.restful</invokerPackage>
+ <modelPackage>org.onap.policy.drools.server.restful.model</modelPackage>
+ <apiPackage>org.onap.policy.drools.server.restful</apiPackage>
+ <language>jaxrs-spec</language>
+ <generateModels>false</generateModels>
+ <generateSupportingFiles>false</generateSupportingFiles>
+ <sortParamsByRequiredFlag>false</sortParamsByRequiredFlag>
+ <importMappings>
+ Response=javax.ws.rs.core.Response
+ </importMappings>
+ <configOptions>
+ <useTags>true</useTags>
+ <sourceFolder>src/gen/java</sourceFolder>
+ <dateLibrary>java11</dateLibrary>
+ <interfaceOnly>true</interfaceOnly>
+ </configOptions>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>