Sylvain Desbureaux | ae7b27a | 2019-02-14 13:45:22 +0100 | [diff] [blame] | 1 | <!-- |
Arundathi Patil | 3d02685 | 2018-12-14 23:03:55 +0530 | [diff] [blame] | 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> |
Sylvain Desbureaux | ae7b27a | 2019-02-14 13:45:22 +0100 | [diff] [blame] | 24 | |
Timoney, Dan (dt5972) | a76ceb4 | 2019-01-24 09:53:56 -0500 | [diff] [blame] | 25 | <parent> |
| 26 | <groupId>org.onap.ccsdk.parent</groupId> |
| 27 | <artifactId>spring-boot-starter-parent</artifactId> |
| 28 | <version>1.2.1-SNAPSHOT</version> |
| 29 | <relativePath/> |
| 30 | </parent> |
Sylvain Desbureaux | ae7b27a | 2019-02-14 13:45:22 +0100 | [diff] [blame] | 31 | |
Arundathi Patil | 3d02685 | 2018-12-14 23:03:55 +0530 | [diff] [blame] | 32 | <groupId>org.onap.ccsdk.cds</groupId> |
| 33 | <artifactId>controller-design-studio</artifactId> |
| 34 | <version>1.0.0-SNAPSHOT</version> |
| 35 | <packaging>pom</packaging> |
Sylvain Desbureaux | ae7b27a | 2019-02-14 13:45:22 +0100 | [diff] [blame] | 36 | |
Arundathi Patil | 3d02685 | 2018-12-14 23:03:55 +0530 | [diff] [blame] | 37 | |
| 38 | <name>controller-design-studio</name> |
Sylvain Desbureaux | ae7b27a | 2019-02-14 13:45:22 +0100 | [diff] [blame] | 39 | <description>Creates Controller Design Studio UI Docker container</description> |
| 40 | |
| 41 | <properties> |
| 42 | <image.name>onap/ccsdk-cds-ui</image.name> |
| 43 | <ccsdk.project.version>${project.version}</ccsdk.project.version> |
| 44 | <ccsdk.distribution.version>${project.version}</ccsdk.distribution.version> |
| 45 | <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp> |
| 46 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
| 47 | <docker.verbose>true</docker.verbose> |
| 48 | </properties> |
| 49 | |
| 50 | <!-- |
Arundathi Patil | 3d02685 | 2018-12-14 23:03:55 +0530 | [diff] [blame] | 51 | <modules> |
| 52 | <module>cds-ui/client</module> |
Arundathi Patil | 85db5b0 | 2019-01-17 14:10:08 +0530 | [diff] [blame] | 53 | <module>cds-ui/server</module> |
Arundathi Patil | 3d02685 | 2018-12-14 23:03:55 +0530 | [diff] [blame] | 54 | </modules> |
| 55 | |
| 56 | <properties> |
| 57 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 58 | <npm.executable>npm</npm.executable> |
| 59 | <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> |
| 60 | </properties> |
Sylvain Desbureaux | ae7b27a | 2019-02-14 13:45:22 +0100 | [diff] [blame] | 61 | --> |
Arundathi Patil | 3d02685 | 2018-12-14 23:03:55 +0530 | [diff] [blame] | 62 | |
Sylvain Desbureaux | ae7b27a | 2019-02-14 13:45:22 +0100 | [diff] [blame] | 63 | <build> |
| 64 | <plugins> |
| 65 | <plugin> |
| 66 | <groupId>org.codehaus.groovy.maven</groupId> |
| 67 | <artifactId>gmaven-plugin</artifactId> |
| 68 | <executions> |
| 69 | <execution> |
| 70 | <phase>validate</phase> |
| 71 | <goals> |
| 72 | <goal>execute</goal> |
| 73 | </goals> |
| 74 | <configuration> |
| 75 | <source>${basedir}/TagVersion.groovy</source> |
| 76 | </configuration> |
| 77 | </execution> |
| 78 | </executions> |
| 79 | </plugin> |
| 80 | </plugins> |
| 81 | </build> |
Arundathi Patil | 3d02685 | 2018-12-14 23:03:55 +0530 | [diff] [blame] | 82 | |
Sylvain Desbureaux | ae7b27a | 2019-02-14 13:45:22 +0100 | [diff] [blame] | 83 | <profiles> |
| 84 | <profile> |
| 85 | <id>docker</id> |
| 86 | <build> |
| 87 | <plugins> |
| 88 | <plugin> |
| 89 | <groupId>io.fabric8</groupId> |
| 90 | <artifactId>docker-maven-plugin</artifactId> |
| 91 | <version>0.28.0</version> |
| 92 | <inherited>false</inherited> |
| 93 | <configuration> |
| 94 | <images> |
| 95 | <image> |
| 96 | <name>${image.name}</name> |
| 97 | <build> |
| 98 | <cleanup>try</cleanup> |
| 99 | <dockerFileDir>${basedir}/cds-ui</dockerFileDir> |
| 100 | <tags> |
| 101 | <tag>${project.docker.latestminortag.version}</tag> |
| 102 | <tag>${project.docker.latestfulltag.version}</tag> |
| 103 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
| 104 | </tags> |
| 105 | </build> |
| 106 | </image> |
| 107 | </images> |
| 108 | </configuration> |
| 109 | <executions> |
| 110 | <execution> |
| 111 | <id>generate-images</id> |
| 112 | <phase>package</phase> |
| 113 | <goals> |
| 114 | <goal>build</goal> |
| 115 | </goals> |
| 116 | </execution> |
Arundathi Patil | 3d02685 | 2018-12-14 23:03:55 +0530 | [diff] [blame] | 117 | |
Sylvain Desbureaux | ae7b27a | 2019-02-14 13:45:22 +0100 | [diff] [blame] | 118 | <execution> |
| 119 | <id>push-images</id> |
| 120 | <phase>deploy</phase> |
| 121 | <goals> |
| 122 | <goal>build</goal> |
| 123 | <goal>push</goal> |
| 124 | </goals> |
| 125 | </execution> |
| 126 | </executions> |
| 127 | </plugin> |
| 128 | </plugins> |
| 129 | </build> |
| 130 | </profile> |
| 131 | </profiles> |
| 132 | <organization> |
| 133 | <name>ONAP</name> |
| 134 | </organization> |
| 135 | |
| 136 | </project> |