1 <?xml version="1.0" encoding="UTF-8"?>
3 * ============LICENSE_START=======================================================
5 * ================================================================================
6 * Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END============================================
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>
28 <groupId>org.o-ran-sc.oam</groupId>
29 <artifactId>ves-nf-oam-adopter-parent</artifactId>
30 <version>1.0.0-SNAPSHOT</version>
31 <relativePath>../ves-nf-oam-adopter-parent/pom.xml</relativePath>
34 <artifactId>ves-nf-oam-adopter-app</artifactId>
37 <minimum.coverage>0.18</minimum.coverage>
38 <!--Plugins properties-->
39 <swagger-codegen-maven-plugin.version>3.0.25</swagger-codegen-maven-plugin.version>
40 <!--Image properties-->
41 <image.name>ves-nf-oam-adopter</image.name>
46 <groupId>${project.groupId}</groupId>
47 <artifactId>ves-nf-oam-adopter-api</artifactId>
50 <groupId>${project.groupId}</groupId>
51 <artifactId>ves-nf-oam-adopter-event-notifier</artifactId>
54 <groupId>${project.groupId}</groupId>
55 <artifactId>ves-nf-oam-adopter-snmp-manager</artifactId>
58 <groupId>${project.groupId}</groupId>
59 <artifactId>ves-nf-oam-adopter-pm-manager</artifactId>
62 <groupId>${project.groupId}</groupId>
63 <artifactId>ves-nf-oam-adopter-pm-sb-rest-client</artifactId>
66 <groupId>org.springframework.boot</groupId>
67 <artifactId>spring-boot-starter-web</artifactId>
70 <groupId>org.springframework.boot</groupId>
71 <artifactId>spring-boot-starter-security</artifactId>
74 <groupId>org.springframework.boot</groupId>
75 <artifactId>spring-boot-starter-actuator</artifactId>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-validation</artifactId>
82 <groupId>org.springframework.boot</groupId>
83 <artifactId>spring-boot-starter-log4j2</artifactId>
86 <groupId>org.apache.httpcomponents.client5</groupId>
87 <artifactId>httpclient5</artifactId>
90 <groupId>io.swagger.core.v3</groupId>
91 <artifactId>swagger-annotations</artifactId>
98 <groupId>org.springframework.boot</groupId>
99 <artifactId>spring-boot-maven-plugin</artifactId>
101 <!-- Swagger code generation. -->
103 <groupId>io.swagger.codegen.v3</groupId>
104 <artifactId>swagger-codegen-maven-plugin</artifactId>
105 <version>${swagger-codegen-maven-plugin.version}</version>
109 <goal>generate</goal>
112 <inputSpec>${project.basedir}/docs/api/swagger/openapi.yaml</inputSpec>
113 <invokerPackage>org.o.ran.oam.nf.oam.adopter.app.controller</invokerPackage>
114 <modelPackage>org.o.ran.oam.nf.oam.adopter.model</modelPackage>
115 <apiPackage>org.o.ran.oam.nf.oam.adopter.api</apiPackage>
116 <language>spring</language>
117 <generateSupportingFiles>false</generateSupportingFiles>
119 <sourceFolder>src/gen/java</sourceFolder>
120 <dateLibrary>java11</dateLibrary>
121 <interfaceOnly>true</interfaceOnly>
122 <useTags>true</useTags>
123 <serializableModel>true</serializableModel>
136 <activeByDefault>false</activeByDefault>
141 <groupId>io.fabric8</groupId>
142 <artifactId>docker-maven-plugin</artifactId>
143 <version>0.34.1</version>
144 <extensions>true</extensions>
146 <verbose>true</verbose>
149 <name>${nexus.repository}${image.name}</name>
151 <from>${base.image}</from>
153 <tag>${project.version}</tag>
155 <workdir>${image.workdir}</workdir>
160 <args>${project.artifactId}-${project.version}.jar</args>
164 <basedir>${image.workdir}</basedir>
168 <useProjectArtifact>true</useProjectArtifact>
170 <include>${project.groupId}:${project.artifactId}</include>
172 <outputFileNameMapping>${project.build.finalName}.jar</outputFileNameMapping>
177 <source>${base.config}application.yml</source>
178 <outputDirectory>.</outputDirectory>
179 <destName>application.yml</destName>
182 <source>${base.config}fm-ves-message-mapping.yaml</source>
183 <outputDirectory>./mapping-configuration</outputDirectory>
184 <destName>fm-ves-message-mapping.yaml</destName>
187 <source>${base.config}pm-ves-message-mapping.yaml</source>
188 <outputDirectory>./mapping-configuration</outputDirectory>
189 <destName>pm-ves-message-mapping.yaml</destName>
192 <source>${base.config}log4j2.yml</source>
195 <source>${base.config}/ssl/nf-oam-adopter-keystore.jks</source>
196 <outputDirectory>./ssl</outputDirectory>
197 <destName>nf-oam-adopter-keystore.jks</destName>
200 <source>${base.config}/ssl/nf-oam-adopter-truststore.jks</source>
201 <outputDirectory>./ssl</outputDirectory>
202 <destName>nf-oam-adopter-truststore.jks</destName>
213 <id>build-docker-image</id>
214 <phase>package</phase>
221 <phase>deploy</phase>