Timoney, Dan (dt5972) | ad9f4ae | 2019-01-08 14:40:54 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ~ Copyright © 2017-2018 AT&T Intellectual Property. |
Steve Alphonse Siani | 252e133 | 2019-01-21 11:55:48 -0500 | [diff] [blame] | 4 | ~ Modifications Copyright © 2019 Bell Canada. |
Timoney, Dan (dt5972) | ad9f4ae | 2019-01-08 14:40:54 -0500 | [diff] [blame] | 5 | ~ |
| 6 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | ~ you may not use this file except in compliance with the License. |
| 8 | ~ You may obtain a copy of the License at |
| 9 | ~ |
| 10 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | ~ |
| 12 | ~ Unless required by applicable law or agreed to in writing, software |
| 13 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | ~ See the License for the specific language governing permissions and |
| 16 | ~ limitations under the License. |
| 17 | --> |
| 18 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 19 | <modelVersion>4.0.0</modelVersion> |
| 20 | <parent> |
| 21 | <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId> |
| 22 | <artifactId>parent</artifactId> |
Timoney, Dan (dt5972) | 13f5821 | 2019-01-04 10:43:33 -0500 | [diff] [blame] | 23 | <version>0.4.1-SNAPSHOT</version> |
Timoney, Dan (dt5972) | ad9f4ae | 2019-01-08 14:40:54 -0500 | [diff] [blame] | 24 | <relativePath>../parent</relativePath> |
| 25 | </parent> |
| 26 | <artifactId>distribution</artifactId> |
| 27 | <packaging>pom</packaging> |
| 28 | <name>Controller Blueprints Distribution</name> |
| 29 | <properties> |
| 30 | <assembly.id>maven</assembly.id> |
| 31 | <name.space>org.onap.ccsdk.apps</name.space> <!-- <name.space>${namespace}</name.space> --> |
| 32 | <serviceArtifactName>controllerblueprints</serviceArtifactName> |
| 33 | <image.name>onap/ccsdk-controllerblueprints</image.name> |
Steve Alphonse Siani | 252e133 | 2019-01-21 11:55:48 -0500 | [diff] [blame] | 34 | <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy> |
| 35 | <docker.push.phase>deploy</docker.push.phase> |
| 36 | <docker.verbose>true</docker.verbose> |
Timoney, Dan (dt5972) | 2f1f361 | 2019-02-14 13:52:48 -0500 | [diff] [blame^] | 37 | <ccsdk.project.version>${project.version}</ccsdk.project.version> |
| 38 | <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp> |
Steve Alphonse Siani | 252e133 | 2019-01-21 11:55:48 -0500 | [diff] [blame] | 39 | </properties> |
Timoney, Dan (dt5972) | ad9f4ae | 2019-01-08 14:40:54 -0500 | [diff] [blame] | 40 | |
| 41 | <dependencies> |
| 42 | <dependency> |
| 43 | <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId> |
| 44 | <artifactId>application</artifactId> |
| 45 | </dependency> |
| 46 | </dependencies> |
| 47 | <build> |
| 48 | <plugins> |
| 49 | <plugin> |
| 50 | <artifactId>maven-resources-plugin</artifactId> |
| 51 | <version>2.6</version> |
| 52 | <executions> |
| 53 | <execution> |
| 54 | <id>copy-dockerfile</id> |
| 55 | <goals> |
| 56 | <goal>copy-resources</goal> |
| 57 | </goals><!-- here the phase you need --> |
| 58 | <phase>validate</phase> |
| 59 | <configuration> |
| 60 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 61 | <resources> |
| 62 | <resource> |
| 63 | <directory>src/main/docker</directory> |
| 64 | <includes> |
| 65 | <include>*</include> |
| 66 | </includes> |
| 67 | <filtering>true</filtering> |
| 68 | </resource> |
| 69 | </resources> |
| 70 | </configuration> |
| 71 | </execution> |
| 72 | </executions> |
| 73 | </plugin> |
| 74 | <plugin> |
| 75 | <groupId>org.apache.maven.plugins</groupId> |
| 76 | <artifactId>maven-antrun-plugin</artifactId> |
| 77 | <executions> |
| 78 | <execution> |
| 79 | <id>ant-test</id> |
| 80 | <phase>package</phase> |
| 81 | <configuration> |
| 82 | <tasks> |
| 83 | <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/> |
| 84 | </tasks> |
| 85 | </configuration> |
| 86 | <goals> |
| 87 | <goal>run</goal> |
| 88 | </goals> |
| 89 | </execution> |
| 90 | </executions> |
| 91 | </plugin> |
| 92 | <plugin> |
| 93 | <!--build the final artifact for docker deployment --> |
| 94 | <artifactId>maven-assembly-plugin</artifactId> |
| 95 | <version>3.1.0</version> |
| 96 | <configuration> |
| 97 | <!-- <skipAssembly>${skip.assembly}</skipAssembly>--> |
| 98 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 99 | <descriptors> |
| 100 | <descriptor>src/main/docker/distribution.xml</descriptor> |
| 101 | </descriptors> |
| 102 | <tarLongFileMode>posix</tarLongFileMode> |
| 103 | </configuration> |
| 104 | <executions> |
| 105 | <execution> |
| 106 | <id>${assembly.id}</id> |
| 107 | <phase>package</phase> |
| 108 | <goals> |
| 109 | <goal>single</goal> |
| 110 | </goals> |
| 111 | </execution> |
| 112 | </executions> |
| 113 | </plugin> |
| 114 | <plugin> |
| 115 | <groupId>org.codehaus.groovy.maven</groupId> |
| 116 | <artifactId>gmaven-plugin</artifactId> |
| 117 | <version>1.0</version> |
| 118 | <executions> |
| 119 | <execution> |
| 120 | <phase>validate</phase> |
| 121 | <goals> |
| 122 | <goal>execute</goal> |
| 123 | </goals> |
| 124 | <configuration> |
Timoney, Dan (dt5972) | 2f1f361 | 2019-02-14 13:52:48 -0500 | [diff] [blame^] | 125 | <source>${basedir}/../../../TagVersion.groovy</source> |
Timoney, Dan (dt5972) | ad9f4ae | 2019-01-08 14:40:54 -0500 | [diff] [blame] | 126 | </configuration> |
| 127 | </execution> |
| 128 | </executions> |
| 129 | </plugin> |
| 130 | |
| 131 | </plugins> |
| 132 | </build> |
| 133 | |
Steve Alphonse Siani | 252e133 | 2019-01-21 11:55:48 -0500 | [diff] [blame] | 134 | <profiles> |
| 135 | <profile> |
| 136 | <id>docker</id> |
| 137 | <build> |
| 138 | <plugins> |
| 139 | <plugin> |
| 140 | <groupId>io.fabric8</groupId> |
| 141 | <artifactId>docker-maven-plugin</artifactId> |
| 142 | <version>0.26.1</version> |
| 143 | <inherited>false</inherited> |
| 144 | <configuration> |
| 145 | <images> |
| 146 | <image> |
| 147 | <name>${image.name}</name> |
| 148 | <build> |
| 149 | <cleanup>try</cleanup> |
| 150 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> |
| 151 | <tags> |
Timoney, Dan (dt5972) | 2f1f361 | 2019-02-14 13:52:48 -0500 | [diff] [blame^] | 152 | <tag>${project.docker.latestminortag.version}</tag> |
| 153 | <tag>${project.docker.latestfulltag.version}</tag> |
| 154 | <tag>${project.docker.latesttagtimestamp.version}</tag> |
Steve Alphonse Siani | 252e133 | 2019-01-21 11:55:48 -0500 | [diff] [blame] | 155 | </tags> |
| 156 | </build> |
| 157 | </image> |
| 158 | </images> |
| 159 | <verbose>true</verbose> |
| 160 | </configuration> |
| 161 | <executions> |
Timoney, Dan (dt5972) | ad9f4ae | 2019-01-08 14:40:54 -0500 | [diff] [blame] | 162 | <execution> |
| 163 | <id>generate-images</id> |
| 164 | <phase>package</phase> |
| 165 | <goals> |
| 166 | <goal>build</goal> |
| 167 | </goals> |
| 168 | </execution> |
| 169 | <execution> |
| 170 | <id>push-images</id> |
| 171 | <phase>${docker.push.phase}</phase> |
| 172 | <goals> |
| 173 | <goal>build</goal> |
| 174 | <goal>push</goal> |
| 175 | </goals> |
| 176 | </execution> |
Steve Alphonse Siani | 252e133 | 2019-01-21 11:55:48 -0500 | [diff] [blame] | 177 | </executions> |
| 178 | </plugin> |
| 179 | </plugins> |
| 180 | </build> |
| 181 | </profile> |
Timoney, Dan (dt5972) | ad9f4ae | 2019-01-08 14:40:54 -0500 | [diff] [blame] | 182 | |
Steve Alphonse Siani | 252e133 | 2019-01-21 11:55:48 -0500 | [diff] [blame] | 183 | </profiles> |
Timoney, Dan (dt5972) | ad9f4ae | 2019-01-08 14:40:54 -0500 | [diff] [blame] | 184 | </project> |