blob: 3f17f3904b45f48007c7cf10cb54b2b814447226 [file] [log] [blame]
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
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=========================================================
14-->
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>
18 <parent>
Bartosz Gardziejewskibeecacb2020-02-13 07:31:47 +010019 <groupId>org.onap.aaf.certservice</groupId>
Bartosz Gardziejewski5d71eb72020-02-13 08:17:55 +010020 <artifactId>aaf-certservice</artifactId>
Bartosz Gardziejewskidd700fc2020-02-13 08:44:03 +010021 <version>1.0.0-SNAPSHOT</version>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +010022 </parent>
Bartosz Gardziejewski5d71eb72020-02-13 08:17:55 +010023 <artifactId>aaf-certservice-api</artifactId>
Bartosz Gardziejewskidd700fc2020-02-13 08:44:03 +010024 <version>1.0.0-SNAPSHOT</version>
Bartosz Gardziejewski5d71eb72020-02-13 08:17:55 +010025 <name>aaf-certservice-api</name>
26 <description>AAF Certification Service Api</description>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +010027 <packaging>jar</packaging>
28
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +010029 <dependencyManagement>
30 <dependencies>
31 <dependency>
32 <!-- Import dependency management from Spring Boot -->
33 <groupId>org.springframework.boot</groupId>
34 <artifactId>spring-boot-dependencies</artifactId>
35 <version>${spring-boot-starter.version}</version>
36 <type>pom</type>
37 <scope>import</scope>
38 </dependency>
39 </dependencies>
40 </dependencyManagement>
41
42 <dependencies>
43 <dependency>
44 <groupId>org.springframework.boot</groupId>
45 <artifactId>spring-boot-starter-web</artifactId>
46 <version>${spring-boot-starter.version}</version>
Pawel Kasperkiewicz68016582020-02-06 11:54:06 +010047 <exclusions>
48 <exclusion>
49 <groupId>org.springframework.boot</groupId>
50 <artifactId>spring-boot-starter-logging</artifactId>
51 </exclusion>
52 </exclusions>
53 </dependency>
54 <dependency>
55 <groupId>org.springframework.boot</groupId>
56 <artifactId>spring-boot-starter-log4j2</artifactId>
57 <version>${spring-boot-starter-log4j2.version}</version>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +010058 </dependency>
59 <dependency>
60 <groupId>org.springframework.boot</groupId>
61 <artifactId>spring-boot-starter-test</artifactId>
62 <version>${spring-boot-starter.version}</version>
63 <scope>test</scope>
64 <exclusions>
65 <exclusion>
66 <groupId>org.junit.vintage</groupId>
67 <artifactId>junit-vintage-engine</artifactId>
68 </exclusion>
69 </exclusions>
70 </dependency>
71 <dependency>
72 <groupId>org.mockito</groupId>
73 <artifactId>mockito-core</artifactId>
74 <version>${mockito-core.version}</version>
75 <scope>test</scope>
76 </dependency>
77 <dependency>
78 <groupId>org.assertj</groupId>
79 <artifactId>assertj-core</artifactId>
80 <version>${assertj-core.version}</version>
81 <scope>test</scope>
82 </dependency>
Paweldb979302020-02-05 11:24:54 +010083 <dependency>
84 <groupId>org.springframework.boot</groupId>
85 <artifactId>spring-boot-starter-actuator</artifactId>
86 <version>${spring-boot-starter-actuator.version}</version>
87 </dependency>
Bartosz Gardziejewski4dd87392020-02-07 08:27:34 +010088 <dependency>
89 <groupId>org.springdoc</groupId>
90 <artifactId>springdoc-openapi-ui</artifactId>
91 <version>${springdoc-openapi-ui.version}</version>
92 </dependency>
Bartosz Gardziejewskibddd4f02020-02-11 13:27:08 +010093 <dependency>
94 <groupId>org.bouncycastle</groupId>
95 <artifactId>bcpkix-jdk15on</artifactId>
96 <version>${bouncycastle.version}</version>
97 </dependency>
98 <dependency>
99 <groupId>org.bouncycastle</groupId>
100 <artifactId>bcprov-jdk15on</artifactId>
101 <version>${bouncycastle.version}</version>
102 </dependency>
Bartosz Gardziejewski1d900882020-02-12 11:53:42 +0100103 <dependency>
104 <groupId>com.google.code.gson</groupId>
105 <artifactId>gson</artifactId>
106 <version>${gson.version}</version>
107 </dependency>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +0100108 </dependencies>
109
110 <build>
111 <pluginManagement>
112 <plugins>
113 <plugin>
114 <groupId>org.springframework.boot</groupId>
115 <artifactId>spring-boot-maven-plugin</artifactId>
116 <version>${spring-boot-starter.version}</version>
117 </plugin>
118 <plugin>
119 <artifactId>maven-javadoc-plugin</artifactId>
120 <version>${maven-javadoc-plugin.version}</version>
121 </plugin>
122 <plugin>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-surefire-plugin</artifactId>
125 <version>${maven-surefire-plugin.version}</version>
126 </plugin>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +0100127 </plugins>
128 </pluginManagement>
129 <plugins>
130 <plugin>
131 <groupId>org.springframework.boot</groupId>
132 <artifactId>spring-boot-maven-plugin</artifactId>
133 <executions>
134 <execution>
135 <goals>
136 <goal>repackage</goal>
137 </goals>
138 </execution>
Bartosz Gardziejewskic88b66b2020-02-12 07:49:02 +0100139 <execution>
140 <id>pre-integration-test</id>
141 <goals>
142 <goal>start</goal>
143 </goals>
144 </execution>
145 <execution>
146 <id>post-integration-test</id>
147 <goals>
148 <goal>stop</goal>
149 </goals>
150 </execution>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +0100151 </executions>
152 </plugin>
153 <plugin>
154 <artifactId>maven-javadoc-plugin</artifactId>
155 <configuration>
156 <quiet>true</quiet>
157 <verbose>false</verbose>
158 <useStandardDocletOptions>false</useStandardDocletOptions>
Pawel8b1072c2020-02-10 13:03:38 +0100159 <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +0100160 </configuration>
161 <executions>
162 <execution>
163 <id>aggregate</id>
164 <phase>site</phase>
165 <goals>
166 <goal>aggregate</goal>
167 </goals>
168 </execution>
169 <execution>
170 <id>attach-javadoc</id>
171 <goals>
172 <goal>jar</goal>
173 </goals>
174 </execution>
175 </executions>
176 </plugin>
Bartosz Gardziejewskic88b66b2020-02-12 07:49:02 +0100177 <plugin>
178 <groupId>org.springdoc</groupId>
179 <artifactId>springdoc-openapi-maven-plugin</artifactId>
Bartosz Gardziejewski41a54182020-02-13 10:14:16 +0100180 <version>${springdoc-openapi-maven-plugin.version}</version>
Bartosz Gardziejewskic88b66b2020-02-12 07:49:02 +0100181 <executions>
182 <execution>
183 <phase>integration-test</phase>
184 <goals>
185 <goal>generate</goal>
186 </goals>
187 </execution>
188 </executions>
189 <configuration>
190 <apiDocsUrl>${springdoc-openapi-maven-plugin.apiDocsUrl}</apiDocsUrl>
191 <outputFileName>api-docs.json</outputFileName>
192 <outputDir>${project.build.directory}</outputDir>
193 </configuration>
194 </plugin>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +0100195 </plugins>
196 </build>
197
Pawel8b1072c2020-02-10 13:03:38 +0100198 <profiles>
199 <profile>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100200 <id>docker-staging</id>
201 <properties>
202 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
203 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
204 </properties>
205 </profile>
206
207 <profile>
Pawel8b1072c2020-02-10 13:03:38 +0100208 <id>docker</id>
209 <activation>
210 <activeByDefault>false</activeByDefault>
211 </activation>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100212 <properties>
213 <os.detected.name>linux</os.detected.name>
214 <os.detected.arch>x86_64</os.detected.arch>
215 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
216 </properties>
Pawel8b1072c2020-02-10 13:03:38 +0100217 <build>
218 <plugins>
219 <plugin>
220 <groupId>io.fabric8</groupId>
221 <artifactId>docker-maven-plugin</artifactId>
Tomasz Golabekce778052020-02-14 09:14:05 +0100222 <version>${docker-maven-plugin.version}</version>
Pawel8b1072c2020-02-10 13:03:38 +0100223 <executions>
224 <execution>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100225 <id>docker-build-image</id>
226 <phase>package</phase>
Pawel8b1072c2020-02-10 13:03:38 +0100227 <goals>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100228 <goal>build</goal>
Pawel8b1072c2020-02-10 13:03:38 +0100229 </goals>
230 </execution>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100231 <execution>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100232 <id>docker-push-image</id>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100233 <phase>deploy</phase>
234 <goals>
235 <goal>push</goal>
236 </goals>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100237 </execution>
Pawel8b1072c2020-02-10 13:03:38 +0100238 </executions>
239 <configuration>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100240 <skipPush>${skipDockerPush}</skipPush>
241 <verbose>true</verbose>
242 <imagePullPolicy>IfNotPresent</imagePullPolicy>
Pawel8b1072c2020-02-10 13:03:38 +0100243 <images>
244 <image>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100245 <alias>${project.artifactId}</alias>
246 <name>${docker-image.namespace}/${docker-image.name}
247 </name>
248 <registry>${docker-image.registry}</registry>
Pawel8b1072c2020-02-10 13:03:38 +0100249 <build>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100250 <dockerFileDir>${project.basedir}</dockerFileDir>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100251 <tags>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100252 <tag>${project.version}-${maven.build.timestamp}Z</tag>
253 <tag>${project.version}</tag>
254 <tag>${docker-image.latest}</tag>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100255 </tags>
Pawel8b1072c2020-02-10 13:03:38 +0100256 </build>
Pawel8b1072c2020-02-10 13:03:38 +0100257 </image>
258 </images>
259 </configuration>
260 </plugin>
261 </plugins>
262 </build>
263 </profile>
264 </profiles>
Tomasz Golabek3b531c02020-02-12 08:56:23 +0100265
266 <distributionManagement>
267 <repository>
268 <id>ecomp-releases</id>
269 <name>AAF Release Repository</name>
270 <url>${nexusproxy}${releaseNexusPath}</url>
271 </repository>
272 <snapshotRepository>
273 <id>ecomp-snapshots</id>
274 <name>AAF Snapshot Repository</name>
275 <url>${nexusproxy}${snapshotNexusPath}</url>
276 </snapshotRepository>
277 <site>
278 <id>ecomp-site</id>
279 <url>dav:${nexusproxy}${sitePath}</url>
280 </site>
281 </distributionManagement>
282
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +0100283</project>