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</groupId>
20 <artifactId>aaf-certservice-parent</artifactId>
21 <version>0.0.1-SNAPSHOT</version>
23 <artifactId>cert-service</artifactId>
24 <version>0.0.1-SNAPSHOT</version>
25 <name>cert-service</name>
26 <description>Certification service</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>
47 <dependencyManagement>
50 <!-- Import dependency management from Spring Boot -->
51 <groupId>org.springframework.boot</groupId>
52 <artifactId>spring-boot-dependencies</artifactId>
53 <version>${spring-boot-starter.version}</version>
58 </dependencyManagement>
62 <groupId>org.springframework.boot</groupId>
63 <artifactId>spring-boot-starter-web</artifactId>
64 <version>${spring-boot-starter.version}</version>
67 <groupId>org.springframework.boot</groupId>
68 <artifactId>spring-boot-starter-logging</artifactId>
73 <groupId>org.springframework.boot</groupId>
74 <artifactId>spring-boot-starter-log4j2</artifactId>
75 <version>${spring-boot-starter-log4j2.version}</version>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-test</artifactId>
80 <version>${spring-boot-starter.version}</version>
84 <groupId>org.junit.vintage</groupId>
85 <artifactId>junit-vintage-engine</artifactId>
90 <groupId>org.mockito</groupId>
91 <artifactId>mockito-core</artifactId>
92 <version>${mockito-core.version}</version>
96 <groupId>org.assertj</groupId>
97 <artifactId>assertj-core</artifactId>
98 <version>${assertj-core.version}</version>
102 <groupId>org.springframework.boot</groupId>
103 <artifactId>spring-boot-starter-actuator</artifactId>
104 <version>${spring-boot-starter-actuator.version}</version>
107 <groupId>org.springdoc</groupId>
108 <artifactId>springdoc-openapi-ui</artifactId>
109 <version>${springdoc-openapi-ui.version}</version>
112 <groupId>org.bouncycastle</groupId>
113 <artifactId>bcpkix-jdk15on</artifactId>
114 <version>${bouncycastle.version}</version>
117 <groupId>org.bouncycastle</groupId>
118 <artifactId>bcprov-jdk15on</artifactId>
119 <version>${bouncycastle.version}</version>
127 <groupId>org.springframework.boot</groupId>
128 <artifactId>spring-boot-maven-plugin</artifactId>
129 <version>${spring-boot-starter.version}</version>
132 <artifactId>maven-javadoc-plugin</artifactId>
133 <version>${maven-javadoc-plugin.version}</version>
136 <groupId>org.apache.maven.plugins</groupId>
137 <artifactId>maven-surefire-plugin</artifactId>
138 <version>${maven-surefire-plugin.version}</version>
144 <groupId>org.springframework.boot</groupId>
145 <artifactId>spring-boot-maven-plugin</artifactId>
149 <goal>repackage</goal>
153 <id>pre-integration-test</id>
159 <id>post-integration-test</id>
167 <artifactId>maven-javadoc-plugin</artifactId>
170 <verbose>false</verbose>
171 <useStandardDocletOptions>false</useStandardDocletOptions>
172 <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
179 <goal>aggregate</goal>
183 <id>attach-javadoc</id>
191 <groupId>org.springdoc</groupId>
192 <artifactId>springdoc-openapi-maven-plugin</artifactId>
193 <version>0.2</version>
196 <phase>integration-test</phase>
198 <goal>generate</goal>
203 <apiDocsUrl>${springdoc-openapi-maven-plugin.apiDocsUrl}</apiDocsUrl>
204 <outputFileName>api-docs.json</outputFileName>
205 <outputDir>${project.build.directory}</outputDir>
213 <id>docker-staging</id>
215 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
216 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
223 <activeByDefault>false</activeByDefault>
228 <groupId>io.fabric8</groupId>
229 <artifactId>docker-maven-plugin</artifactId>
230 <version>${docker-maven-plugin.version}</version>
233 <id>clean-images</id>
234 <phase>pre-clean</phase>
239 <removeAll>true</removeAll>
240 <image>onap/cert-service</image>
244 <id>generate-images</id>
245 <phase>install</phase>
250 <!-- It has to be published on nexus firstly to uncomment integration tests-->
252 <!-- <id>start</id>-->
253 <!-- <phase>pre-integration-test</phase>-->
255 <!-- <goal>start</goal>-->
259 <!-- <id>stop</id>-->
260 <!-- <phase>post-integration-test</phase>-->
262 <!-- <goal>stop</goal>-->
267 <phase>deploy</phase>
272 <image>onap/cert-service</image>
277 <apiVersion>1.23</apiVersion>
278 <registry>nexus3.onap.org:10001</registry>
281 <username>docker</username>
282 <password>docker</password>
287 <name>onap/cert-service</name>
288 <alias>cert-service</alias>
290 <dockerFile>${project.basedir}/Dockerfile</dockerFile >
292 <tag>${docker.tag}</tag>
297 <port>8080:8080</port>
300 <!-- Check for this URL to return a 200 return code .... -->
301 <url>http://localhost:8080/actuator/health</url>