Update artifact id and name
[nonrtric/plt/rappmanager.git] / rapp-manager-acm / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * ========================LICENSE_START=================================
4 * O-RAN-SC
5 * %%
6 * Copyright (C) 2023 Nordix Foundation
7 * %%
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ========================LICENSE_END===================================
20 -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25     <parent>
26         <groupId>org.o-ran-sc.nonrtric.plt</groupId>
27         <artifactId>rappmanager</artifactId>
28         <version>0.0.1-SNAPSHOT</version>
29     </parent>
30
31     <groupId>org.o-ran-sc.nonrtric.plt.rappmanager</groupId>
32     <artifactId>rapp-manager-acm</artifactId>
33
34     <properties>
35         <maven.compiler.source>${java.version}</maven.compiler.source>
36         <maven.compiler.target>${java.version}</maven.compiler.target>
37         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38     </properties>
39
40     <dependencies>
41         <dependency>
42             <groupId>org.o-ran-sc.nonrtric.plt.rappmanager</groupId>
43             <artifactId>rapp-manager-models</artifactId>
44             <version>${project.version}</version>
45         </dependency>
46         <dependency>
47             <groupId>org.onap.policy.clamp</groupId>
48             <artifactId>policy-clamp-models</artifactId>
49             <version>${onap.acm.models.version}</version>
50             <exclusions>
51                 <exclusion>
52                     <groupId>org.springframework.boot</groupId>
53                     <artifactId>spring-boot-starter-data-jpa</artifactId>
54                 </exclusion>
55                 <exclusion>
56                     <groupId>org.springframework.boot</groupId>
57                     <artifactId>spring-boot-starter-aop</artifactId>
58                 </exclusion>
59                 <exclusion>
60                     <groupId>org.springframework.boot</groupId>
61                     <artifactId>spring-boot-starter-security</artifactId>
62                 </exclusion>
63                 <exclusion>
64                     <groupId>org.springframework.boot</groupId>
65                     <artifactId>spring-boot-starter-validation</artifactId>
66                 </exclusion>
67                 <exclusion>
68                     <groupId>org.springframework.boot</groupId>
69                     <artifactId>spring-boot-starter-webflux</artifactId>
70                 </exclusion>
71             </exclusions>
72         </dependency>
73         <dependency>
74             <groupId>org.openapitools</groupId>
75             <artifactId>jackson-databind-nullable</artifactId>
76             <version>${openapi.jackson.databind.nullable.version}</version>
77         </dependency>
78         <dependency>
79             <groupId>org.springframework.boot</groupId>
80             <artifactId>spring-boot-starter-test</artifactId>
81             <scope>test</scope>
82         </dependency>
83
84     </dependencies>
85
86     <build>
87         <plugins>
88             <plugin>
89                 <groupId>org.openapitools</groupId>
90                 <artifactId>openapi-generator-maven-plugin</artifactId>
91                 <version>${openapi.maven.version}</version>
92                 <executions>
93                     <execution>
94                         <id>acm-spec-generator</id>
95                         <goals>
96                             <goal>generate</goal>
97                         </goals>
98                         <configuration>
99                             <inputSpec>${project.basedir}/src/main/resources/openapi/acm-spec.yaml</inputSpec>
100                             <generatorName>java</generatorName>
101                             <library>resttemplate</library>
102                             <generateApiTests>false</generateApiTests>
103                             <generateModelTests>false</generateModelTests>
104                             <generateApiDocumentation>false</generateApiDocumentation>
105                             <generateModelDocumentation>false</generateModelDocumentation>
106                             <generateModels>true</generateModels>
107                             <schemaMappings>
108                                 ToscaServiceTemplates=org.onap.policy.models.tosca.authorative.concepts.ToscaServiceTemplates,
109                                 ToscaServiceTemplate=org.onap.policy.models.tosca.authorative.concepts.ToscaServiceTemplate,
110                                 ToscaNodeTemplate=org.onap.policy.models.tosca.authorative.concepts.ToscaNodeTemplate,
111                                 AutomationCompositions=org.onap.policy.clamp.models.acm.concepts.AutomationCompositions,
112                                 AutomationComposition=org.onap.policy.clamp.models.acm.concepts.AutomationComposition,
113                                 <!--                                AutomationCompositionDefinition=org.onap.policy.clamp.models.acm.concepts.AutomationCompositionDefinition,-->
114                                 SimpleResponse=org.onap.policy.clamp.models.acm.messages.rest.SimpleResponse,
115                                 AcTypeStateUpdate=org.onap.policy.clamp.models.acm.messages.rest.commissioning.AcTypeStateUpdate,
116                                 AcInstanceStateUpdate=org.onap.policy.clamp.models.acm.messages.rest.instantiation.AcInstanceStateUpdate,
117                                 InstancePropertiesResponse=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstancePropertiesResponse,
118                                 CommissioningResponse=org.onap.policy.clamp.models.acm.messages.rest.commissioning.CommissioningResponse,
119                                 InstantiationCommand=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstantiationCommand,
120                                 InstantiationResponse=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstantiationResponse,
121                                 InstantiationUpdate=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstantiationUpdate,
122                                 ParticipantInformation=org.onap.policy.clamp.models.acm.concepts.ParticipantInformation
123                             </schemaMappings>
124                             <additionalProperties>
125                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
126                             </additionalProperties>
127                             <configOptions>
128                                 <sourceFolder>src/main/java</sourceFolder>
129                                 <useJakartaEe>true</useJakartaEe>
130                                 <invokerPackage>com.oransc.rappmanager.acm</invokerPackage>
131                                 <apiPackage>com.oransc.rappmanager.acm.rest</apiPackage>
132                                 <modelPackage>com.oransc.rappmanager.acm.data</modelPackage>
133                                 <generateClientAsBean>false</generateClientAsBean>
134                             </configOptions>
135                         </configuration>
136                     </execution>
137                 </executions>
138             </plugin>
139         </plugins>
140     </build>
141
142 </project>