blob: e14eb6126062dd4cf96898d4ff44b64bc31d6530 [file] [log] [blame]
liamfallon20c74872021-05-26 11:02:07 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
liamfallon0e405f32023-02-17 19:15:16 +00004 Copyright (C) 2021-2023 Nordix Foundation.
liamfallon20c74872021-05-26 11:02:07 +01005 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 SPDX-License-Identifier: Apache-2.0
19 ============LICENSE_END=========================================================
20-->
21
liamfallonc998a3a2022-11-11 13:43:16 +000022<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
liamfallon20c74872021-05-26 11:02:07 +010023 <modelVersion>4.0.0</modelVersion>
24
25 <parent>
26 <groupId>org.onap.policy.clamp</groupId>
27 <artifactId>policy-clamp</artifactId>
FrancescoFioraEst97d15552023-08-25 10:13:43 +010028 <version>7.0.1-SNAPSHOT</version>
liamfallon20c74872021-05-26 11:02:07 +010029 </parent>
30
liamfallon43098042022-01-25 19:55:43 +000031 <artifactId>policy-clamp-runtime-acm</artifactId>
liamfallon20c74872021-05-26 11:02:07 +010032 <name>${project.artifactId}</name>
33
34 <dependencies>
35 <dependency>
36 <groupId>org.onap.policy.clamp</groupId>
37 <artifactId>policy-clamp-common</artifactId>
38 <version>${project.version}</version>
39 </dependency>
40 <dependency>
41 <groupId>org.onap.policy.clamp</groupId>
42 <artifactId>policy-clamp-models</artifactId>
FrancescoFioraEst97d15552023-08-25 10:13:43 +010043 <version>7.0.1-SNAPSHOT</version>
liamfallon20c74872021-05-26 11:02:07 +010044 </dependency>
FrancescoFioraEstd5fb4e02021-07-05 10:36:42 +010045 <dependency>
adheli.tavares7f630942022-03-09 10:39:29 +000046 <groupId>org.onap.policy.clamp</groupId>
47 <artifactId>policy-clamp-examples</artifactId>
48 <version>${project.version}</version>
49 </dependency>
liamfallon20c74872021-05-26 11:02:07 +010050 </dependencies>
FrancescoFioraEstd5fb4e02021-07-05 10:36:42 +010051
52 <build>
53 <plugins>
lapentafd9d345f32022-10-26 16:43:00 +010054 <!-- Swagger code generation. -->
55 <plugin>
56 <groupId>io.swagger.codegen.v3</groupId>
57 <artifactId>swagger-codegen-maven-plugin</artifactId>
FrancescoFioraEstcee4b8a2023-08-11 15:10:44 +010058 <version>3.0.46</version>
lapentafd9d345f32022-10-26 16:43:00 +010059 <executions>
60 <execution>
61 <id>code-gen</id>
62 <goals>
63 <goal>generate</goal>
64 </goals>
65 <configuration>
66 <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
liamfallonc998a3a2022-11-11 13:43:16 +000067 <invokerPackage>org.onap.policy.clamp.acm.runtime.main.rest</invokerPackage>
FrancescoFioraEstcfa51e62022-11-10 11:52:31 +000068 <modelPackage>org.onap.policy.clamp.models.acm.concepts</modelPackage>
liamfalloncf5af3f2022-12-01 15:24:57 +000069 <apiPackage>org.onap.policy.clamp.acm.runtime.main.rest.gen</apiPackage>
lapentafd9d345f32022-10-26 16:43:00 +010070 <language>spring</language>
71 <generateModels>false</generateModels>
72 <generateSupportingFiles>false</generateSupportingFiles>
liamfallonc998a3a2022-11-11 13:43:16 +000073 <importMappings>
74 ToscaServiceTemplates=org.onap.policy.models.tosca.authorative.concepts.ToscaServiceTemplates,
75 ToscaServiceTemplate=org.onap.policy.models.tosca.authorative.concepts.ToscaServiceTemplate,
76 ToscaNodeTemplate=org.onap.policy.models.tosca.authorative.concepts.ToscaNodeTemplate,
77 AutomationCompositions=org.onap.policy.clamp.models.acm.concepts.AutomationCompositions,
78 SimpleResponse=org.onap.policy.clamp.models.acm.messages.rest.SimpleResponse,
liamfallonf5ebd502022-12-16 10:17:46 +000079 AcTypeStateUpdate=org.onap.policy.clamp.models.acm.messages.rest.commissioning.AcTypeStateUpdate,
80 AcInstanceStateUpdate=org.onap.policy.clamp.models.acm.messages.rest.instantiation.AcInstanceStateUpdate,
liamfallonc998a3a2022-11-11 13:43:16 +000081 InstancePropertiesResponse=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstancePropertiesResponse,
82 CommissioningResponse=org.onap.policy.clamp.models.acm.messages.rest.commissioning.CommissioningResponse,
83 InstantiationCommand=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstantiationCommand,
FrancescoFioraEst5e0f7912022-12-09 14:38:10 +000084 InstantiationResponse=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstantiationResponse,
85 InstantiationUpdate=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstantiationUpdate
liamfallonc998a3a2022-11-11 13:43:16 +000086 </importMappings>
lapentafd9d345f32022-10-26 16:43:00 +010087 <configOptions>
88 <sourceFolder>src/gen/java</sourceFolder>
89 <dateLibrary>java11</dateLibrary>
90 <interfaceOnly>true</interfaceOnly>
91 <useTags>true</useTags>
FrancescoFioraEstcee4b8a2023-08-11 15:10:44 +010092 <jakarta>true</jakarta>
lapentafd9d345f32022-10-26 16:43:00 +010093 </configOptions>
94 </configuration>
95 </execution>
96 </executions>
97 </plugin>
FrancescoFioraEstd5fb4e02021-07-05 10:36:42 +010098 <plugin>
adheli.tavares7f630942022-03-09 10:39:29 +000099 <groupId>org.apache.maven.plugins</groupId>
100 <artifactId>maven-remote-resources-plugin</artifactId>
adheli.tavares7f630942022-03-09 10:39:29 +0000101 <configuration>
102 <resourceBundles>
103 <resourceBundle>org.onap.policy.clamp:policy-clamp-examples:${project.version}</resourceBundle>
104 </resourceBundles>
105 </configuration>
106 <executions>
107 <execution>
108 <goals>
109 <goal>process</goal>
110 </goals>
111 </execution>
112 </executions>
113 </plugin>
114 <plugin>
FrancescoFioraEstd5fb4e02021-07-05 10:36:42 +0100115 <groupId>org.springframework.boot</groupId>
116 <artifactId>spring-boot-maven-plugin</artifactId>
FrancescoFioraEstcee4b8a2023-08-11 15:10:44 +0100117 <version>${version.springboot}</version>
FrancescoFioraEstd5fb4e02021-07-05 10:36:42 +0100118 <executions>
119 <execution>
120 <goals>
121 <goal>repackage</goal>
122 </goals>
123 <phase>package</phase>
124 </execution>
125 </executions>
126 </plugin>
127 </plugins>
128 </build>
liamfallon20c74872021-05-26 11:02:07 +0100129</project>