sunil unnava | 5e3d91f | 2018-11-20 14:43:42 -0500 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!-- ============LICENSE_START======================================================= |
| 3 | org.onap.dmaap ================================================================================ |
| 4 | Copyright © 2018 AT&T Intellectual Property. All rights reserved. ================================================================================ |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 6 | use this file except in compliance with the License. You may obtain a copy |
| 7 | of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required |
| 8 | by applicable law or agreed to in writing, software distributed under the |
| 9 | License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
| 10 | OF ANY KIND, either express or implied. See the License for the specific |
| 11 | language governing permissions and limitations under the License. ============LICENSE_END========================================================= |
| 12 | ECOMP is a trademark and service mark of AT&T Intellectual Property. --> |
| 13 | <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"> |
| 14 | <modelVersion>4.0.0</modelVersion> |
| 15 | |
| 16 | <parent> |
| 17 | <groupId>org.onap.oparent</groupId> |
| 18 | <artifactId>oparent</artifactId> |
su622b | b8e2a3d | 2019-11-20 15:20:10 -0500 | [diff] [blame] | 19 | <version>2.1.0</version> |
sunil unnava | 5e3d91f | 2018-11-20 14:43:42 -0500 | [diff] [blame] | 20 | </parent> |
| 21 | |
| 22 | <groupId>org.onap.dmaap.zookeeper</groupId> |
sunil.unnava | a04ce6f | 2019-04-15 12:49:19 -0400 | [diff] [blame] | 23 | <artifactId>zookeeper</artifactId> |
efiacor | ccf424c | 2021-03-10 17:00:50 +0000 | [diff] [blame^] | 24 | <version>6.0.4-SNAPSHOT</version> |
sunil unnava | 5e3d91f | 2018-11-20 14:43:42 -0500 | [diff] [blame] | 25 | <name>zookeeper</name> |
| 26 | <licenses> |
| 27 | <license> |
| 28 | <name>Apache License Version 2.0</name> |
| 29 | </license> |
| 30 | </licenses> |
| 31 | |
| 32 | <developers> |
| 33 | <developer> |
| 34 | <name>Sunil Unnava</name> |
| 35 | <email/> |
| 36 | <organization>ATT</organization> |
| 37 | <organizationUrl>www.att.com</organizationUrl> |
| 38 | </developer> |
| 39 | </developers> |
| 40 | |
| 41 | <build> |
| 42 | <plugins> |
| 43 | <plugin> |
| 44 | <groupId>org.apache.maven.plugins</groupId> |
| 45 | <artifactId>maven-site-plugin</artifactId> |
| 46 | <version>3.6</version> |
| 47 | <dependencies> |
| 48 | <dependency> |
| 49 | <groupId>org.apache.maven.wagon</groupId> |
| 50 | <artifactId>wagon-webdav-jackrabbit</artifactId> |
| 51 | <version>2.10</version> |
| 52 | </dependency> |
| 53 | </dependencies> |
| 54 | </plugin> |
| 55 | |
| 56 | <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> |
| 57 | <version>3.0.2</version> </plugin> --> |
| 58 | |
| 59 | <plugin> |
| 60 | <groupId>org.apache.maven.plugins</groupId> |
| 61 | <artifactId>maven-source-plugin</artifactId> |
| 62 | <version>3.0.0</version> |
| 63 | <executions> |
| 64 | <execution> |
| 65 | <id>attach-sources</id> |
| 66 | <goals> |
| 67 | <goal>jar-no-fork</goal> |
| 68 | </goals> |
| 69 | </execution> |
| 70 | </executions> |
| 71 | </plugin> |
| 72 | <plugin> |
| 73 | <groupId>org.apache.maven.plugins</groupId> |
| 74 | <artifactId>maven-release-plugin</artifactId> |
| 75 | <version>2.5.3</version> |
| 76 | <configuration> |
| 77 | <autoVersionSubmodules>true</autoVersionSubmodules> |
| 78 | <checkModificationExcludes> |
| 79 | </checkModificationExcludes> |
| 80 | </configuration> |
| 81 | <dependencies> |
| 82 | <dependency> |
| 83 | <groupId>org.apache.maven.scm</groupId> |
| 84 | <artifactId>maven-scm-provider-gitexe</artifactId> |
| 85 | <version>1.9.4</version> |
| 86 | </dependency> |
| 87 | </dependencies> |
| 88 | </plugin> |
| 89 | |
su622b | a6590cf | 2019-06-28 00:24:47 -0400 | [diff] [blame] | 90 | |
sunil unnava | 5e3d91f | 2018-11-20 14:43:42 -0500 | [diff] [blame] | 91 | <plugin> |
| 92 | <artifactId>maven-deploy-plugin</artifactId> |
| 93 | <version>2.8</version> |
| 94 | <executions> |
| 95 | <execution> |
| 96 | <id>default-deploy</id> |
| 97 | <phase>none</phase> |
| 98 | <configuration> |
| 99 | <skip /> |
| 100 | </configuration> |
| 101 | </execution> |
| 102 | </executions> |
| 103 | <configuration> |
| 104 | <skip /> |
| 105 | </configuration> |
| 106 | </plugin> |
sunil unnava | 5e3d91f | 2018-11-20 14:43:42 -0500 | [diff] [blame] | 107 | </plugins> |
| 108 | </build> |
| 109 | |
| 110 | <properties> |
| 111 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
sunil unnava | d566f9c | 2019-02-13 17:45:31 -0500 | [diff] [blame] | 112 | <timestamp>${maven.build.timestamp}</timestamp> |
Simon Hrabos | 7da3e61 | 2019-09-24 10:29:21 +0200 | [diff] [blame] | 113 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
sunil unnava | 5e3d91f | 2018-11-20 14:43:42 -0500 | [diff] [blame] | 114 | <sitePath>/content/sites/site/org/onap/dmaap/zookeeper/${project.artifactId}/${project.version}</sitePath> |
| 115 | <skip.docker.build>true</skip.docker.build> |
| 116 | <skip.docker.push>true</skip.docker.push> |
| 117 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
su622b | 87a0a72 | 2019-08-20 13:48:58 -0400 | [diff] [blame] | 118 | <docker.push.registry>nexus3.onap.org:10003</docker.push.registry> |
| 119 | <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> |
Simon Hrabos | 7da3e61 | 2019-09-24 10:29:21 +0200 | [diff] [blame] | 120 | <zookeeper.dist.version>3.4.13</zookeeper.dist.version> |
sunil unnava | 5e3d91f | 2018-11-20 14:43:42 -0500 | [diff] [blame] | 121 | </properties> |
| 122 | |
| 123 | <!-- Distribution management --> |
| 124 | <distributionManagement> |
| 125 | <site> |
| 126 | <id>ecomp-site</id> |
| 127 | <url>dav:${nexusproxy}${sitePath}</url> |
| 128 | </site> |
| 129 | </distributionManagement> |
| 130 | |
| 131 | <dependencies> |
| 132 | </dependencies> |
| 133 | |
| 134 | <profiles> |
| 135 | <profile> |
| 136 | <id>docker</id> |
| 137 | <properties> |
| 138 | <skip.docker.build>false</skip.docker.build> |
| 139 | <skip.docker.tag>false</skip.docker.tag> |
| 140 | <skip.docker.push>false</skip.docker.push> |
| 141 | </properties> |
sunil unnava | d566f9c | 2019-02-13 17:45:31 -0500 | [diff] [blame] | 142 | <build> |
| 143 | <plugins> |
| 144 | <plugin> |
| 145 | <groupId>org.codehaus.groovy.maven</groupId> |
| 146 | <artifactId>gmaven-plugin</artifactId> |
| 147 | <executions> |
| 148 | <execution> |
| 149 | <phase>validate</phase> |
| 150 | <goals> |
| 151 | <goal>execute</goal> |
| 152 | </goals> |
| 153 | <configuration> |
| 154 | <properties> |
| 155 | <ver>${project.version}</ver> |
| 156 | <timestamp>${maven.build.timestamp}</timestamp> |
| 157 | </properties> |
| 158 | <source> |
| 159 | println project.properties['ver']; |
sunil unnava | d566f9c | 2019-02-13 17:45:31 -0500 | [diff] [blame] | 160 | if ( project.properties['ver'].endsWith("-SNAPSHOT") ) { |
| 161 | project.properties['dockertag1']=project.properties['ver'] + "-latest"; |
| 162 | project.properties['dockertag2']=project.properties['ver'] + "-" + project.properties['timestamp']; |
| 163 | } else { |
Simon Hrabos | 7da3e61 | 2019-09-24 10:29:21 +0200 | [diff] [blame] | 164 | project.properties['dockertag1']=project.properties['ver'] + "-STAGING-latest"; |
sunil unnava | d566f9c | 2019-02-13 17:45:31 -0500 | [diff] [blame] | 165 | project.properties['dockertag2']=project.properties['ver'] + "-STAGING-" + project.properties['timestamp']; |
| 166 | } |
| 167 | println 'docker tag 1: ' + project.properties['dockertag1']; |
| 168 | println 'docker tag 2: ' + project.properties['dockertag2']; |
| 169 | </source> |
| 170 | </configuration> |
| 171 | </execution> |
| 172 | </executions> |
| 173 | </plugin> |
Simon Hrabos | 7da3e61 | 2019-09-24 10:29:21 +0200 | [diff] [blame] | 174 | <plugin> |
| 175 | <groupId>io.fabric8</groupId> |
| 176 | <artifactId>docker-maven-plugin</artifactId> |
| 177 | <version>0.28.0</version> |
| 178 | <configuration> |
| 179 | <verbose>${docker.verbose}</verbose> |
| 180 | <apiVersion>${docker.apiVersion}</apiVersion> |
| 181 | <pullRegistry>${docker.pull.registry}</pullRegistry> |
| 182 | <pushRegistry>${docker.push.registry}</pushRegistry> |
| 183 | <images> |
| 184 | <image> |
| 185 | <name>onap/dmaap/zookeeper</name> |
| 186 | <build> |
| 187 | <cleanup>try</cleanup> |
| 188 | <dockerFile>Dockerfile</dockerFile> |
| 189 | <tags> |
| 190 | <tag>${dockertag1}</tag> |
| 191 | <tag>${dockertag2}</tag> |
| 192 | </tags> |
| 193 | </build> |
| 194 | </image> |
| 195 | </images> |
| 196 | </configuration> |
| 197 | <executions> |
| 198 | <execution> |
| 199 | <id>generate-images</id> |
| 200 | <phase>install</phase> |
| 201 | <goals> |
| 202 | <goal>build</goal> |
| 203 | </goals> |
| 204 | </execution> |
| 205 | <execution> |
| 206 | <id>push-images</id> |
| 207 | <phase>deploy</phase> |
| 208 | <goals> |
| 209 | <goal>push</goal> |
| 210 | </goals> |
| 211 | </execution> |
| 212 | </executions> |
| 213 | </plugin> |
sunil unnava | d566f9c | 2019-02-13 17:45:31 -0500 | [diff] [blame] | 214 | </plugins> |
| 215 | </build> |
sunil unnava | 5e3d91f | 2018-11-20 14:43:42 -0500 | [diff] [blame] | 216 | </profile> |
| 217 | |
| 218 | </profiles> |
| 219 | |
| 220 | </project> |