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" |
EmmettCox | 153a7ac | 2020-02-17 13:54:05 +0000 | [diff] [blame] | 16 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 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> |
Bogumil Zebek | 39e0515 | 2020-04-16 14:28:21 +0200 | [diff] [blame] | 21 | <version>1.0.1-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> |
Bogumil Zebek | 39e0515 | 2020-04-16 14:28:21 +0200 | [diff] [blame] | 24 | <version>1.0.1-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 | <dependencies> |
| 30 | <dependency> |
| 31 | <groupId>org.springframework.boot</groupId> |
| 32 | <artifactId>spring-boot-starter-web</artifactId> |
Pawel Kasperkiewicz | 6801658 | 2020-02-06 11:54:06 +0100 | [diff] [blame] | 33 | </dependency> |
| 34 | <dependency> |
| 35 | <groupId>org.springframework.boot</groupId> |
| 36 | <artifactId>spring-boot-starter-log4j2</artifactId> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 37 | </dependency> |
| 38 | <dependency> |
| 39 | <groupId>org.springframework.boot</groupId> |
| 40 | <artifactId>spring-boot-starter-test</artifactId> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 41 | </dependency> |
| 42 | <dependency> |
| 43 | <groupId>org.mockito</groupId> |
| 44 | <artifactId>mockito-core</artifactId> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 45 | </dependency> |
Pawel | db97930 | 2020-02-05 11:24:54 +0100 | [diff] [blame] | 46 | <dependency> |
| 47 | <groupId>org.springframework.boot</groupId> |
| 48 | <artifactId>spring-boot-starter-actuator</artifactId> |
Pawel | db97930 | 2020-02-05 11:24:54 +0100 | [diff] [blame] | 49 | </dependency> |
Bartosz Gardziejewski | 4dd8739 | 2020-02-07 08:27:34 +0100 | [diff] [blame] | 50 | <dependency> |
| 51 | <groupId>org.springdoc</groupId> |
| 52 | <artifactId>springdoc-openapi-ui</artifactId> |
Bartosz Gardziejewski | 4dd8739 | 2020-02-07 08:27:34 +0100 | [diff] [blame] | 53 | </dependency> |
Bartosz Gardziejewski | bddd4f0 | 2020-02-11 13:27:08 +0100 | [diff] [blame] | 54 | <dependency> |
| 55 | <groupId>org.bouncycastle</groupId> |
| 56 | <artifactId>bcpkix-jdk15on</artifactId> |
Bartosz Gardziejewski | bddd4f0 | 2020-02-11 13:27:08 +0100 | [diff] [blame] | 57 | </dependency> |
| 58 | <dependency> |
| 59 | <groupId>org.bouncycastle</groupId> |
| 60 | <artifactId>bcprov-jdk15on</artifactId> |
Bartosz Gardziejewski | bddd4f0 | 2020-02-11 13:27:08 +0100 | [diff] [blame] | 61 | </dependency> |
Bartosz Gardziejewski | 1d90088 | 2020-02-12 11:53:42 +0100 | [diff] [blame] | 62 | <dependency> |
| 63 | <groupId>com.google.code.gson</groupId> |
| 64 | <artifactId>gson</artifactId> |
kjaniak | 8209f7c | 2020-02-14 14:33:27 +0100 | [diff] [blame] | 65 | </dependency> |
| 66 | <dependency> |
| 67 | <groupId>org.assertj</groupId> |
| 68 | <artifactId>assertj-core</artifactId> |
Bartosz Gardziejewski | 1d90088 | 2020-02-12 11:53:42 +0100 | [diff] [blame] | 69 | </dependency> |
EmmettCox | 153a7ac | 2020-02-17 13:54:05 +0000 | [diff] [blame] | 70 | <dependency> |
| 71 | <groupId>org.apache.httpcomponents</groupId> |
| 72 | <artifactId>httpclient</artifactId> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>commons-io</groupId> |
| 76 | <artifactId>commons-io</artifactId> |
| 77 | </dependency> |
Tomasz Golabek | 7244c90 | 2020-02-21 15:49:34 +0100 | [diff] [blame] | 78 | <dependency> |
| 79 | <groupId>org.springframework.cloud</groupId> |
| 80 | <artifactId>spring-cloud-starter-config</artifactId> |
| 81 | <version>${spring-cloud-starter-config.version}</version> |
| 82 | </dependency> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 83 | </dependencies> |
| 84 | |
| 85 | <build> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 86 | <plugins> |
| 87 | <plugin> |
| 88 | <groupId>org.springframework.boot</groupId> |
| 89 | <artifactId>spring-boot-maven-plugin</artifactId> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 90 | </plugin> |
| 91 | <plugin> |
kjaniak | 6e2234c | 2020-02-17 23:04:25 +0100 | [diff] [blame] | 92 | <groupId>org.apache.maven.plugins</groupId> |
| 93 | <artifactId>maven-surefire-plugin</artifactId> |
| 94 | </plugin> |
| 95 | <plugin> |
| 96 | <groupId>org.apache.maven.plugins</groupId> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 97 | <artifactId>maven-javadoc-plugin</artifactId> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 98 | </plugin> |
Bartosz Gardziejewski | c88b66b | 2020-02-12 07:49:02 +0100 | [diff] [blame] | 99 | <plugin> |
| 100 | <groupId>org.springdoc</groupId> |
| 101 | <artifactId>springdoc-openapi-maven-plugin</artifactId> |
Bartosz Gardziejewski | c88b66b | 2020-02-12 07:49:02 +0100 | [diff] [blame] | 102 | </plugin> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 103 | </plugins> |
| 104 | </build> |
| 105 | |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 106 | <profiles> |
| 107 | <profile> |
Aleksandra Maciaga | 6e45f9f | 2020-02-17 16:01:58 +0100 | [diff] [blame] | 108 | <id>dev</id> |
| 109 | <dependencies> |
| 110 | <dependency> |
| 111 | <groupId>org.springframework.boot</groupId> |
| 112 | <artifactId>spring-boot-devtools</artifactId> |
| 113 | <optional>true</optional> |
| 114 | </dependency> |
| 115 | </dependencies> |
| 116 | </profile> |
| 117 | <profile> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 118 | <id>docker-staging</id> |
| 119 | <properties> |
| 120 | <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag> |
| 121 | <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag> |
| 122 | </properties> |
| 123 | </profile> |
| 124 | |
| 125 | <profile> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 126 | <id>docker</id> |
| 127 | <activation> |
| 128 | <activeByDefault>false</activeByDefault> |
| 129 | </activation> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 130 | <properties> |
| 131 | <os.detected.name>linux</os.detected.name> |
| 132 | <os.detected.arch>x86_64</os.detected.arch> |
| 133 | <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier> |
| 134 | </properties> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 135 | <build> |
| 136 | <plugins> |
| 137 | <plugin> |
| 138 | <groupId>io.fabric8</groupId> |
| 139 | <artifactId>docker-maven-plugin</artifactId> |
Tomasz Golabek | ce77805 | 2020-02-14 09:14:05 +0100 | [diff] [blame] | 140 | <version>${docker-maven-plugin.version}</version> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 141 | <executions> |
| 142 | <execution> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 143 | <id>docker-build-image</id> |
| 144 | <phase>package</phase> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 145 | <goals> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 146 | <goal>build</goal> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 147 | </goals> |
| 148 | </execution> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 149 | <execution> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 150 | <id>docker-push-image</id> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 151 | <phase>deploy</phase> |
| 152 | <goals> |
| 153 | <goal>push</goal> |
| 154 | </goals> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 155 | </execution> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 156 | </executions> |
| 157 | <configuration> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 158 | <skipPush>${skipDockerPush}</skipPush> |
| 159 | <verbose>true</verbose> |
| 160 | <imagePullPolicy>IfNotPresent</imagePullPolicy> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 161 | <images> |
| 162 | <image> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 163 | <alias>${project.artifactId}</alias> |
| 164 | <name>${docker-image.namespace}/${docker-image.name} |
| 165 | </name> |
| 166 | <registry>${docker-image.registry}</registry> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 167 | <build> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 168 | <dockerFileDir>${project.basedir}</dockerFileDir> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 169 | <tags> |
Tomasz Golabek | 3b55479 | 2020-02-13 12:07:35 +0100 | [diff] [blame] | 170 | <tag>${project.version}-${maven.build.timestamp}Z</tag> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 171 | </tags> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 172 | </build> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 173 | </image> |
| 174 | </images> |
| 175 | </configuration> |
| 176 | </plugin> |
| 177 | </plugins> |
| 178 | </build> |
| 179 | </profile> |
| 180 | </profiles> |
Tomasz Golabek | 3b531c0 | 2020-02-12 08:56:23 +0100 | [diff] [blame] | 181 | |
| 182 | <distributionManagement> |
| 183 | <repository> |
| 184 | <id>ecomp-releases</id> |
| 185 | <name>AAF Release Repository</name> |
| 186 | <url>${nexusproxy}${releaseNexusPath}</url> |
| 187 | </repository> |
| 188 | <snapshotRepository> |
| 189 | <id>ecomp-snapshots</id> |
| 190 | <name>AAF Snapshot Repository</name> |
| 191 | <url>${nexusproxy}${snapshotNexusPath}</url> |
| 192 | </snapshotRepository> |
| 193 | <site> |
| 194 | <id>ecomp-site</id> |
| 195 | <url>dav:${nexusproxy}${sitePath}</url> |
| 196 | </site> |
| 197 | </distributionManagement> |
| 198 | |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 199 | </project> |