1 <?xml version="1.0" encoding="UTF-8"?>
3 ================================================================================
4 Copyright (c) 2020 Nokia. All rights reserved.
5 ================================================================================
6 Licensed under the Apache License, Version 2.0 (the "License"); you may not
7 use this file except in compliance with the License. You may obtain a copy
8 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
9 by applicable law or agreed to in writing, software distributed under the
10 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
11 OF ANY KIND, either express or implied. See the License for the specific
12 language governing permissions and limitations under the License.
13 ============LICENSE_END=========================================================
15 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
16 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
17 <modelVersion>4.0.0</modelVersion>
19 <groupId>org.onap.aaf.certservice</groupId>
20 <artifactId>aaf-certservice</artifactId>
21 <version>1.0.0-SNAPSHOT</version>
23 <artifactId>aaf-certservice-api</artifactId>
24 <version>1.0.0-SNAPSHOT</version>
25 <name>aaf-certservice-api</name>
26 <description>AAF Certification Service Api</description>
27 <packaging>jar</packaging>
30 <java.version>11</java.version>
31 <assertj-core.version>3.11.1</assertj-core.version>
32 <mockito-core.version>3.2.4</mockito-core.version>
33 <spring-core.version>5.2.3.RELEASE</spring-core.version>
34 <spring-boot-starter.version>2.2.4.RELEASE</spring-boot-starter.version>
35 <maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
36 <maven-surefire-plugin.version>3.0.0-M1</maven-surefire-plugin.version>
37 <spring-boot-starter-actuator.version>2.2.4.RELEASE</spring-boot-starter-actuator.version>
38 <spring-boot-starter-log4j2.version>2.1.5.RELEASE</spring-boot-starter-log4j2.version>
39 <springdoc-openapi-ui.version>1.2.21</springdoc-openapi-ui.version>
40 <bouncycastle.version>1.60</bouncycastle.version>
41 <docker-maven-plugin.version>0.33.0</docker-maven-plugin.version>
42 <docker.tag>${project.version}</docker.tag>
43 <springdoc-openapi-maven-plugin.apiDocsUrl>http://localhost:8080/v3/api-docs
44 </springdoc-openapi-maven-plugin.apiDocsUrl>
45 <docker-maven-plugin.image-name>onap/${project.artifactId}</docker-maven-plugin.image-name>
46 <springdoc-openapi-maven-plugin.version>0.2</springdoc-openapi-maven-plugin.version>
49 <dependencyManagement>
52 <!-- Import dependency management from Spring Boot -->
53 <groupId>org.springframework.boot</groupId>
54 <artifactId>spring-boot-dependencies</artifactId>
55 <version>${spring-boot-starter.version}</version>
60 </dependencyManagement>
64 <groupId>org.springframework.boot</groupId>
65 <artifactId>spring-boot-starter-web</artifactId>
66 <version>${spring-boot-starter.version}</version>
69 <groupId>org.springframework.boot</groupId>
70 <artifactId>spring-boot-starter-logging</artifactId>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-starter-log4j2</artifactId>
77 <version>${spring-boot-starter-log4j2.version}</version>
80 <groupId>org.springframework.boot</groupId>
81 <artifactId>spring-boot-starter-test</artifactId>
82 <version>${spring-boot-starter.version}</version>
86 <groupId>org.junit.vintage</groupId>
87 <artifactId>junit-vintage-engine</artifactId>
92 <groupId>org.mockito</groupId>
93 <artifactId>mockito-core</artifactId>
94 <version>${mockito-core.version}</version>
98 <groupId>org.assertj</groupId>
99 <artifactId>assertj-core</artifactId>
100 <version>${assertj-core.version}</version>
104 <groupId>org.springframework.boot</groupId>
105 <artifactId>spring-boot-starter-actuator</artifactId>
106 <version>${spring-boot-starter-actuator.version}</version>
109 <groupId>org.springdoc</groupId>
110 <artifactId>springdoc-openapi-ui</artifactId>
111 <version>${springdoc-openapi-ui.version}</version>
114 <groupId>org.bouncycastle</groupId>
115 <artifactId>bcpkix-jdk15on</artifactId>
116 <version>${bouncycastle.version}</version>
119 <groupId>org.bouncycastle</groupId>
120 <artifactId>bcprov-jdk15on</artifactId>
121 <version>${bouncycastle.version}</version>
129 <groupId>org.springframework.boot</groupId>
130 <artifactId>spring-boot-maven-plugin</artifactId>
131 <version>${spring-boot-starter.version}</version>
134 <artifactId>maven-javadoc-plugin</artifactId>
135 <version>${maven-javadoc-plugin.version}</version>
138 <groupId>org.apache.maven.plugins</groupId>
139 <artifactId>maven-surefire-plugin</artifactId>
140 <version>${maven-surefire-plugin.version}</version>
146 <groupId>org.springframework.boot</groupId>
147 <artifactId>spring-boot-maven-plugin</artifactId>
151 <goal>repackage</goal>
155 <id>pre-integration-test</id>
161 <id>post-integration-test</id>
169 <artifactId>maven-javadoc-plugin</artifactId>
172 <verbose>false</verbose>
173 <useStandardDocletOptions>false</useStandardDocletOptions>
174 <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
181 <goal>aggregate</goal>
185 <id>attach-javadoc</id>
193 <groupId>org.springdoc</groupId>
194 <artifactId>springdoc-openapi-maven-plugin</artifactId>
195 <version>${springdoc-openapi-maven-plugin.version}</version>
198 <phase>integration-test</phase>
200 <goal>generate</goal>
205 <apiDocsUrl>${springdoc-openapi-maven-plugin.apiDocsUrl}</apiDocsUrl>
206 <outputFileName>api-docs.json</outputFileName>
207 <outputDir>${project.build.directory}</outputDir>
215 <id>docker-staging</id>
217 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
218 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
225 <activeByDefault>false</activeByDefault>
230 <groupId>io.fabric8</groupId>
231 <artifactId>docker-maven-plugin</artifactId>
232 <version>${docker-maven-plugin.version}</version>
235 <id>clean-images</id>
236 <phase>pre-clean</phase>
241 <removeAll>true</removeAll>
242 <image>${docker-maven-plugin.image-name}</image>
246 <id>generate-images</id>
247 <phase>install</phase>
252 <!-- It has to be published on nexus firstly to uncomment integration tests-->
254 <!-- <id>start</id>-->
255 <!-- <phase>pre-integration-test</phase>-->
257 <!-- <goal>start</goal>-->
261 <!-- <id>stop</id>-->
262 <!-- <phase>post-integration-test</phase>-->
264 <!-- <goal>stop</goal>-->
269 <phase>deploy</phase>
274 <image>${docker-maven-plugin.image-name}</image>
279 <apiVersion>1.23</apiVersion>
280 <registry>nexus3.onap.org:10001</registry>
283 <username>docker</username>
284 <password>docker</password>
289 <name>${docker-maven-plugin.image-name}</name>
290 <alias>cert-service</alias>
292 <dockerFile>${project.basedir}/Dockerfile</dockerFile >
294 <tag>${docker.tag}</tag>
299 <port>8080:8080</port>
302 <!-- Check for this URL to return a 200 return code .... -->
303 <url>http://localhost:8080/actuator/health</url>
316 <distributionManagement>
318 <id>ecomp-releases</id>
319 <name>AAF Release Repository</name>
320 <url>${nexusproxy}${releaseNexusPath}</url>
323 <id>ecomp-snapshots</id>
324 <name>AAF Snapshot Repository</name>
325 <url>${nexusproxy}${snapshotNexusPath}</url>
326 </snapshotRepository>
329 <url>dav:${nexusproxy}${sitePath}</url>
331 </distributionManagement>