Merge "Uplift spring boot version to 3.1.4"
[nonrtric/plt/rappmanager.git] / rapp-manager-sme / 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-sme</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
39     </properties>
40
41     <profiles>
42         <profile>
43             <id>Windows</id>
44             <activation>
45                 <os>
46                     <family>Windows</family>
47                 </os>
48             </activation>
49             <properties>
50                 <script.extension>.bat</script.extension>
51                 <file.separator>\</file.separator>
52             </properties>
53         </profile>
54         <profile>
55             <id>unix</id>
56             <activation>
57                 <os>
58                     <family>unix</family>
59                 </os>
60             </activation>
61             <properties>
62                 <script.extension>.sh</script.extension>
63                 <file.separator>/</file.separator>
64             </properties>
65         </profile>
66     </profiles>
67
68     <dependencies>
69         <dependency>
70             <groupId>org.o-ran-sc.nonrtric.plt.rappmanager</groupId>
71             <artifactId>rapp-manager-models</artifactId>
72             <version>${project.version}</version>
73         </dependency>
74         <dependency>
75             <groupId>org.springframework.boot</groupId>
76             <artifactId>spring-boot-starter-web</artifactId>
77         </dependency>
78         <dependency>
79             <groupId>org.projectlombok</groupId>
80             <artifactId>lombok</artifactId>
81             <optional>true</optional>
82         </dependency>
83         <dependency>
84             <groupId>org.openapitools</groupId>
85             <artifactId>jackson-databind-nullable</artifactId>
86             <version>${openapi.jackson.databind.nullable.version}</version>
87         </dependency>
88         <dependency>
89             <groupId>org.springframework.boot</groupId>
90             <artifactId>spring-boot-starter-test</artifactId>
91             <scope>test</scope>
92         </dependency>
93         <dependency>
94             <groupId>org.apache.httpcomponents</groupId>
95             <artifactId>httpcore</artifactId>
96             <version>${apache.httpcore.version}</version>
97             <scope>test</scope>
98         </dependency>
99     </dependencies>
100
101     <build>
102         <plugins>
103             <plugin>
104                 <groupId>org.codehaus.mojo</groupId>
105                 <artifactId>exec-maven-plugin</artifactId>
106                 <version>${exec-maven-plugin.version}</version>
107                 <executions>
108                     <execution>
109                         <id>git submodule update</id>
110                         <phase>initialize</phase>
111                         <configuration>
112                             <executable>git</executable>
113                             <arguments>
114                                 <argument>submodule</argument>
115                                 <argument>update</argument>
116                                 <argument>--init</argument>
117                                 <argument>--recursive</argument>
118                             </arguments>
119                         </configuration>
120                         <goals>
121                             <goal>exec</goal>
122                         </goals>
123                     </execution>
124                     <execution>
125                         <id>initialize-sme-openapi-specs</id>
126                         <phase>initialize</phase>
127                         <goals>
128                             <goal>exec</goal>
129                         </goals>
130                         <configuration>
131                             <executable>
132                                 ..${file.separator}scripts${file.separator}init${file.separator}init-sme-spec${script.extension}
133                             </executable>
134                         </configuration>
135                     </execution>
136                 </executions>
137             </plugin>
138             <plugin>
139                 <groupId>org.openapitools</groupId>
140                 <artifactId>openapi-generator-maven-plugin</artifactId>
141                 <version>${openapi.maven.version}</version>
142                 <executions>
143                     <execution>
144                         <id>provider-spec-generator</id>
145                         <goals>
146                             <goal>generate</goal>
147                         </goals>
148                         <configuration>
149                             <inputSpec>
150                                 ${project.basedir}/src/main/resources/openapi/TS29222_CAPIF_API_Provider_Management_API.yaml
151                             </inputSpec>
152                             <generatorName>java</generatorName>
153                             <library>resttemplate</library>
154                             <generateApiTests>false</generateApiTests>
155                             <generateModelTests>false</generateModelTests>
156                             <generateApiDocumentation>false</generateApiDocumentation>
157                             <generateModelDocumentation>false</generateModelDocumentation>
158                             <generateModels>true</generateModels>
159                             <additionalProperties>
160                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
161                             </additionalProperties>
162                             <configOptions>
163                                 <sourceFolder>src/main/java</sourceFolder>
164                                 <useJakartaEe>true</useJakartaEe>
165                                 <invokerPackage>com.oransc.rappmanager.sme.provider</invokerPackage>
166                                 <apiPackage>com.oransc.rappmanager.sme.provider.rest</apiPackage>
167                                 <modelPackage>com.oransc.rappmanager.sme.provider.data</modelPackage>
168                                 <generateClientAsBean>false</generateClientAsBean>
169                             </configOptions>
170                         </configuration>
171                     </execution>
172                     <execution>
173                         <id>publish-service-spec-generator</id>
174                         <goals>
175                             <goal>generate</goal>
176                         </goals>
177                         <configuration>
178                             <inputSpec>
179                                 ${project.basedir}/src/main/resources/openapi/TS29222_CAPIF_Publish_Service_API.yaml
180                             </inputSpec>
181                             <generatorName>java</generatorName>
182                             <library>resttemplate</library>
183                             <generateApiTests>false</generateApiTests>
184                             <generateModelTests>false</generateModelTests>
185                             <generateApiDocumentation>false</generateApiDocumentation>
186                             <generateModelDocumentation>false</generateModelDocumentation>
187                             <generateModels>true</generateModels>
188                             <additionalProperties>
189                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
190                             </additionalProperties>
191                             <configOptions>
192                                 <sourceFolder>src/main/java</sourceFolder>
193                                 <useJakartaEe>true</useJakartaEe>
194                                 <invokerPackage>com.oransc.rappmanager.sme.publishservice</invokerPackage>
195                                 <apiPackage>com.oransc.rappmanager.sme.publishservice.rest</apiPackage>
196                                 <modelPackage>com.oransc.rappmanager.sme.publishservice.data</modelPackage>
197                                 <generateClientAsBean>false</generateClientAsBean>
198                             </configOptions>
199                         </configuration>
200                     </execution>
201                     <execution>
202                         <id>invoker-spec-generator</id>
203                         <goals>
204                             <goal>generate</goal>
205                         </goals>
206                         <configuration>
207                             <inputSpec>
208                                 ${project.basedir}/src/main/resources/openapi/TS29222_CAPIF_API_Invoker_Management_API.yaml
209                             </inputSpec>
210                             <generatorName>java</generatorName>
211                             <library>resttemplate</library>
212                             <generateApiTests>false</generateApiTests>
213                             <generateModelTests>false</generateModelTests>
214                             <generateApiDocumentation>false</generateApiDocumentation>
215                             <generateModelDocumentation>false</generateModelDocumentation>
216                             <generateModels>true</generateModels>
217                             <additionalProperties>
218                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
219                             </additionalProperties>
220                             <configOptions>
221                                 <sourceFolder>src/main/java</sourceFolder>
222                                 <useJakartaEe>true</useJakartaEe>
223                                 <invokerPackage>com.oransc.rappmanager.sme.invoker</invokerPackage>
224                                 <apiPackage>com.oransc.rappmanager.sme.invoker.rest</apiPackage>
225                                 <modelPackage>com.oransc.rappmanager.sme.invoker.data</modelPackage>
226                                 <generateClientAsBean>false</generateClientAsBean>
227                             </configOptions>
228                         </configuration>
229                     </execution>
230                 </executions>
231             </plugin>
232         </plugins>
233     </build>
234 </project>