NoOp to trigger image generation for staging/release
[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.1.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-security</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>io.micrometer</groupId>
62             <artifactId>micrometer-registry-prometheus</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.projectlombok</groupId>
66             <artifactId>lombok</artifactId>
67             <optional>true</optional>
68         </dependency>
69         <dependency>
70             <groupId>org.openapitools</groupId>
71             <artifactId>jackson-databind-nullable</artifactId>
72             <version>${openapi.jackson.databind.nullable.version}</version>
73         </dependency>
74         <dependency>
75             <groupId>org.springframework.boot</groupId>
76             <artifactId>spring-boot-starter-test</artifactId>
77             <scope>test</scope>
78         </dependency>
79     </dependencies>
80
81     <build>
82         <plugins>
83             <plugin>
84                 <groupId>org.springframework.boot</groupId>
85                 <artifactId>spring-boot-maven-plugin</artifactId>
86                 <executions>
87                     <execution>
88                         <goals>
89                             <goal>repackage</goal>
90                         </goals>
91                         <phase>package</phase>
92                     </execution>
93                 </executions>
94             </plugin>
95             <plugin>
96                 <groupId>org.openapitools</groupId>
97                 <artifactId>openapi-generator-maven-plugin</artifactId>
98                 <version>${openapi.maven.version}</version>
99                 <executions>
100                     <execution>
101                         <id>dme-participant-spec-generator</id>
102                         <goals>
103                             <goal>generate</goal>
104                         </goals>
105                         <configuration>
106                             <inputSpec>${project.parent.basedir}/../openapi/dme/ics-api.yaml</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.participant.dme</invokerPackage>
121                                 <apiPackage>com.oransc.participant.dme.rest</apiPackage>
122                                 <modelPackage>com.oransc.participant.dme.data</modelPackage>
123                                 <generateClientAsBean>false</generateClientAsBean>
124                             </configOptions>
125                         </configuration>
126                     </execution>
127                 </executions>
128             </plugin>
129             <plugin>
130                 <groupId>io.fabric8</groupId>
131                 <artifactId>docker-maven-plugin</artifactId>
132                 <version>${docker-maven-plugin}</version>
133                 <inherited>false</inherited>
134                 <executions>
135                     <execution>
136                         <id>generate-nonrtric-plt-participant-impl-dme-image</id>
137                         <phase>package</phase>
138                         <goals>
139                             <goal>build</goal>
140                         </goals>
141                         <configuration>
142                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
143                             <images>
144                                 <image>
145                                     <name>
146                                         o-ran-sc/nonrtric-plt-participant-impl-dme:${project.version}
147                                     </name>
148                                     <build>
149                                         <cleanup>try</cleanup>
150                                         <contextDir>${project.basedir}</contextDir>
151                                         <dockerFile>Dockerfile</dockerFile>
152                                         <args>
153                                             <JAR>${project.build.finalName}.jar</JAR>
154                                         </args>
155                                         <tags>
156                                             <tag>${project.version}</tag>
157                                             <tag>latest</tag>
158                                         </tags>
159                                     </build>
160                                 </image>
161                             </images>
162                         </configuration>
163                     </execution>
164                     <execution>
165                         <id>push-nonrtric-plt-participant-impl-dme-image</id>
166                         <goals>
167                             <goal>push</goal>
168                         </goals>
169                         <configuration>
170                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
171                             <images>
172                                 <image>
173                                     <name>
174                                         o-ran-sc/nonrtric-plt-participant-impl-dme:${project.version}
175                                     </name>
176                                     <build>
177                                         <contextDir>${project.basedir}</contextDir>
178                                         <dockerFile>Dockerfile</dockerFile>
179                                         <args>
180                                             <JAR>${project.build.finalName}.jar</JAR>
181                                         </args>
182                                         <tags>
183                                             <tag>${project.version}</tag>
184                                             <tag>latest</tag>
185                                         </tags>
186                                     </build>
187                                 </image>
188                             </images>
189                         </configuration>
190                     </execution>
191                 </executions>
192             </plugin>
193         </plugins>
194     </build>
195 </project>