1 <?xml version="1.0" encoding="UTF-8"?>
3 ========================LICENSE_START=================================
6 Copyright (C) 2019 AT&T Intellectual Property
7 Modifications Copyright (C) 2020 Nordix Foundation
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
13 http://www.apache.org/licenses/LICENSE-2.0
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===================================
23 xmlns="http://maven.apache.org/POM/4.0.0"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.o-ran-sc.portal.nonrtric.controlpanel</groupId>
29 <artifactId>nonrtric-controlpanel-parent</artifactId>
30 <version>2.0.0-SNAPSHOT</version>
32 <artifactId>nonrtric-controlpanel-be</artifactId>
33 <name>Non-RT RIC Control Panel Webapp backend</name>
35 <epsdk-fw.version>2.6.0</epsdk-fw.version>
36 <springfox.version>2.9.2</springfox.version>
37 <immutable.version>2.7.1</immutable.version>
38 <apache-axis2.version>1.7.9</apache-axis2.version>
39 <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version>
40 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
41 <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
42 <docker-maven-plugin.version>0.33.0</docker-maven-plugin.version>
43 <json.version>20190722</json.version>
44 <!-- Set by Jenkins -->
45 <build.number>0</build.number>
49 <id>onap-releases</id>
50 <name>ONAP - Release Repository</name>
51 <url>https://nexus.onap.org/content/repositories/releases</url>
56 <groupId>org.springframework.boot</groupId>
57 <artifactId>spring-boot-starter-web</artifactId>
60 <groupId>org.springframework.boot</groupId>
61 <artifactId>spring-boot-starter-webflux</artifactId>
64 <groupId>org.slf4j</groupId>
65 <artifactId>slf4j-api</artifactId>
68 <groupId>org.apache.axis2</groupId>
69 <artifactId>axis2-kernel</artifactId>
70 <version>${apache-axis2.version}</version>
73 <groupId>org.projectlombok</groupId>
74 <artifactId>lombok</artifactId>
75 <scope>provided</scope>
77 <!-- Bridge uses of Apache commons logging, like EPSDK-FW -->
79 <groupId>org.slf4j</groupId>
80 <artifactId>jcl-over-slf4j</artifactId>
83 <groupId>ch.qos.logback</groupId>
84 <artifactId>logback-classic</artifactId>
87 <groupId>ch.qos.logback</groupId>
88 <artifactId>logback-core</artifactId>
91 <groupId>io.springfox</groupId>
92 <artifactId>springfox-swagger2</artifactId>
93 <version>${springfox.version}</version>
96 <groupId>io.springfox</groupId>
97 <artifactId>springfox-swagger-ui</artifactId>
98 <version>${springfox.version}</version>
101 <groupId>org.immutables</groupId>
102 <artifactId>value</artifactId>
103 <version>${immutable.version}</version>
104 <scope>provided</scope>
107 <groupId>org.immutables</groupId>
108 <artifactId>gson</artifactId>
109 <version>${immutable.version}</version>
112 <groupId>org.json</groupId>
113 <artifactId>json</artifactId>
114 <version>${json.version}</version>
116 <!-- Test dependencies -->
117 <!-- Mockito supports development, not just testing -->
119 <groupId>org.mockito</groupId>
120 <artifactId>mockito-core</artifactId>
124 <groupId>org.springframework.boot</groupId>
125 <artifactId>spring-boot-starter-test</artifactId>
129 <groupId>org.junit.jupiter</groupId>
130 <artifactId>junit-jupiter-api</artifactId>
134 <groupId>org.junit.jupiter</groupId>
135 <artifactId>junit-jupiter-engine</artifactId>
139 <groupId>org.junit.platform</groupId>
140 <artifactId>junit-platform-launcher</artifactId>
144 <groupId>io.projectreactor</groupId>
145 <artifactId>reactor-test</artifactId>
149 <groupId>com.squareup.okhttp3</groupId>
150 <artifactId>mockwebserver</artifactId>
157 <groupId>org.codehaus.mojo</groupId>
158 <artifactId>build-helper-maven-plugin</artifactId>
162 <phase>generate-sources</phase>
164 <goal>add-source</goal>
168 <source>${project.build.directory}/generated-sources/annotations/</source>
175 <groupId>org.springframework.boot</groupId>
176 <artifactId>spring-boot-maven-plugin</artifactId>
179 <groupId>net.revelc.code.formatter</groupId>
180 <artifactId>formatter-maven-plugin</artifactId>
181 <version>${formatter-maven-plugin.version}</version>
183 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
185 <!-- https://code.revelc.net/formatter-maven-plugin/ use
186 mvn formatter:format spotless:apply process-sources -->
189 <groupId>com.diffplug.spotless</groupId>
190 <artifactId>spotless-maven-plugin</artifactId>
191 <version>${spotless-maven-plugin.version}</version>
194 <removeUnusedImports />
196 <order>com,java,javax,org</order>
200 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
201 use mvn spotless:apply to rewrite source files use mvn spotless:check to
202 validate source files -->
204 <!-- Add the build number to the jar manifest. Spring-Boot uses a complex
205 packaging process that makes access to the original Manifest.MF very difficult.
206 However, Java provides access to the implementation version for a package,
207 so cram the build number into there. -->
209 <groupId>org.apache.maven.plugins</groupId>
210 <artifactId>maven-jar-plugin</artifactId>
214 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
217 <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
223 <artifactId>maven-resources-plugin</artifactId>
226 <id>copy-resources</id>
227 <phase>validate</phase>
229 <goal>copy-resources</goal>
232 <outputDirectory>${project.build.directory}/classes/resources/</outputDirectory>
235 <directory>${project.parent.basedir}/webapp-frontend/dist/controlpanelApp/</directory>
242 <!-- do not deploy a jar or pom file -->
244 <groupId>org.apache.maven.plugins</groupId>
245 <artifactId>maven-deploy-plugin</artifactId>
251 <groupId>org.jacoco</groupId>
252 <artifactId>jacoco-maven-plugin</artifactId>
253 <version>${jacoco-maven-plugin.version}</version>
256 <id>default-prepare-agent</id>
258 <goal>prepare-agent</goal>
262 <id>default-report</id>
263 <phase>prepare-package</phase>
270 <!-- https://stackoverflow.com/questions/39126226/fabric8-springboot-full-example -->
272 <groupId>io.fabric8</groupId>
273 <artifactId>docker-maven-plugin</artifactId>
274 <version>${docker-maven-plugin.version}</version>
276 <verbose>true</verbose>
277 <!-- environment variables supplied by Jenkins -->
278 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
279 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
282 <!-- Specify a tag to avoid default tag "latest" -->
283 <!-- Avoid maven artifact name here -->
284 <name>o-ran-sc/nonrtric-controlpanel:${project.version}</name>
286 <from>openjdk:11-jre-slim</from>
288 <!-- Add tag with build number -->
289 <tag>${project.version}</tag>
292 <descriptorRef>artifact</descriptorRef>
295 <!-- Ensure logs dir exists and is world writable -->
296 <runCmd>mkdir /logs</runCmd>
297 <runCmd>chmod -R 777 /logs</runCmd>
300 <!-- Include maven dir on classpath for prop files -->
306 <arg>maven:maven/${project.artifactId}-${project.version}.${project.packaging}</arg>
307 <arg>-Dloader.main=org.oransc.portal.nonrtric.controlpanel.ControlPanelApplication</arg>
308 <arg>-Djava.security.egd=file:/dev/./urandom</arg>
309 <arg>org.springframework.boot.loader.PropertiesLauncher</arg>
316 <!-- build Docker images in install phase, push in deploy phase -->