blob: 2064d58e3a7566f5c8b721759ab515c0e15ba7d2 [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 <dependencies>
30 <dependency>
31 <groupId>org.springframework.boot</groupId>
32 <artifactId>spring-boot-starter-web</artifactId>
Pawel Kasperkiewicz68016582020-02-06 11:54:06 +010033 </dependency>
34 <dependency>
35 <groupId>org.springframework.boot</groupId>
36 <artifactId>spring-boot-starter-log4j2</artifactId>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +010037 </dependency>
38 <dependency>
39 <groupId>org.springframework.boot</groupId>
40 <artifactId>spring-boot-starter-test</artifactId>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +010041 </dependency>
42 <dependency>
43 <groupId>org.mockito</groupId>
44 <artifactId>mockito-core</artifactId>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +010045 </dependency>
Paweldb979302020-02-05 11:24:54 +010046 <dependency>
47 <groupId>org.springframework.boot</groupId>
48 <artifactId>spring-boot-starter-actuator</artifactId>
Paweldb979302020-02-05 11:24:54 +010049 </dependency>
Bartosz Gardziejewski4dd87392020-02-07 08:27:34 +010050 <dependency>
51 <groupId>org.springdoc</groupId>
52 <artifactId>springdoc-openapi-ui</artifactId>
Bartosz Gardziejewski4dd87392020-02-07 08:27:34 +010053 </dependency>
Bartosz Gardziejewskibddd4f02020-02-11 13:27:08 +010054 <dependency>
55 <groupId>org.bouncycastle</groupId>
56 <artifactId>bcpkix-jdk15on</artifactId>
Bartosz Gardziejewskibddd4f02020-02-11 13:27:08 +010057 </dependency>
58 <dependency>
59 <groupId>org.bouncycastle</groupId>
60 <artifactId>bcprov-jdk15on</artifactId>
Bartosz Gardziejewskibddd4f02020-02-11 13:27:08 +010061 </dependency>
Bartosz Gardziejewski1d900882020-02-12 11:53:42 +010062 <dependency>
63 <groupId>com.google.code.gson</groupId>
64 <artifactId>gson</artifactId>
kjaniak8209f7c2020-02-14 14:33:27 +010065 </dependency>
66 <dependency>
67 <groupId>org.assertj</groupId>
68 <artifactId>assertj-core</artifactId>
Bartosz Gardziejewski1d900882020-02-12 11:53:42 +010069 </dependency>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +010070 </dependencies>
71
72 <build>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +010073 <plugins>
74 <plugin>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-maven-plugin</artifactId>
77 <executions>
78 <execution>
79 <goals>
80 <goal>repackage</goal>
81 </goals>
82 </execution>
Bartosz Gardziejewskic88b66b2020-02-12 07:49:02 +010083 <execution>
84 <id>pre-integration-test</id>
85 <goals>
86 <goal>start</goal>
87 </goals>
88 </execution>
89 <execution>
90 <id>post-integration-test</id>
91 <goals>
92 <goal>stop</goal>
93 </goals>
94 </execution>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +010095 </executions>
96 </plugin>
97 <plugin>
98 <artifactId>maven-javadoc-plugin</artifactId>
99 <configuration>
100 <quiet>true</quiet>
101 <verbose>false</verbose>
102 <useStandardDocletOptions>false</useStandardDocletOptions>
Pawel8b1072c2020-02-10 13:03:38 +0100103 <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +0100104 </configuration>
105 <executions>
106 <execution>
107 <id>aggregate</id>
108 <phase>site</phase>
109 <goals>
110 <goal>aggregate</goal>
111 </goals>
112 </execution>
113 <execution>
114 <id>attach-javadoc</id>
115 <goals>
116 <goal>jar</goal>
117 </goals>
118 </execution>
119 </executions>
120 </plugin>
Bartosz Gardziejewskic88b66b2020-02-12 07:49:02 +0100121 <plugin>
122 <groupId>org.springdoc</groupId>
123 <artifactId>springdoc-openapi-maven-plugin</artifactId>
Bartosz Gardziejewski41a54182020-02-13 10:14:16 +0100124 <version>${springdoc-openapi-maven-plugin.version}</version>
Bartosz Gardziejewskic88b66b2020-02-12 07:49:02 +0100125 <executions>
126 <execution>
127 <phase>integration-test</phase>
128 <goals>
129 <goal>generate</goal>
130 </goals>
131 </execution>
132 </executions>
133 <configuration>
134 <apiDocsUrl>${springdoc-openapi-maven-plugin.apiDocsUrl}</apiDocsUrl>
135 <outputFileName>api-docs.json</outputFileName>
136 <outputDir>${project.build.directory}</outputDir>
137 </configuration>
138 </plugin>
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +0100139 </plugins>
140 </build>
141
Pawel8b1072c2020-02-10 13:03:38 +0100142 <profiles>
143 <profile>
Aleksandra Maciaga6e45f9f2020-02-17 16:01:58 +0100144 <id>dev</id>
145 <dependencies>
146 <dependency>
147 <groupId>org.springframework.boot</groupId>
148 <artifactId>spring-boot-devtools</artifactId>
149 <optional>true</optional>
150 </dependency>
151 </dependencies>
152 </profile>
153 <profile>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100154 <id>docker-staging</id>
155 <properties>
156 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
157 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
158 </properties>
159 </profile>
160
161 <profile>
Pawel8b1072c2020-02-10 13:03:38 +0100162 <id>docker</id>
163 <activation>
164 <activeByDefault>false</activeByDefault>
165 </activation>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100166 <properties>
167 <os.detected.name>linux</os.detected.name>
168 <os.detected.arch>x86_64</os.detected.arch>
169 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
170 </properties>
Pawel8b1072c2020-02-10 13:03:38 +0100171 <build>
172 <plugins>
173 <plugin>
174 <groupId>io.fabric8</groupId>
175 <artifactId>docker-maven-plugin</artifactId>
Tomasz Golabekce778052020-02-14 09:14:05 +0100176 <version>${docker-maven-plugin.version}</version>
Pawel8b1072c2020-02-10 13:03:38 +0100177 <executions>
178 <execution>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100179 <id>docker-build-image</id>
180 <phase>package</phase>
Pawel8b1072c2020-02-10 13:03:38 +0100181 <goals>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100182 <goal>build</goal>
Pawel8b1072c2020-02-10 13:03:38 +0100183 </goals>
184 </execution>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100185 <execution>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100186 <id>docker-push-image</id>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100187 <phase>deploy</phase>
188 <goals>
189 <goal>push</goal>
190 </goals>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100191 </execution>
Pawel8b1072c2020-02-10 13:03:38 +0100192 </executions>
193 <configuration>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100194 <skipPush>${skipDockerPush}</skipPush>
195 <verbose>true</verbose>
196 <imagePullPolicy>IfNotPresent</imagePullPolicy>
Pawel8b1072c2020-02-10 13:03:38 +0100197 <images>
198 <image>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100199 <alias>${project.artifactId}</alias>
200 <name>${docker-image.namespace}/${docker-image.name}
201 </name>
202 <registry>${docker-image.registry}</registry>
Pawel8b1072c2020-02-10 13:03:38 +0100203 <build>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100204 <dockerFileDir>${project.basedir}</dockerFileDir>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100205 <tags>
Tomasz Golabek3b554792020-02-13 12:07:35 +0100206 <tag>${project.version}-${maven.build.timestamp}Z</tag>
207 <tag>${project.version}</tag>
208 <tag>${docker-image.latest}</tag>
Tomasz Golabekb9dabed2020-02-11 09:12:09 +0100209 </tags>
Pawel8b1072c2020-02-10 13:03:38 +0100210 </build>
Pawel8b1072c2020-02-10 13:03:38 +0100211 </image>
212 </images>
213 </configuration>
214 </plugin>
215 </plugins>
216 </build>
217 </profile>
218 </profiles>
Tomasz Golabek3b531c02020-02-12 08:56:23 +0100219
220 <distributionManagement>
221 <repository>
222 <id>ecomp-releases</id>
223 <name>AAF Release Repository</name>
224 <url>${nexusproxy}${releaseNexusPath}</url>
225 </repository>
226 <snapshotRepository>
227 <id>ecomp-snapshots</id>
228 <name>AAF Snapshot Repository</name>
229 <url>${nexusproxy}${snapshotNexusPath}</url>
230 </snapshotRepository>
231 <site>
232 <id>ecomp-site</id>
233 <url>dav:${nexusproxy}${sitePath}</url>
234 </site>
235 </distributionManagement>
236
Pawel Kasperkiewicz50f42bd2020-02-04 14:21:29 +0100237</project>