diff options
author | lapentafd <francesco.lapenta@est.tech> | 2022-10-26 16:43:00 +0100 |
---|---|---|
committer | Francesco Davide Lapenta <francesco.lapenta@est.tech> | 2022-11-08 10:20:13 +0000 |
commit | 9d345f3c85b0fc1bdbaf114c45812d5ff84c40be (patch) | |
tree | 3345a529978205bebbced31c7bd607e9e9c92f40 /runtime-acm/pom.xml | |
parent | b14259f6fa9b3bee8d9038a5d03c0c09b4f96ca9 (diff) |
Add Maven Build for Code Generation
Issue-ID: POLICY-4159
Change-Id: I51b1dd182c878a44e1b3f8c205221ae434459f5a
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
Diffstat (limited to 'runtime-acm/pom.xml')
-rw-r--r-- | runtime-acm/pom.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/runtime-acm/pom.xml b/runtime-acm/pom.xml index 9a0487544..ea134683f 100644 --- a/runtime-acm/pom.xml +++ b/runtime-acm/pom.xml @@ -53,6 +53,42 @@ <build> <plugins> + <!-- Swagger code generation. --> + <plugin> + <groupId>io.swagger.codegen.v3</groupId> + <artifactId>swagger-codegen-maven-plugin</artifactId> + <version>3.0.27</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.acm.rest.controller</invokerPackage> + <modelPackage>org.onap.acm.rest.model</modelPackage> + <apiPackage>org.onap.acm.rest.api</apiPackage> + <language>spring</language> + <generateModels>false</generateModels> + <generateSupportingFiles>false</generateSupportingFiles> + <importMappings>InstancePropertiesResponse=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstancePropertiesResponse, + CommissioningResponse=org.onap.policy.clamp.models.acm.messages.rest.commissioning.CommissioningResponse, + ToscaNodeTemplate=org.onap.policy.models.tosca.authorative.concepts.ToscaNodeTemplate, + ToscaServiceTemplate=org.onap.policy.models.tosca.authorative.concepts.ToscaServiceTemplate, + AutomationCompositions=org.onap.policy.clamp.models.acm.concepts.AutomationCompositions, + InstantiationCommand=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstantiationCommand, + InstantiationResponse=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstantiationResponse</importMappings> + <configOptions> + <sourceFolder>src/gen/java</sourceFolder> + <dateLibrary>java11</dateLibrary> + <interfaceOnly>true</interfaceOnly> + <useTags>true</useTags> + </configOptions> + </configuration> + </execution> + </executions> + </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-remote-resources-plugin</artifactId> |