1 <?xml version="1.0" encoding="UTF-8"?>
6 ========================LICENSE_START=================================
9 Copyright (C) 2019 AT&T Intellectual Property
11 Licensed under the Apache License, Version 2.0 (the "License");
12 you may not use this file except in compliance with the License.
13 You may obtain a copy of the License at
15 http://www.apache.org/licenses/LICENSE-2.0
17 Unless required by applicable law or agreed to in writing, software
18 distributed under the License is distributed on an "AS IS" BASIS,
19 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 See the License for the specific language governing permissions and
21 limitations under the License.
22 ========================LICENSE_END===================================
25 xmlns="http://maven.apache.org/POM/4.0.0"
26 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
27 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
28 <modelVersion>4.0.0</modelVersion>
30 <groupId>org.o-ran-sc.nonrt.ric-dashboard</groupId>
31 <artifactId>ric-dash-parent</artifactId>
32 <version>1.0.0-SNAPSHOT</version>
34 <artifactId>ric-dash-be</artifactId>
35 <name>NonRT RIC Dashboard Webapp backend</name>
37 <springfox.version>2.9.2</springfox.version>
38 <immutable.version>2.7.1</immutable.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 <!-- Set by Jenkins -->
42 <build.number>0</build.number>
46 <id>onap-releases</id>
47 <name>ONAP - Release Repository</name>
48 <url>https://nexus.onap.org/content/repositories/releases</url>
52 <!-- Platform components -->
54 <groupId>org.onap.portal.sdk</groupId>
55 <artifactId>epsdk-fw</artifactId>
56 <version>2.6.0</version>
59 <groupId>commons-logging</groupId>
60 <artifactId>commons-logging</artifactId>
63 <groupId>log4j</groupId>
64 <artifactId>log4j</artifactId>
67 <groupId>log4j</groupId>
68 <artifactId>apache-log4j-extras</artifactId>
71 <groupId>org.slf4j</groupId>
72 <artifactId>slf4j-log4j12</artifactId>
75 <groupId>junit</groupId>
76 <artifactId>junit</artifactId>
79 <groupId>commons-fileupload</groupId>
80 <artifactId>commons-fileupload</artifactId>
83 <groupId>commons-beanutils</groupId>
84 <artifactId>commons-beanutils</artifactId>
86 <!-- EELF omits "test" scope on this dependency -->
88 <groupId>org.powermock</groupId>
89 <artifactId>powermock-module-junit4</artifactId>
91 <!-- EELF omits "test" scope on this dependency -->
93 <groupId>org.powermock</groupId>
94 <artifactId>powermock-api-mockito</artifactId>
99 <groupId>org.springframework.boot</groupId>
100 <artifactId>spring-boot-starter-security</artifactId>
103 <groupId>org.springframework.boot</groupId>
104 <artifactId>spring-boot-starter-web</artifactId>
107 <groupId>org.slf4j</groupId>
108 <artifactId>slf4j-api</artifactId>
110 <!-- Bridge uses of Apache commons logging, like EPSDK-FW -->
112 <groupId>org.slf4j</groupId>
113 <artifactId>jcl-over-slf4j</artifactId>
116 <groupId>ch.qos.logback</groupId>
117 <artifactId>logback-classic</artifactId>
120 <groupId>ch.qos.logback</groupId>
121 <artifactId>logback-core</artifactId>
124 <groupId>io.springfox</groupId>
125 <artifactId>springfox-swagger2</artifactId>
126 <version>${springfox.version}</version>
129 <groupId>io.springfox</groupId>
130 <artifactId>springfox-swagger-ui</artifactId>
131 <version>${springfox.version}</version>
134 <groupId>org.immutables</groupId>
135 <artifactId>value</artifactId>
136 <version>${immutable.version}</version>
137 <scope>provided</scope>
140 <groupId>org.immutables</groupId>
141 <artifactId>gson</artifactId>
142 <version>${immutable.version}</version>
144 <!-- Test dependencies -->
145 <!-- Mockito supports development, not just testing -->
147 <groupId>org.mockito</groupId>
148 <artifactId>mockito-core</artifactId>
152 <groupId>org.springframework.boot</groupId>
153 <artifactId>spring-boot-starter-test</artifactId>
157 <groupId>org.junit.jupiter</groupId>
158 <artifactId>junit-jupiter-api</artifactId>
162 <groupId>org.junit.jupiter</groupId>
163 <artifactId>junit-jupiter-engine</artifactId>
167 <groupId>org.junit.platform</groupId>
168 <artifactId>junit-platform-launcher</artifactId>
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 -->
205 <!-- Most configuration and all execution is inherited -->
206 <groupId>org.codehaus.mojo</groupId>
207 <artifactId>license-maven-plugin</artifactId>
213 <exclude>**/*.json</exclude>
217 <!-- Add the build number to the jar manifest. Spring-Boot uses a complex
218 packaging process that makes access to the original Manifest.MF very difficult.
219 However, Java provides access to the implementation version for a package,
220 so cram the build number into there. -->
222 <groupId>org.apache.maven.plugins</groupId>
223 <artifactId>maven-jar-plugin</artifactId>
227 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
230 <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
236 <artifactId>maven-resources-plugin</artifactId>
239 <id>copy-resources</id>
240 <phase>validate</phase>
242 <goal>copy-resources</goal>
245 <outputDirectory>${project.build.directory}/classes/resources/</outputDirectory>
248 <directory>${project.parent.basedir}/webapp-frontend/dist/dashApp/</directory>
255 <!-- do not deploy a jar or pom file -->
257 <groupId>org.apache.maven.plugins</groupId>
258 <artifactId>maven-deploy-plugin</artifactId>
264 <groupId>org.jacoco</groupId>
265 <artifactId>jacoco-maven-plugin</artifactId>
266 <version>0.8.4</version>
269 <id>default-prepare-agent</id>
271 <goal>prepare-agent</goal>
275 <id>default-report</id>
276 <phase>prepare-package</phase>
283 <!-- https://stackoverflow.com/questions/39126226/fabric8-springboot-full-example -->
285 <groupId>io.fabric8</groupId>
286 <artifactId>docker-maven-plugin</artifactId>
287 <version>0.30.0</version>
289 <verbose>true</verbose>
290 <!-- environment variables supplied by Jenkins -->
291 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
292 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
295 <!-- Specify a tag to avoid default tag "latest" -->
296 <!-- Avoid maven artifact name here -->
297 <name>o-ran-sc/nonrtric-dashboard:${project.version}</name>
299 <from>openjdk:11-jre-slim</from>
301 <!-- Add tag with build number -->
302 <tag>${project.version}</tag>
305 <descriptorRef>artifact</descriptorRef>
308 <!-- Ensure logs dir exists and is world writable -->
309 <runCmd>mkdir /logs</runCmd>
310 <runCmd>chmod -R 777 /logs</runCmd>
313 <!-- Include maven dir on classpath for prop files -->
319 <arg>maven:maven/${project.artifactId}-${project.version}.${project.packaging}</arg>
320 <arg>-Dloader.main=org.oransc.ric.portal.dashboard.DashboardApplication</arg>
321 <arg>-Djava.security.egd=file:/dev/./urandom</arg>
322 <arg>org.springframework.boot.loader.PropertiesLauncher</arg>
329 <!-- build Docker images in install phase, push in deploy phase -->