Merge "Adding new Simple consumer producer rapp packages"
[nonrtric/plt/rappmanager.git] / participants / participant-impl-dme / 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>participants</artifactId>
29         <version>0.2.0-SNAPSHOT</version>
30     </parent>
31
32     <groupId>org.o-ran-sc.nonrtric.plt.participants</groupId>
33     <artifactId>participant-impl-dme</artifactId>
34
35     <properties>
36         <maven.compiler.source>17</maven.compiler.source>
37         <maven.compiler.target>17</maven.compiler.target>
38         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39     </properties>
40
41     <dependencies>
42         <dependency>
43             <groupId>org.onap.policy.clamp.participant</groupId>
44             <artifactId>policy-clamp-participant-intermediary</artifactId>
45             <version>${onap.acm.models.version}</version>
46         </dependency>
47         <dependency>
48             <groupId>org.onap.policy.clamp</groupId>
49             <artifactId>policy-clamp-models</artifactId>
50             <version>${onap.acm.models.version}</version>
51         </dependency>
52         <dependency>
53             <groupId>org.springframework.boot</groupId>
54             <artifactId>spring-boot-starter-web</artifactId>
55         </dependency>
56         <dependency>
57             <groupId>org.springframework.boot</groupId>
58             <artifactId>spring-boot-starter-actuator</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>org.springframework.boot</groupId>
62             <artifactId>spring-boot-starter-security</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.springframework.boot</groupId>
66             <artifactId>spring-boot-starter-aop</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>io.micrometer</groupId>
70             <artifactId>micrometer-registry-prometheus</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>org.apache.httpcomponents</groupId>
74             <artifactId>httpcore</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>org.projectlombok</groupId>
78             <artifactId>lombok</artifactId>
79             <optional>true</optional>
80         </dependency>
81         <dependency>
82             <groupId>org.openapitools</groupId>
83             <artifactId>jackson-databind-nullable</artifactId>
84             <version>${openapi.jackson.databind.nullable.version}</version>
85         </dependency>
86         <dependency>
87             <groupId>org.springframework.boot</groupId>
88             <artifactId>spring-boot-starter-test</artifactId>
89             <scope>test</scope>
90         </dependency>
91     </dependencies>
92
93     <build>
94         <plugins>
95             <plugin>
96                 <groupId>org.springframework.boot</groupId>
97                 <artifactId>spring-boot-maven-plugin</artifactId>
98                 <executions>
99                     <execution>
100                         <goals>
101                             <goal>repackage</goal>
102                         </goals>
103                         <phase>package</phase>
104                     </execution>
105                 </executions>
106             </plugin>
107             <plugin>
108                 <groupId>org.openapitools</groupId>
109                 <artifactId>openapi-generator-maven-plugin</artifactId>
110                 <version>${openapi.maven.version}</version>
111                 <executions>
112                     <execution>
113                         <id>dme-participant-spec-generator</id>
114                         <goals>
115                             <goal>generate</goal>
116                         </goals>
117                         <configuration>
118                             <inputSpec>${project.parent.basedir}/../openapi/dme/ics-api.yaml</inputSpec>
119                             <generatorName>java</generatorName>
120                             <library>resttemplate</library>
121                             <generateApiTests>false</generateApiTests>
122                             <generateModelTests>false</generateModelTests>
123                             <generateApiDocumentation>false</generateApiDocumentation>
124                             <generateModelDocumentation>false</generateModelDocumentation>
125                             <generateModels>true</generateModels>
126                             <additionalProperties>
127                                 <additionalProperty>apiNameSuffix=ApiClient</additionalProperty>
128                             </additionalProperties>
129                             <configOptions>
130                                 <sourceFolder>src/main/java</sourceFolder>
131                                 <useJakartaEe>true</useJakartaEe>
132                                 <invokerPackage>com.oransc.participant.dme</invokerPackage>
133                                 <apiPackage>com.oransc.participant.dme.rest</apiPackage>
134                                 <modelPackage>com.oransc.participant.dme.data</modelPackage>
135                                 <generateClientAsBean>false</generateClientAsBean>
136                             </configOptions>
137                         </configuration>
138                     </execution>
139                 </executions>
140             </plugin>
141             <plugin>
142                 <groupId>io.fabric8</groupId>
143                 <artifactId>docker-maven-plugin</artifactId>
144                 <version>${docker-maven-plugin}</version>
145                 <inherited>false</inherited>
146                 <executions>
147                     <execution>
148                         <id>generate-nonrtric-plt-participant-impl-dme-image</id>
149                         <phase>package</phase>
150                         <goals>
151                             <goal>build</goal>
152                         </goals>
153                         <configuration>
154                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
155                             <images>
156                                 <image>
157                                     <name>
158                                         o-ran-sc/nonrtric-plt-participant-impl-dme:${project.version}
159                                     </name>
160                                     <build>
161                                         <cleanup>try</cleanup>
162                                         <contextDir>${project.basedir}</contextDir>
163                                         <dockerFile>Dockerfile</dockerFile>
164                                         <args>
165                                             <JAR>${project.build.finalName}.jar</JAR>
166                                         </args>
167                                         <tags>
168                                             <tag>${project.version}</tag>
169                                             <tag>latest</tag>
170                                         </tags>
171                                     </build>
172                                 </image>
173                             </images>
174                         </configuration>
175                     </execution>
176                     <execution>
177                         <id>push-nonrtric-plt-participant-impl-dme-image</id>
178                         <goals>
179                             <goal>push</goal>
180                         </goals>
181                         <configuration>
182                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
183                             <images>
184                                 <image>
185                                     <name>
186                                         o-ran-sc/nonrtric-plt-participant-impl-dme:${project.version}
187                                     </name>
188                                     <build>
189                                         <contextDir>${project.basedir}</contextDir>
190                                         <dockerFile>Dockerfile</dockerFile>
191                                         <args>
192                                             <JAR>${project.build.finalName}.jar</JAR>
193                                         </args>
194                                         <tags>
195                                             <tag>${project.version}</tag>
196                                             <tag>latest</tag>
197                                         </tags>
198                                     </build>
199                                 </image>
200                             </images>
201                         </configuration>
202                     </execution>
203                 </executions>
204             </plugin>
205         </plugins>
206     </build>
207 </project>