Merge "Adding new Simple consumer producer rapp packages"
[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 * Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
8 * %%
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ========================LICENSE_END===================================
21 -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.o-ran-sc.nonrtric.plt</groupId>
28         <artifactId>rappmanager</artifactId>
29         <version>0.2.0-SNAPSHOT</version>
30     </parent>
31
32     <groupId>org.o-ran-sc.nonrtric.plt.rappmanager</groupId>
33     <artifactId>rapp-manager-sme</artifactId>
34
35     <properties>
36         <maven.compiler.source>${java.version}</maven.compiler.source>
37         <maven.compiler.target>${java.version}</maven.compiler.target>
38         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39
40     </properties>
41     <dependencies>
42         <dependency>
43             <groupId>org.o-ran-sc.nonrtric.plt.rappmanager</groupId>
44             <artifactId>rapp-manager-models</artifactId>
45             <version>${project.version}</version>
46         </dependency>
47         <dependency>
48             <groupId>org.springframework.boot</groupId>
49             <artifactId>spring-boot-starter-web</artifactId>
50         </dependency>
51         <dependency>
52             <groupId>org.projectlombok</groupId>
53             <artifactId>lombok</artifactId>
54             <optional>true</optional>
55         </dependency>
56         <dependency>
57             <groupId>org.openapitools</groupId>
58             <artifactId>jackson-databind-nullable</artifactId>
59             <version>${openapi.jackson.databind.nullable.version}</version>
60         </dependency>
61         <dependency>
62             <groupId>org.springframework.boot</groupId>
63             <artifactId>spring-boot-starter-test</artifactId>
64             <scope>test</scope>
65         </dependency>
66         <dependency>
67             <groupId>org.apache.httpcomponents</groupId>
68             <artifactId>httpcore</artifactId>
69             <version>${apache.httpcore.version}</version>
70             <scope>test</scope>
71         </dependency>
72     </dependencies>
73
74     <build>
75         <plugins>
76             <plugin>
77                 <groupId>org.codehaus.mojo</groupId>
78                 <artifactId>exec-maven-plugin</artifactId>
79                 <version>${exec-maven-plugin.version}</version>
80                 <executions>
81                     <execution>
82                         <id>git submodule update</id>
83                         <phase>initialize</phase>
84                         <configuration>
85                             <executable>git</executable>
86                             <arguments>
87                                 <argument>submodule</argument>
88                                 <argument>update</argument>
89                                 <argument>--init</argument>
90                                 <argument>--recursive</argument>
91                             </arguments>
92                         </configuration>
93                         <goals>
94                             <goal>exec</goal>
95                         </goals>
96                     </execution>
97                     <execution>
98                         <id>initialize-sme-openapi-specs</id>
99                         <phase>generate-sources</phase>
100                         <goals>
101                             <goal>exec</goal>
102                         </goals>
103                         <configuration>
104                             <workingDirectory>
105                                 ${project.parent.basedir}/sme/capifcore
106                             </workingDirectory>
107                             <executable>
108                                 go
109                             </executable>
110                             <arguments>
111                                 <argument>run</argument>
112                                 <argument>getsmeswagger.go</argument>
113                             </arguments>
114                         </configuration>
115                     </execution>
116                 </executions>
117             </plugin>
118             <plugin>
119                 <artifactId>maven-resources-plugin</artifactId>
120                 <version>${copy-resources-maven-plugin.version}</version>
121                 <executions>
122                     <execution>
123                         <id>copy-swagger-generator</id>
124                         <phase>initialize</phase>
125                         <goals>
126                             <goal>copy-resources</goal>
127                         </goals>
128                         <configuration>
129                             <outputDirectory>${project.parent.basedir}/sme/capifcore</outputDirectory>
130                             <resources>
131                                 <resource>
132                                     <directory>${project.parent.basedir}/scripts/init/</directory>
133                                     <includes>
134                                         <include>getsmeswagger.go</include>
135                                     </includes>
136                                     <filtering>false</filtering>
137                                 </resource>
138                             </resources>
139                         </configuration>
140                     </execution>
141                 </executions>
142             </plugin>
143             <plugin>
144                 <groupId>org.openapitools</groupId>
145                 <artifactId>openapi-generator-maven-plugin</artifactId>
146                 <version>${openapi.maven.version}</version>
147                 <executions>
148                     <execution>
149                         <id>provider-spec-generator</id>
150                         <goals>
151                             <goal>generate</goal>
152                         </goals>
153                         <configuration>
154                             <inputSpec>
155                                 ${project.parent.basedir}/openapi/sme/TS29222_CAPIF_API_Provider_Management_API.yaml
156                             </inputSpec>
157                             <generatorName>java</generatorName>
158                             <library>resttemplate</library>
159                             <generateApiTests>false</generateApiTests>
160                             <generateModelTests>false</generateModelTests>
161                             <generateApiDocumentation>false</generateApiDocumentation>
162                             <generateModelDocumentation>false</generateModelDocumentation>
163                             <generateModels>true</generateModels>
164                             <additionalProperties>
165                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
166                             </additionalProperties>
167                             <configOptions>
168                                 <sourceFolder>src/main/java</sourceFolder>
169                                 <useJakartaEe>true</useJakartaEe>
170                                 <invokerPackage>org.oransc.rappmanager.sme.provider</invokerPackage>
171                                 <apiPackage>org.oransc.rappmanager.sme.provider.rest</apiPackage>
172                                 <modelPackage>org.oransc.rappmanager.sme.provider.data</modelPackage>
173                                 <generateClientAsBean>false</generateClientAsBean>
174                             </configOptions>
175                         </configuration>
176                     </execution>
177                     <execution>
178                         <id>publish-service-spec-generator</id>
179                         <goals>
180                             <goal>generate</goal>
181                         </goals>
182                         <configuration>
183                             <inputSpec>
184                                 ${project.parent.basedir}/openapi/sme/TS29222_CAPIF_Publish_Service_API.yaml
185                             </inputSpec>
186                             <generatorName>java</generatorName>
187                             <library>resttemplate</library>
188                             <generateApiTests>false</generateApiTests>
189                             <generateModelTests>false</generateModelTests>
190                             <generateApiDocumentation>false</generateApiDocumentation>
191                             <generateModelDocumentation>false</generateModelDocumentation>
192                             <generateModels>true</generateModels>
193                             <additionalProperties>
194                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
195                             </additionalProperties>
196                             <configOptions>
197                                 <sourceFolder>src/main/java</sourceFolder>
198                                 <useJakartaEe>true</useJakartaEe>
199                                 <invokerPackage>org.oransc.rappmanager.sme.publishservice</invokerPackage>
200                                 <apiPackage>org.oransc.rappmanager.sme.publishservice.rest</apiPackage>
201                                 <modelPackage>org.oransc.rappmanager.sme.publishservice.data</modelPackage>
202                                 <generateClientAsBean>false</generateClientAsBean>
203                             </configOptions>
204                         </configuration>
205                     </execution>
206                     <execution>
207                         <id>invoker-spec-generator</id>
208                         <goals>
209                             <goal>generate</goal>
210                         </goals>
211                         <configuration>
212                             <inputSpec>
213                                 ${project.parent.basedir}/openapi/sme/TS29222_CAPIF_API_Invoker_Management_API.yaml
214                             </inputSpec>
215                             <generatorName>java</generatorName>
216                             <library>resttemplate</library>
217                             <generateApiTests>false</generateApiTests>
218                             <generateModelTests>false</generateModelTests>
219                             <generateApiDocumentation>false</generateApiDocumentation>
220                             <generateModelDocumentation>false</generateModelDocumentation>
221                             <generateModels>true</generateModels>
222                             <additionalProperties>
223                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
224                             </additionalProperties>
225                             <configOptions>
226                                 <sourceFolder>src/main/java</sourceFolder>
227                                 <useJakartaEe>true</useJakartaEe>
228                                 <invokerPackage>org.oransc.rappmanager.sme.invoker</invokerPackage>
229                                 <apiPackage>org.oransc.rappmanager.sme.invoker.rest</apiPackage>
230                                 <modelPackage>org.oransc.rappmanager.sme.invoker.data</modelPackage>
231                                 <generateClientAsBean>false</generateClientAsBean>
232                             </configOptions>
233                         </configuration>
234                     </execution>
235                 </executions>
236             </plugin>
237         </plugins>
238     </build>
239 </project>