Alexis de Talhouƫt | c90edac | 2019-03-25 13:04:18 -0400 | [diff] [blame^] | 1 | <!-- |
| 2 | ============LICENSE_START========================================== |
| 3 | =================================================================== |
| 4 | Copyright (C) 2018 IBM Intellectual Property. All rights reserved. |
| 5 | =================================================================== |
| 6 | |
| 7 | Unless otherwise specified, all software contained herein is licensed |
| 8 | under the Apache License, Version 2.0 (the License); |
| 9 | you may not use this software except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | ============LICENSE_END============================================ --> |
| 20 | |
| 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 23 | <modelVersion>4.0.0</modelVersion> |
| 24 | |
| 25 | <parent> |
| 26 | <groupId>org.onap.ccsdk.cds</groupId> |
| 27 | <artifactId>ui</artifactId> |
| 28 | <version>0.4.2-SNAPSHOT</version> |
| 29 | <relativePath>..</relativePath> |
| 30 | </parent> |
| 31 | |
| 32 | <artifactId>application</artifactId> |
| 33 | <version>0.4.2-SNAPSHOT</version> |
| 34 | <packaging>pom</packaging> |
| 35 | |
| 36 | <name>cds-ui-application</name> |
| 37 | |
| 38 | <properties> |
| 39 | <image.name>onap/ccsdk-cds-ui</image.name> |
| 40 | <ccsdk.project.version>${project.version}</ccsdk.project.version> |
| 41 | <ccsdk.distribution.version>${project.version}</ccsdk.distribution.version> |
| 42 | <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp> |
| 43 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| 44 | <docker.verbose>true</docker.verbose> |
| 45 | </properties> |
| 46 | |
| 47 | <build> |
| 48 | <plugins> |
| 49 | <plugin> |
| 50 | <groupId>org.codehaus.groovy.maven</groupId> |
| 51 | <artifactId>gmaven-plugin</artifactId> |
| 52 | <executions> |
| 53 | <execution> |
| 54 | <phase>validate</phase> |
| 55 | <goals> |
| 56 | <goal>execute</goal> |
| 57 | </goals> |
| 58 | <configuration> |
| 59 | <source>../TagVersion.groovy</source> |
| 60 | </configuration> |
| 61 | </execution> |
| 62 | </executions> |
| 63 | </plugin> |
| 64 | </plugins> |
| 65 | </build> |
| 66 | |
| 67 | <profiles> |
| 68 | <profile> |
| 69 | <id>docker</id> |
| 70 | <build> |
| 71 | <plugins> |
| 72 | <plugin> |
| 73 | <groupId>io.fabric8</groupId> |
| 74 | <artifactId>docker-maven-plugin</artifactId> |
| 75 | <version>0.28.0</version> |
| 76 | <inherited>false</inherited> |
| 77 | <configuration> |
| 78 | <images> |
| 79 | <image> |
| 80 | <name>${image.name}</name> |
| 81 | <build> |
| 82 | <cleanup>try</cleanup> |
| 83 | <dockerFileDir>..</dockerFileDir> |
| 84 | <tags> |
| 85 | <tag>${project.docker.latestminortag.version}</tag> |
| 86 | <tag>${project.docker.latestfulltag.version}</tag> |
| 87 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 88 | </tags> |
| 89 | </build> |
| 90 | </image> |
| 91 | </images> |
| 92 | </configuration> |
| 93 | <executions> |
| 94 | <execution> |
| 95 | <id>generate-images</id> |
| 96 | <phase>package</phase> |
| 97 | <goals> |
| 98 | <goal>build</goal> |
| 99 | </goals> |
| 100 | </execution> |
| 101 | |
| 102 | <execution> |
| 103 | <id>push-images</id> |
| 104 | <phase>deploy</phase> |
| 105 | <goals> |
| 106 | <goal>build</goal> |
| 107 | <goal>push</goal> |
| 108 | </goals> |
| 109 | </execution> |
| 110 | </executions> |
| 111 | </plugin> |
| 112 | </plugins> |
| 113 | </build> |
| 114 | </profile> |
| 115 | </profiles> |
| 116 | |
| 117 | </project> |