Add initial version of code
[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     </dependencies>
43
44     <build>
45         <plugins>
46             <plugin>
47                 <groupId>org.codehaus.mojo</groupId>
48                 <artifactId>exec-maven-plugin</artifactId>
49                 <version>${exec-maven-plugin.version}</version>
50                 <executions>
51                     <execution>
52                         <id>git submodule update</id>
53                         <phase>initialize</phase>
54                         <configuration>
55                             <executable>git</executable>
56                             <arguments>
57                                 <argument>submodule</argument>
58                                 <argument>update</argument>
59                                 <argument>--init</argument>
60                                 <argument>--recursive</argument>
61                             </arguments>
62                         </configuration>
63                         <goals>
64                             <goal>exec</goal>
65                         </goals>
66                     </execution>
67                     <execution>
68                         <id>initialize-sme-openapi-specs</id>
69                         <phase>initialize</phase>
70                         <goals>
71                             <goal>exec</goal>
72                         </goals>
73                         <configuration>
74                             <executable>bash</executable>
75                             <arguments>
76                                 <argument>../scripts/init/init-sme-spec.sh</argument>
77                             </arguments>
78                         </configuration>
79                     </execution>
80                 </executions>
81             </plugin>
82             <plugin>
83                 <groupId>org.openapitools</groupId>
84                 <artifactId>openapi-generator-maven-plugin</artifactId>
85                 <version>${openapi.maven.version}</version>
86                 <executions>
87                     <execution>
88                         <id>provider-spec-generator</id>
89                         <goals>
90                             <goal>generate</goal>
91                         </goals>
92                         <configuration>
93                             <inputSpec>
94                                 rapp-manager-sme/src/main/resources/openapi/TS29222_CAPIF_API_Provider_Management_API.yaml
95                             </inputSpec>
96                             <generatorName>java</generatorName>
97                             <library>resttemplate</library>
98                             <generateApiTests>false</generateApiTests>
99                             <generateModelTests>false</generateModelTests>
100                             <generateApiDocumentation>false</generateApiDocumentation>
101                             <generateModelDocumentation>false</generateModelDocumentation>
102                             <generateModels>true</generateModels>
103                             <additionalProperties>
104                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
105                             </additionalProperties>
106                             <configOptions>
107                                 <sourceFolder>src/main/java</sourceFolder>
108                                 <useJakartaEe>true</useJakartaEe>
109                                 <invokerPackage>com.oransc.rappmanager.sme.provider</invokerPackage>
110                                 <apiPackage>com.oransc.rappmanager.sme.provider.rest</apiPackage>
111                                 <modelPackage>com.oransc.rappmanager.sme.provider.data</modelPackage>
112                                 <generateClientAsBean>false</generateClientAsBean>
113                             </configOptions>
114                         </configuration>
115                     </execution>
116                     <execution>
117                         <id>publish-service-spec-generator</id>
118                         <goals>
119                             <goal>generate</goal>
120                         </goals>
121                         <configuration>
122                             <inputSpec>
123                                 rapp-manager-sme/src/main/resources/openapi/TS29222_CAPIF_Publish_Service_API.yaml
124                             </inputSpec>
125                             <generatorName>java</generatorName>
126                             <library>resttemplate</library>
127                             <generateApiTests>false</generateApiTests>
128                             <generateModelTests>false</generateModelTests>
129                             <generateApiDocumentation>false</generateApiDocumentation>
130                             <generateModelDocumentation>false</generateModelDocumentation>
131                             <generateModels>true</generateModels>
132                             <additionalProperties>
133                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
134                             </additionalProperties>
135                             <configOptions>
136                                 <sourceFolder>src/main/java</sourceFolder>
137                                 <useJakartaEe>true</useJakartaEe>
138                                 <invokerPackage>com.oransc.rappmanager.sme.publishservice</invokerPackage>
139                                 <apiPackage>com.oransc.rappmanager.sme.publishservice.rest</apiPackage>
140                                 <modelPackage>com.oransc.rappmanager.sme.publishservice.data</modelPackage>
141                                 <generateClientAsBean>false</generateClientAsBean>
142                             </configOptions>
143                         </configuration>
144                     </execution>
145                     <execution>
146                         <id>invoker-spec-generator</id>
147                         <goals>
148                             <goal>generate</goal>
149                         </goals>
150                         <configuration>
151                             <inputSpec>
152                                 rapp-manager-sme/src/main/resources/openapi/TS29222_CAPIF_API_Invoker_Management_API.yaml
153                             </inputSpec>
154                             <generatorName>java</generatorName>
155                             <library>resttemplate</library>
156                             <generateApiTests>false</generateApiTests>
157                             <generateModelTests>false</generateModelTests>
158                             <generateApiDocumentation>false</generateApiDocumentation>
159                             <generateModelDocumentation>false</generateModelDocumentation>
160                             <generateModels>true</generateModels>
161                             <additionalProperties>
162                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
163                             </additionalProperties>
164                             <configOptions>
165                                 <sourceFolder>src/main/java</sourceFolder>
166                                 <useJakartaEe>true</useJakartaEe>
167                                 <invokerPackage>com.oransc.rappmanager.sme.invoker</invokerPackage>
168                                 <apiPackage>com.oransc.rappmanager.sme.invoker.rest</apiPackage>
169                                 <modelPackage>com.oransc.rappmanager.sme.invoker.data</modelPackage>
170                                 <generateClientAsBean>false</generateClientAsBean>
171                             </configOptions>
172                         </configuration>
173                     </execution>
174                 </executions>
175             </plugin>
176         </plugins>
177     </build>
178 </project>