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> |
Pawel | 486429d | 2020-02-10 10:36:16 +0100 | [diff] [blame] | 19 | <groupId>org.onap.aaf</groupId> |
| 20 | <artifactId>aaf-certservice-parent</artifactId> |
| 21 | <version>0.0.1-SNAPSHOT</version> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 22 | </parent> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 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> |
| 28 | |
| 29 | <properties> |
| 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> |
Pawel | db97930 | 2020-02-05 11:24:54 +0100 | [diff] [blame] | 37 | <spring-boot-starter-actuator.version>2.2.4.RELEASE</spring-boot-starter-actuator.version> |
Pawel Kasperkiewicz | 6801658 | 2020-02-06 11:54:06 +0100 | [diff] [blame] | 38 | <spring-boot-starter-log4j2.version>2.1.5.RELEASE</spring-boot-starter-log4j2.version> |
Bartosz Gardziejewski | 4dd8739 | 2020-02-07 08:27:34 +0100 | [diff] [blame] | 39 | <springdoc-openapi-ui.version>1.2.21</springdoc-openapi-ui.version> |
Bartosz Gardziejewski | bddd4f0 | 2020-02-11 13:27:08 +0100 | [diff] [blame] | 40 | <bouncycastle.version>1.60</bouncycastle.version> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 41 | <docker-maven-plugin.version>0.33.0</docker-maven-plugin.version> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 42 | <docker.tag>${project.version}</docker.tag> |
Bartosz Gardziejewski | c88b66b | 2020-02-12 07:49:02 +0100 | [diff] [blame^] | 43 | <springdoc-openapi-maven-plugin.apiDocsUrl>http://localhost:8080/v3/api-docs |
| 44 | </springdoc-openapi-maven-plugin.apiDocsUrl> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 45 | </properties> |
| 46 | |
| 47 | <dependencyManagement> |
| 48 | <dependencies> |
| 49 | <dependency> |
| 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> |
| 54 | <type>pom</type> |
| 55 | <scope>import</scope> |
| 56 | </dependency> |
| 57 | </dependencies> |
| 58 | </dependencyManagement> |
| 59 | |
| 60 | <dependencies> |
| 61 | <dependency> |
| 62 | <groupId>org.springframework.boot</groupId> |
| 63 | <artifactId>spring-boot-starter-web</artifactId> |
| 64 | <version>${spring-boot-starter.version}</version> |
Pawel Kasperkiewicz | 6801658 | 2020-02-06 11:54:06 +0100 | [diff] [blame] | 65 | <exclusions> |
| 66 | <exclusion> |
| 67 | <groupId>org.springframework.boot</groupId> |
| 68 | <artifactId>spring-boot-starter-logging</artifactId> |
| 69 | </exclusion> |
| 70 | </exclusions> |
| 71 | </dependency> |
| 72 | <dependency> |
| 73 | <groupId>org.springframework.boot</groupId> |
| 74 | <artifactId>spring-boot-starter-log4j2</artifactId> |
| 75 | <version>${spring-boot-starter-log4j2.version}</version> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 76 | </dependency> |
| 77 | <dependency> |
| 78 | <groupId>org.springframework.boot</groupId> |
| 79 | <artifactId>spring-boot-starter-test</artifactId> |
| 80 | <version>${spring-boot-starter.version}</version> |
| 81 | <scope>test</scope> |
| 82 | <exclusions> |
| 83 | <exclusion> |
| 84 | <groupId>org.junit.vintage</groupId> |
| 85 | <artifactId>junit-vintage-engine</artifactId> |
| 86 | </exclusion> |
| 87 | </exclusions> |
| 88 | </dependency> |
| 89 | <dependency> |
| 90 | <groupId>org.mockito</groupId> |
| 91 | <artifactId>mockito-core</artifactId> |
| 92 | <version>${mockito-core.version}</version> |
| 93 | <scope>test</scope> |
| 94 | </dependency> |
| 95 | <dependency> |
| 96 | <groupId>org.assertj</groupId> |
| 97 | <artifactId>assertj-core</artifactId> |
| 98 | <version>${assertj-core.version}</version> |
| 99 | <scope>test</scope> |
| 100 | </dependency> |
Pawel | db97930 | 2020-02-05 11:24:54 +0100 | [diff] [blame] | 101 | <dependency> |
| 102 | <groupId>org.springframework.boot</groupId> |
| 103 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 104 | <version>${spring-boot-starter-actuator.version}</version> |
| 105 | </dependency> |
Bartosz Gardziejewski | 4dd8739 | 2020-02-07 08:27:34 +0100 | [diff] [blame] | 106 | <dependency> |
| 107 | <groupId>org.springdoc</groupId> |
| 108 | <artifactId>springdoc-openapi-ui</artifactId> |
| 109 | <version>${springdoc-openapi-ui.version}</version> |
| 110 | </dependency> |
Bartosz Gardziejewski | bddd4f0 | 2020-02-11 13:27:08 +0100 | [diff] [blame] | 111 | <dependency> |
| 112 | <groupId>org.bouncycastle</groupId> |
| 113 | <artifactId>bcpkix-jdk15on</artifactId> |
| 114 | <version>${bouncycastle.version}</version> |
| 115 | </dependency> |
| 116 | <dependency> |
| 117 | <groupId>org.bouncycastle</groupId> |
| 118 | <artifactId>bcprov-jdk15on</artifactId> |
| 119 | <version>${bouncycastle.version}</version> |
| 120 | </dependency> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 121 | </dependencies> |
| 122 | |
| 123 | <build> |
| 124 | <pluginManagement> |
| 125 | <plugins> |
| 126 | <plugin> |
| 127 | <groupId>org.springframework.boot</groupId> |
| 128 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 129 | <version>${spring-boot-starter.version}</version> |
| 130 | </plugin> |
| 131 | <plugin> |
| 132 | <artifactId>maven-javadoc-plugin</artifactId> |
| 133 | <version>${maven-javadoc-plugin.version}</version> |
| 134 | </plugin> |
| 135 | <plugin> |
| 136 | <groupId>org.apache.maven.plugins</groupId> |
| 137 | <artifactId>maven-surefire-plugin</artifactId> |
| 138 | <version>${maven-surefire-plugin.version}</version> |
| 139 | </plugin> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 140 | </plugins> |
| 141 | </pluginManagement> |
| 142 | <plugins> |
| 143 | <plugin> |
| 144 | <groupId>org.springframework.boot</groupId> |
| 145 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 146 | <executions> |
| 147 | <execution> |
| 148 | <goals> |
| 149 | <goal>repackage</goal> |
| 150 | </goals> |
| 151 | </execution> |
Bartosz Gardziejewski | c88b66b | 2020-02-12 07:49:02 +0100 | [diff] [blame^] | 152 | <execution> |
| 153 | <id>pre-integration-test</id> |
| 154 | <goals> |
| 155 | <goal>start</goal> |
| 156 | </goals> |
| 157 | </execution> |
| 158 | <execution> |
| 159 | <id>post-integration-test</id> |
| 160 | <goals> |
| 161 | <goal>stop</goal> |
| 162 | </goals> |
| 163 | </execution> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 164 | </executions> |
| 165 | </plugin> |
| 166 | <plugin> |
| 167 | <artifactId>maven-javadoc-plugin</artifactId> |
| 168 | <configuration> |
| 169 | <quiet>true</quiet> |
| 170 | <verbose>false</verbose> |
| 171 | <useStandardDocletOptions>false</useStandardDocletOptions> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 172 | <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 173 | </configuration> |
| 174 | <executions> |
| 175 | <execution> |
| 176 | <id>aggregate</id> |
| 177 | <phase>site</phase> |
| 178 | <goals> |
| 179 | <goal>aggregate</goal> |
| 180 | </goals> |
| 181 | </execution> |
| 182 | <execution> |
| 183 | <id>attach-javadoc</id> |
| 184 | <goals> |
| 185 | <goal>jar</goal> |
| 186 | </goals> |
| 187 | </execution> |
| 188 | </executions> |
| 189 | </plugin> |
Bartosz Gardziejewski | c88b66b | 2020-02-12 07:49:02 +0100 | [diff] [blame^] | 190 | <plugin> |
| 191 | <groupId>org.springdoc</groupId> |
| 192 | <artifactId>springdoc-openapi-maven-plugin</artifactId> |
| 193 | <version>0.2</version> |
| 194 | <executions> |
| 195 | <execution> |
| 196 | <phase>integration-test</phase> |
| 197 | <goals> |
| 198 | <goal>generate</goal> |
| 199 | </goals> |
| 200 | </execution> |
| 201 | </executions> |
| 202 | <configuration> |
| 203 | <apiDocsUrl>${springdoc-openapi-maven-plugin.apiDocsUrl}</apiDocsUrl> |
| 204 | <outputFileName>api-docs.json</outputFileName> |
| 205 | <outputDir>${project.build.directory}</outputDir> |
| 206 | </configuration> |
| 207 | </plugin> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 208 | </plugins> |
| 209 | </build> |
| 210 | |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 211 | <profiles> |
| 212 | <profile> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 213 | <id>docker-staging</id> |
| 214 | <properties> |
| 215 | <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag> |
| 216 | <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag> |
| 217 | </properties> |
| 218 | </profile> |
| 219 | |
| 220 | <profile> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 221 | <id>docker</id> |
| 222 | <activation> |
| 223 | <activeByDefault>false</activeByDefault> |
| 224 | </activation> |
| 225 | <build> |
| 226 | <plugins> |
| 227 | <plugin> |
| 228 | <groupId>io.fabric8</groupId> |
| 229 | <artifactId>docker-maven-plugin</artifactId> |
| 230 | <version>${docker-maven-plugin.version}</version> |
| 231 | <executions> |
| 232 | <execution> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 233 | <id>clean-images</id> |
| 234 | <phase>pre-clean</phase> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 235 | <goals> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 236 | <goal>remove</goal> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 237 | </goals> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 238 | <configuration> |
| 239 | <removeAll>true</removeAll> |
| 240 | <image>onap/cert-service</image> |
| 241 | </configuration> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 242 | </execution> |
| 243 | <execution> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 244 | <id>generate-images</id> |
| 245 | <phase>install</phase> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 246 | <goals> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 247 | <goal>build</goal> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 248 | </goals> |
| 249 | </execution> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 250 | <!-- It has to be published on nexus firstly to uncomment integration tests--> |
| 251 | <!-- <execution>--> |
| 252 | <!-- <id>start</id>--> |
| 253 | <!-- <phase>pre-integration-test</phase>--> |
| 254 | <!-- <goals>--> |
| 255 | <!-- <goal>start</goal>--> |
| 256 | <!-- </goals>--> |
| 257 | <!-- </execution>--> |
| 258 | <!-- <execution>--> |
| 259 | <!-- <id>stop</id>--> |
| 260 | <!-- <phase>post-integration-test</phase>--> |
| 261 | <!-- <goals>--> |
| 262 | <!-- <goal>stop</goal>--> |
| 263 | <!-- </goals>--> |
| 264 | <!-- </execution>--> |
| 265 | <execution> |
| 266 | <id>push-images</id> |
| 267 | <phase>deploy</phase> |
| 268 | <goals> |
| 269 | <goal>push</goal> |
| 270 | </goals> |
| 271 | <configuration> |
| 272 | <image>onap/cert-service</image> |
| 273 | </configuration> |
| 274 | </execution> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 275 | </executions> |
| 276 | <configuration> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 277 | <apiVersion>1.23</apiVersion> |
| 278 | <registry>nexus3.onap.org:10001</registry> |
| 279 | <authConfig> |
| 280 | <pull> |
| 281 | <username>docker</username> |
| 282 | <password>docker</password> |
| 283 | </pull> |
| 284 | </authConfig> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 285 | <images> |
| 286 | <image> |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 287 | <name>onap/cert-service</name> |
| 288 | <alias>cert-service</alias> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 289 | <build> |
| 290 | <dockerFile>${project.basedir}/Dockerfile</dockerFile > |
Tomasz Golabek | b9dabed | 2020-02-11 09:12:09 +0100 | [diff] [blame] | 291 | <tags> |
| 292 | <tag>${docker.tag}</tag> |
| 293 | </tags> |
Pawel | 8b1072c | 2020-02-10 13:03:38 +0100 | [diff] [blame] | 294 | </build> |
| 295 | <run> |
| 296 | <ports> |
| 297 | <port>8080:8080</port> |
| 298 | </ports> |
| 299 | <wait> |
| 300 | <!-- Check for this URL to return a 200 return code .... --> |
| 301 | <url>http://localhost:8080/actuator/health</url> |
| 302 | <time>120000</time> |
| 303 | </wait> |
| 304 | </run> |
| 305 | </image> |
| 306 | </images> |
| 307 | </configuration> |
| 308 | </plugin> |
| 309 | </plugins> |
| 310 | </build> |
| 311 | </profile> |
| 312 | </profiles> |
Pawel Kasperkiewicz | 50f42bd | 2020-02-04 14:21:29 +0100 | [diff] [blame] | 313 | </project> |