ac7c97ea95268ea0497484a9dc02d06305041cf4
[nonrtric/plt/rappmanager.git] / rapp-manager-sme / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5     <modelVersion>4.0.0</modelVersion>
6     <parent>
7         <groupId>com.oransc</groupId>
8         <artifactId>rappmanager</artifactId>
9         <version>0.0.1-SNAPSHOT</version>
10     </parent>
11
12     <groupId>com.oransc.rappmanager</groupId>
13     <artifactId>rapp-manager-sme</artifactId>
14
15     <properties>
16         <maven.compiler.source>17</maven.compiler.source>
17         <maven.compiler.target>17</maven.compiler.target>
18         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19         <exec-maven-plugin.version>3.1.0</exec-maven-plugin.version>
20     </properties>
21
22     <dependencies>
23         <dependency>
24             <groupId>com.oransc.rappmanager</groupId>
25             <artifactId>rapp-manager-models</artifactId>
26             <version>${project.version}</version>
27         </dependency>
28         <dependency>
29             <groupId>org.springframework.boot</groupId>
30             <artifactId>spring-boot-starter-web</artifactId>
31         </dependency>
32         <dependency>
33             <groupId>org.projectlombok</groupId>
34             <artifactId>lombok</artifactId>
35             <optional>true</optional>
36         </dependency>
37         <dependency>
38             <groupId>org.openapitools</groupId>
39             <artifactId>jackson-databind-nullable</artifactId>
40             <version>0.2.6</version>
41         </dependency>
42         <dependency>
43             <groupId>org.springframework.boot</groupId>
44             <artifactId>spring-boot-starter-test</artifactId>
45             <scope>test</scope>
46         </dependency>
47         <dependency>
48             <groupId>org.apache.httpcomponents</groupId>
49             <artifactId>httpcore</artifactId>
50             <version>4.3.2</version>
51             <scope>test</scope>
52         </dependency>
53     </dependencies>
54
55     <build>
56         <plugins>
57             <plugin>
58                 <groupId>org.codehaus.mojo</groupId>
59                 <artifactId>exec-maven-plugin</artifactId>
60                 <version>${exec-maven-plugin.version}</version>
61                 <executions>
62                     <execution>
63                         <id>git submodule update</id>
64                         <phase>initialize</phase>
65                         <configuration>
66                             <executable>git</executable>
67                             <arguments>
68                                 <argument>submodule</argument>
69                                 <argument>update</argument>
70                                 <argument>--init</argument>
71                                 <argument>--recursive</argument>
72                             </arguments>
73                         </configuration>
74                         <goals>
75                             <goal>exec</goal>
76                         </goals>
77                     </execution>
78                     <execution>
79                         <id>initialize-sme-openapi-specs</id>
80                         <phase>initialize</phase>
81                         <goals>
82                             <goal>exec</goal>
83                         </goals>
84                         <configuration>
85                             <executable>bash</executable>
86                             <arguments>
87                                 <argument>../scripts/init/init-sme-spec.sh</argument>
88                             </arguments>
89                         </configuration>
90                     </execution>
91                 </executions>
92             </plugin>
93             <plugin>
94                 <groupId>org.openapitools</groupId>
95                 <artifactId>openapi-generator-maven-plugin</artifactId>
96                 <version>${openapi.maven.version}</version>
97                 <executions>
98                     <execution>
99                         <id>provider-spec-generator</id>
100                         <goals>
101                             <goal>generate</goal>
102                         </goals>
103                         <configuration>
104                             <inputSpec>
105                                 rapp-manager-sme/src/main/resources/openapi/TS29222_CAPIF_API_Provider_Management_API.yaml
106                             </inputSpec>
107                             <generatorName>java</generatorName>
108                             <library>resttemplate</library>
109                             <generateApiTests>false</generateApiTests>
110                             <generateModelTests>false</generateModelTests>
111                             <generateApiDocumentation>false</generateApiDocumentation>
112                             <generateModelDocumentation>false</generateModelDocumentation>
113                             <generateModels>true</generateModels>
114                             <additionalProperties>
115                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
116                             </additionalProperties>
117                             <configOptions>
118                                 <sourceFolder>src/main/java</sourceFolder>
119                                 <useJakartaEe>true</useJakartaEe>
120                                 <invokerPackage>com.oransc.rappmanager.sme.provider</invokerPackage>
121                                 <apiPackage>com.oransc.rappmanager.sme.provider.rest</apiPackage>
122                                 <modelPackage>com.oransc.rappmanager.sme.provider.data</modelPackage>
123                                 <generateClientAsBean>false</generateClientAsBean>
124                             </configOptions>
125                         </configuration>
126                     </execution>
127                     <execution>
128                         <id>publish-service-spec-generator</id>
129                         <goals>
130                             <goal>generate</goal>
131                         </goals>
132                         <configuration>
133                             <inputSpec>
134                                 rapp-manager-sme/src/main/resources/openapi/TS29222_CAPIF_Publish_Service_API.yaml
135                             </inputSpec>
136                             <generatorName>java</generatorName>
137                             <library>resttemplate</library>
138                             <generateApiTests>false</generateApiTests>
139                             <generateModelTests>false</generateModelTests>
140                             <generateApiDocumentation>false</generateApiDocumentation>
141                             <generateModelDocumentation>false</generateModelDocumentation>
142                             <generateModels>true</generateModels>
143                             <additionalProperties>
144                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
145                             </additionalProperties>
146                             <configOptions>
147                                 <sourceFolder>src/main/java</sourceFolder>
148                                 <useJakartaEe>true</useJakartaEe>
149                                 <invokerPackage>com.oransc.rappmanager.sme.publishservice</invokerPackage>
150                                 <apiPackage>com.oransc.rappmanager.sme.publishservice.rest</apiPackage>
151                                 <modelPackage>com.oransc.rappmanager.sme.publishservice.data</modelPackage>
152                                 <generateClientAsBean>false</generateClientAsBean>
153                             </configOptions>
154                         </configuration>
155                     </execution>
156                     <execution>
157                         <id>invoker-spec-generator</id>
158                         <goals>
159                             <goal>generate</goal>
160                         </goals>
161                         <configuration>
162                             <inputSpec>
163                                 rapp-manager-sme/src/main/resources/openapi/TS29222_CAPIF_API_Invoker_Management_API.yaml
164                             </inputSpec>
165                             <generatorName>java</generatorName>
166                             <library>resttemplate</library>
167                             <generateApiTests>false</generateApiTests>
168                             <generateModelTests>false</generateModelTests>
169                             <generateApiDocumentation>false</generateApiDocumentation>
170                             <generateModelDocumentation>false</generateModelDocumentation>
171                             <generateModels>true</generateModels>
172                             <additionalProperties>
173                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
174                             </additionalProperties>
175                             <configOptions>
176                                 <sourceFolder>src/main/java</sourceFolder>
177                                 <useJakartaEe>true</useJakartaEe>
178                                 <invokerPackage>com.oransc.rappmanager.sme.invoker</invokerPackage>
179                                 <apiPackage>com.oransc.rappmanager.sme.invoker.rest</apiPackage>
180                                 <modelPackage>com.oransc.rappmanager.sme.invoker.data</modelPackage>
181                                 <generateClientAsBean>false</generateClientAsBean>
182                             </configOptions>
183                         </configuration>
184                     </execution>
185                 </executions>
186             </plugin>
187         </plugins>
188     </build>
189 </project>