blob: 1e9db85994838c7c7b1fa5003ee4d5eacb026410 [file] [log] [blame]
k.kedron431dd572021-03-17 09:09:29 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright (C) 2021 Samsung Electronics
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~ http://www.apache.org/licenses/LICENSE-2.0
8 ~ Unless required by applicable law or agreed to in writing, software
9 ~ distributed under the License is distributed on an "AS IS" BASIS,
10 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 ~ See the License for the specific language governing permissions and
12 ~ limitations under the License
13 -->
14
15<project xmlns="http://maven.apache.org/POM/4.0.0"
16 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
17 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
18 <modelVersion>4.0.0</modelVersion>
19 <groupId>org.onap.a1pesimulator</groupId>
20 <artifactId>a1-pe-simulator</artifactId>
21 <version>1.0-SNAPSHOT</version>
22 <packaging>jar</packaging>
23
24 <parent>
25 <groupId>org.springframework.boot</groupId>
26 <artifactId>spring-boot-starter-parent</artifactId>
27 <version>2.3.0.RELEASE</version>
28 <relativePath/>
29 </parent>
30
31 <dependencies>
32 <dependency>
33 <groupId>org.springframework.boot</groupId>
34 <artifactId>spring-boot-starter-web</artifactId>
35 </dependency>
36 <dependency>
37 <groupId>org.springframework.boot</groupId>
38 <artifactId>spring-boot-starter-cache</artifactId>
39 </dependency>
40 <dependency>
41 <groupId>org.springframework.boot</groupId>
42 <artifactId>spring-boot-starter-websocket</artifactId>
43 </dependency>
44 <dependency>
45 <groupId>com.github.ben-manes.caffeine</groupId>
46 <artifactId>caffeine</artifactId>
47 </dependency>
48 <dependency>
49 <groupId>org.springframework.boot</groupId>
50 <artifactId>spring-boot-starter-test</artifactId>
51 <scope>test</scope>
52 </dependency>
53
54 <dependency>
55 <groupId>org.projectlombok</groupId>
56 <artifactId>lombok</artifactId>
57 <scope>provided</scope>
58 </dependency>
59
60 <dependency>
61 <groupId>org.apache.tomcat.embed</groupId>
62 <artifactId>tomcat-embed-jasper</artifactId>
63 </dependency>
64
65 <dependency>
66 <groupId>org.springframework.boot</groupId>
67 <artifactId>spring-boot-devtools</artifactId>
68 </dependency>
69
70 <dependency>
71 <groupId>org.apache.httpcomponents</groupId>
72 <artifactId>httpclient</artifactId>
73 </dependency>
74 <dependency>
75 <groupId>io.springfox</groupId>
76 <artifactId>springfox-swagger2</artifactId>
77 <version>2.9.2</version>
78 </dependency>
79 <dependency>
80 <groupId>io.springfox</groupId>
81 <artifactId>springfox-swagger-ui</artifactId>
82 <version>2.9.2</version>
83 </dependency>
84 <dependency>
85 <groupId>javax.xml.bind</groupId>
86 <artifactId>jaxb-api</artifactId>
87 <version>2.3.0</version>
88 </dependency>
89 </dependencies>
90
91 <properties>
92 <java.version>11</java.version>
Grzegorz Wielgosinskiead55732021-03-24 13:24:05 +010093 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
94 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
95 <skipDockerPush>true</skipDockerPush>
96 <docker.registry>nexus3.onap.org:10003</docker.registry>
97 <docker-maven-plugin.version>0.31.0</docker-maven-plugin.version>
98 <docker-image.namespace>onap</docker-image.namespace>
99 <docker-image.name.prefix>org.onap.a1pesimulator</docker-image.name.prefix>
k.kedron431dd572021-03-17 09:09:29 +0100100 </properties>
101
102 <build>
103 <plugins>
104 <plugin>
105 <groupId>org.jacoco</groupId>
106 <artifactId>jacoco-maven-plugin</artifactId>
107 <version>0.8.4</version>
108 <executions>
109 <execution>
110 <id>prepare-agent</id>
111 <goals>
112 <goal>prepare-agent</goal>
113 </goals>
114 </execution>
115 <execution>
116 <id>report</id>
117 <phase>prepare-package</phase>
118 <goals>
119 <goal>report</goal>
120 </goals>
121 </execution>
122 </executions>
123 </plugin>
124 <plugin>
125 <groupId>org.springframework.boot</groupId>
126 <artifactId>spring-boot-maven-plugin</artifactId>
127 </plugin>
128 <plugin>
129 <groupId>org.apache.maven.plugins</groupId>
130 <artifactId>maven-dependency-plugin</artifactId>
131 </plugin>
132 <plugin>
133 <artifactId>maven-resources-plugin</artifactId>
134 </plugin>
k.kedron5ea372b2021-03-17 09:28:59 +0100135 <plugin>
136 <groupId>com.github.kongchen</groupId>
137 <artifactId>swagger-maven-plugin</artifactId>
138 <version>3.1.7</version>
139 <configuration>
140 <apiSources>
141 <apiSource>
142 <springmvc>true</springmvc>
143 <locations>org.onap.a1pesimulator</locations>
144 <schemes>http</schemes>
145 <host>localhost:9998</host>
146 <basePath>/</basePath>
147 <info>
148 <title> A1 Policy Enforcement Simulator REST APIs (Policy Enforcement PoC) </title>
149 <version>${project.version}</version>
150 <description>
151 This interface supports the A1-P OSC_2.1.0 API also provides internal API to managed the RAN elements (Cells, Ues) and allows to customized the send VES Events
152 </description>
153 <license>
154 <name>Copyright (C) 2021 Samsung Electronics</name>
155 </license>
156 </info>
157 <swaggerDirectory>${basedir}/doc/swagger/</swaggerDirectory>
158 <swaggerFileName>a1-pe-simulator-spec</swaggerFileName>
159 <templatePath>${basedir}/doc/swagger/templates/strapdown.html.hbs</templatePath>
160 <outputPath>${basedir}/doc/swagger/html/a1-pe-simulator-api.html</outputPath>
161 </apiSource>
162 </apiSources>
163 </configuration>
164 <executions>
165 <execution>
166 <phase>package</phase>
167 <goals>
168 <goal>generate</goal>
169 </goals>
170 </execution>
171 </executions>
172 </plugin>
Grzegorz Wielgosinskiead55732021-03-24 13:24:05 +0100173 <plugin>
174 <groupId>io.fabric8</groupId>
175 <artifactId>docker-maven-plugin</artifactId>
176 <version>${docker-maven-plugin.version}</version>
177 <executions>
178 <execution>
179 <id>docker-build-image</id>
180 <phase>package</phase>
181 <goals>
182 <goal>build</goal>
183 <goal>push</goal>
184 </goals>
185 </execution>
186 </executions>
187 <configuration>
188 <skipPush>${skipDockerPush}</skipPush>
189 <verbose>true</verbose>
190 <imagePullPolicy>IfNotPresent</imagePullPolicy>
191 <images>
192 <image>
193 <name>${docker-image.namespace}/${docker-image.name.prefix}.${project.artifactId}</name>
194 <registry>${docker.registry}</registry>
195 <build>
196 <tags>
197 <tag>${project.version}-${maven.build.timestamp}Z</tag>
198 </tags>
199 </build>
200 </image>
201 </images>
202 </configuration>
203 </plugin>
k.kedron431dd572021-03-17 09:09:29 +0100204 </plugins>
205 </build>
206
207</project>
Grzegorz Wielgosinskiead55732021-03-24 13:24:05 +0100208