Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 1 | <?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 Gardziejewski | beecacb | 2020-02-13 07:31:47 +0100 | [diff] [blame] | 19 | <groupId>org.onap.aaf.certservice</groupId> |
Bartosz Gardziejewski | 5d71eb7 | 2020-02-13 08:17:55 +0100 | [diff] [blame] | 20 | <artifactId>aaf-certservice</artifactId> |
Bartosz Gardziejewski | dd700fc | 2020-02-13 08:44:03 +0100 | [diff] [blame] | 21 | <version>1.0.0-SNAPSHOT</version> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 22 | </parent> |
Bartosz Gardziejewski | 5d71eb7 | 2020-02-13 08:17:55 +0100 | [diff] [blame] | 23 | <artifactId>aaf-certservice-api</artifactId> |
Bartosz Gardziejewski | dd700fc | 2020-02-13 08:44:03 +0100 | [diff] [blame] | 24 | <version>1.0.0-SNAPSHOT</version> |
Bartosz Gardziejewski | 5d71eb7 | 2020-02-13 08:17:55 +0100 | [diff] [blame] | 25 | <name>aaf-certservice-api</name> |
| 26 | <description>AAF Certification Service Api</description> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 27 | <packaging>jar</packaging> |
| 28 | |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 29 | <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 Kasperkiewicz | 6801658 | 2020-02-06 11:54:06 +0100 | [diff] [blame] | 47 | <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 Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 58 | </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> |
Pawel | db97930 | 2020-02-05 11:24:54 +0100 | [diff] [blame] | 83 | <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 Gardziejewski | 4dd8739 | 2020-02-07 08:27:34 +0100 | [diff] [blame] | 88 | <dependency> |
| 89 | <groupId>org.springdoc</groupId> |
| 90 | <artifactId>springdoc-openapi-ui</artifactId> |
| 91 | <version>${springdoc-openapi-ui.version}</version> |
| 92 | </dependency> |
Bartosz Gardziejewski | bddd4f0 | 2020-02-11 13:27:08 +0100 | [diff] [blame] | 93 | <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 Gardziejewski | 1d90088 | 2020-02-12 11:53:42 +0100 | [diff] [blame] | 103 | <dependency> |
| 104 | <groupId>com.google.code.gson</groupId> |
| 105 | <artifactId>gson</artifactId> |
| 106 | <version>${gson.version}</version> |
| 107 | </dependency> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 108 | </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 Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 127 | </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 Gardziejewski | c88b66b | 2020-02-12 07:49:02 +0100 | [diff] [blame] | 139 | <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 Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 151 | </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> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 159 | <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 160 | </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 Gardziejewski | c88b66b | 2020-02-12 07:49:02 +0100 | [diff] [blame] | 177 | <plugin> |
| 178 | <groupId>org.springdoc</groupId> |
| 179 | <artifactId>springdoc-openapi-maven-plugin</artifactId> |
Bartosz Gardziejewski | 41a5418 | 2020-02-13 10:14:16 +0100 | [diff] [blame] | 180 | <version>${springdoc-openapi-maven-plugin.version}</version> |
Bartosz Gardziejewski | c88b66b | 2020-02-12 07:49:02 +0100 | [diff] [blame] | 181 | <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 Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 195 | </plugins> |
| 196 | </build> |
| 197 | |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 198 | <profiles> |
| 199 | <profile> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 200 | <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> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 208 | <id>docker</id> |
| 209 | <activation> |
| 210 | <activeByDefault>false</activeByDefault> |
| 211 | </activation> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 212 | <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> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 217 | <build> |
| 218 | <plugins> |
| 219 | <plugin> |
| 220 | <groupId>io.fabric8</groupId> |
| 221 | <artifactId>docker-maven-plugin</artifactId> |
Tomasz Golabek | ce77805 | 2020-02-14 09:14:05 +0100 | [diff] [blame^] | 222 | <version>${docker-maven-plugin.version}</version> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 223 | <executions> |
| 224 | <execution> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 225 | <id>docker-build-image</id> |
| 226 | <phase>package</phase> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 227 | <goals> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 228 | <goal>build</goal> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 229 | </goals> |
| 230 | </execution> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 231 | <execution> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 232 | <id>docker-push-image</id> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 233 | <phase>deploy</phase> |
| 234 | <goals> |
| 235 | <goal>push</goal> |
| 236 | </goals> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 237 | </execution> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 238 | </executions> |
| 239 | <configuration> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 240 | <skipPush>${skipDockerPush}</skipPush> |
| 241 | <verbose>true</verbose> |
| 242 | <imagePullPolicy>IfNotPresent</imagePullPolicy> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 243 | <images> |
| 244 | <image> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 245 | <alias>${project.artifactId}</alias> |
| 246 | <name>${docker-image.namespace}/${docker-image.name} |
| 247 | </name> |
| 248 | <registry>${docker-image.registry}</registry> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 249 | <build> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 250 | <dockerFileDir>${project.basedir}</dockerFileDir> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 251 | <tags> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 252 | <tag>${project.version}-${maven.build.timestamp}Z</tag> |
| 253 | <tag>${project.version}</tag> |
| 254 | <tag>${docker-image.latest}</tag> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 255 | </tags> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 256 | </build> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 257 | </image> |
| 258 | </images> |
| 259 | </configuration> |
| 260 | </plugin> |
| 261 | </plugins> |
| 262 | </build> |
| 263 | </profile> |
| 264 | </profiles> |
Tomasz Golabek | 3b531c0 | 2020-02-12 08:56:23 +0100 | [diff] [blame] | 265 | |
| 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 Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 283 | </project> |